ID:               42798
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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:
----------------
[EMAIL PROTECTED] ~ % /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:
--------------
[EMAIL PROTECTED] ~ % /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

Reply via email to