#42798 [Asn->Csd]: __autoload() not triggered for classes used in method signature

From: Date: Mon, 01 Oct 2007 09:33:14 +0000
Subject: #42798 [Asn->Csd]: __autoload() not triggered for classes used in method signature
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118004@lists.php.net to get a copy of this message
ID: 42798 Updated by: dmitry@php.net Reported By: sebastian@php.net -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.3CVS-2007-09-29 (CVS) Assigned To: dmitry New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-09-30 12:58:34] johannes@php.net Dmitry, can you take a look, please. ------------------------------------------------------------------------ [2007-09-29 14:36:27] sebastian@php.net 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 this bug report at http://bugs.php.net/?id=42798&edit=1

« previous php.bugs (#118004) next »