[wp-trac] [WordPress Trac] #11604: apache_mod_loaded() is broken

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 24 20:49:05 UTC 2009


#11604: apache_mod_loaded() is broken
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:  2.9        
 Severity:  normal        |    Keywords:  2nd-opinion
--------------------------+-------------------------------------------------
Changes (by sivel):

  * keywords:  needs-patch => 2nd-opinion


Comment:

 Not sure I understand, first the function attempts to use
 apache_get_modules (which was introduced in php 4.3.2), and if that
 function doesn't exist then it tries to check in phpinfo to see if it can
 find mod_rewrite in there, which if using mod_php with apache you should
 see that.

 So looking at phpinfo is the fall back.  From what I can tell, other than
 apache_get_modules, which is the first choice, there really isn't a better
 alternative for a fall back.

 I guess in the end it all stems back to the possibility that the php
 install was done in a way that it can not get that information from
 apache, usually this being fastcgi.

 Just not sure what else we could do.

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


More information about the wp-trac mailing list