|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-30 12:58 UTC] johannes@php.net
[2007-10-01 09:33 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
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