[wp-trac] [WordPress Trac] #11604: apache_mod_loaded() is broken
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 19:22:43 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: needs-patch
--------------------------+-------------------------------------------------
While reviewing a patch in #10365 which containted the
''apache_mod_loaded'' function it just came to my mind that it might be
broken.
Therefore I tested that function by looking for ''mod_rewrite'' on a
server which has mod_rewrite enabled. The test failed, apache_mod_loaded()
returned false.
test code: {{{var_dump(apache_mod_loaded('mod_rewrite'));}}}
It looks like that parsing the output of phpinfo(8) for the apache module
name is bogus in my eyes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11604>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list