[wp-trac] [WordPress Trac] #13436: WordPress class_exists() conflicts with __autoload() and php_auto_prepend
WordPress Trac
noreply at wordpress.org
Mon Jun 23 04:40:02 UTC 2014
#13436: WordPress class_exists() conflicts with __autoload() and php_auto_prepend
----------------------------+----------------------
Reporter: galbus | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Bootstrap/Load | Version: 3.0
Severity: minor | Resolution: wontfix
Keywords: needs-patch | Focuses:
----------------------------+----------------------
Comment (by jcjcc):
It sounds like the PHP bug was fixed sometime between my version
(5.4.4-14+deb7u11) and yours (5.4.9) then! (It will be a while before
Debian gets the patch sadly.)
Thanks for the very nice loader class on Gist and the drop-in replacement
snippet :)
To add to the information for those seeing the ticket for the first time:
the other workaround rmccue inadvertently discovered is to not set PHP to
"default autoloader mode," but to load the default autoloader as a custom
autoloader by passing "spl_autoload" to spl_autoload_register.
Yet another is to add a blank autoloader -- I guess this also unsets
"default autoloader mode."
{{{
spl_autoload_register();
spl_autoload_register(function() {});
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13436#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list