#42798 [NEW]: __autoload() not triggered for classes used in method signature

From: Date: Sat, 29 Sep 2007 14:36:27 +0000
Subject: #42798 [NEW]: __autoload() not triggered for classes used in method signature
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117958@lists.php.net to get a copy of this message
From: sebastian@php.net Operating system: Linux PHP version: 5CVS-2007-09-29 (CVS) PHP Bug Type: Scripting Engine problem Bug description: __autoload() not triggered for classes used in method signature Description: ------------ In the PHP_5_3 branch, the __autoload() function is not triggered for classes that are used in method signatures. Reproduce code: --------------- <?php function __autoload($className) { print '*'; } class a { public static function b($c = d::constant) { } } a::b(); Expected result: ---------------- sb@vmware ~ % /usr/local/php-5.2/bin/php -n test.php * Fatal error: Class 'd' not found in /home/sb/test.php on line 9 Actual result: -------------- sb@vmware ~ % /usr/local/php-5.3/bin/php -n test.php Fatal error: Class 'd' not found in /home/sb/test.php on line 9 -- Edit bug report at http://bugs.php.net/?id=42798&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42798&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42798&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42798&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42798&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42798&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42798&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42798&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42798&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42798&r=support Expected behavior: http://bugs.php.net/fix.php?id=42798&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42798&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42798&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42798&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42798&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42798&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42798&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42798&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42798&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42798&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42798&r=mysqlcfg

« previous php.bugs (#117958) next »