[wp-trac] [WordPress Trac] #13436: WordPress class_exists() conflicts with __autoload() and php_auto_prepend

WordPress Trac noreply at wordpress.org
Sun Dec 22 02:49:30 UTC 2013


#13436: WordPress class_exists() conflicts with __autoload() and php_auto_prepend
-------------------------------+------------------------------
 Reporter:  galbus             |       Owner:
     Type:  enhancement        |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.0
 Severity:  minor              |  Resolution:
 Keywords:  needs-patch close  |
-------------------------------+------------------------------
Changes (by rmccue):

 * keywords:  needs-patch => needs-patch close


Comment:

 Replying to [comment:12 Denis-de-Bernardy]:
 > And WordPress should be calling `class_exists( $class, false )`.
 >
 > It's not as if this change would have the slightest impact on Core…

 I disagree, it's unneeded code churn. This ticket has been sitting around
 unchanged for 3 years with no actual patch; if it was going to be fixed,
 had no actual impact and actually affected people in the real world, it
 would have been fixed by now.

 Using `class_exists` around a class definition might be better with
 `$autoload` set to false, but the other cases shouldn't be changed.

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


More information about the wp-trac mailing list