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

Dmitry, can you take a look, please.

------------------------------------------------------------------------

[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