[wp-trac] [WordPress Trac] #7361: Fixes for wp-app with PHP-CGI

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 14:50:31 UTC 2010


#7361: Fixes for wp-app with PHP-CGI
-----------------------------------+----------------------------------------
 Reporter:  yonosoytu              |        Owner:  markjaquith
     Type:  defect (bug)           |       Status:  assigned   
 Priority:  normal                 |    Milestone:  3.0        
Component:  AtomPub                |      Version:  2.9        
 Severity:  normal                 |   Resolution:             
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------

Comment(by hakre):

 Replying to [comment:12 tenpura]:
 > It seems
 > {{{
 > if('cgi' == substr(strtolower(php_sapi_name()), 0, 3))
 > }}}
 > is insufficient to be a solid identifier.
 >
 > References:
 > [[BR]]
 > http://drupal.org/node/175855
 > [[BR]]
 > http://core.trac.wordpress.org/ticket/3528
 >
 > How about using a constant to let user decide applying the code?
 > [[BR]]
 > 2.9 still needs a remedy for this issue.

 This code is used
 [https://core.trac.wordpress.org/attachment/ticket/10187/10187-10435-merged.patch
 here]:[[BR]]
 {{{php_sapi_name() == 'cgi-fcgi'}}} Related: #10187

 suggestions welcome. I can do sniffing over the current codebase then.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7361#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list