[wp-trac] [WordPress Trac] #13436: WordPress class_exists() conflicts with __autoload() and php_auto_prepend
WordPress Trac
noreply at wordpress.org
Sun Jun 22 17:46:26 UTC 2014
#13436: WordPress class_exists() conflicts with __autoload() and php_auto_prepend
-------------------------------+-----------------------
Reporter: galbus | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.0
Component: Bootstrap/Load | Version: 3.0
Severity: minor | Resolution:
Keywords: needs-patch close | Focuses:
-------------------------------+-----------------------
Changes (by Denis-de-Bernardy):
* keywords: needs-patch => needs-patch close
Comment:
Then again, your approach doesn't really play well with PSR-4, or does it?
https://github.com/php-fig/fig-
standards/blob/master/accepted/PSR-4-autoloader.md
> Autoloader implementations MUST NOT throw exceptions, MUST NOT raise
errors of any level, and SHOULD NOT return a value.
@rmccue's point was, in retrospect, that WP plays well with this already.
So as much as it pained me when he closed it because this bit me a few
times in the past as well, he was correct that this ticket ought to be
closed as wontfix: any autoloader written in the age of PSR-4 should
comply with it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13436#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list