#42798 [Opn->Asn]: __autoload() not triggered for classes used in method signature
| From: | johannes@php.net | Date: | Sun, 30 Sep 2007 12:58:34 +0000 |
| Subject: | #42798 [Opn->Asn]: __autoload() not triggered for classes used in method signature | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117977@lists.php.net to get a copy of this message | ||
ID: 42798
Updated by: johannes@php.net
Reported By: sebastian@php.net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.3CVS-2007-09-29 (CVS)
-Assigned To:
+Assigned To: dmitry
New Comment:
Dmitry, can you take a look, please.
Previous Comments:
------------------------------------------------------------------------
[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