ID:               26640
 Updated by:       [EMAIL PROTECTED]
 Reported By:      adam at trachtenberg dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: *
 PHP Version:      5CVS-2003-12-16 (dev)
 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:
------------------------------------------------------------------------

[2004-01-16 13:20:20] [EMAIL PROTECTED]

This should fix most of the cases:

  http://www.php.net/~jani/patches/bug26640.patch

If you find any other instances in the reflection classes,
do tell.. :)


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

[2003-12-16 13:19:47] adam at trachtenberg dot com

Description:
------------
The Reflection classes do not trigger __autoload() when 
the class is undefined. This works correctly for 
userland classes.

Reproduce code:
---------------
function __autoload($c) {
        class autoload_class {
                public function __construct() {
                        print "autoload success\n";
                }
        }
}

Reflection:export(new Reflection_Class('autoload_class'));

Expected result:
----------------
autoload success
Class [ <user>  class autoload_class ] {
  @@ /Users/adam/Desktop/autoload.php 4-10

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [0] {
  }

  - Methods [1] {
    Method [ <user> <ctor> public method __construct ] {
      @@ /Users/adam/Desktop/autoload.php 6 - 8
    }
  }
}

Actual result:
--------------
PHP Fatal error:  Uncaught exception 
'reflection_exception' with message 'Class 
autoload_class does not exist' in /Users/adam/Desktop/
autoload.php:10
Stack trace:
#0 {main}
  thrown in /Users/adam/Desktop/autoload.php on line 10


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


-- 
Edit this bug report at http://bugs.php.net/?id=26640&edit=1

Reply via email to