#28287 [Opn->Csd]: stream_wrapper_register doesn't call __autoload
| From: | pollita@php.net | Date: | Wed, 05 May 2004 18:20:22 +0000 |
| Subject: | #28287 [Opn->Csd]: stream_wrapper_register doesn't call __autoload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59261@lists.php.net to get a copy of this message | ||
ID: 28287
Updated by: pollita@php.net
Reported By: buri dot peter at trilogic dot hu
-Status: Open
+Status: Closed
-Bug Type: Feature/Change Request
+Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.0.0RC2
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.
stream_filter_register() got fixed in this patch as well.
Previous Comments:
------------------------------------------------------------------------
[2004-05-05 17:36:47] buri dot peter at trilogic dot hu
Description:
------------
stream_wrapper_register does not call the new __autoload function of
Zend Engine 2.
Reproduce code:
---------------
VariableStream.class.php:
<?php
class VariableStream {
function __call() {}
}
?>
index.php:
<?php
function __autoload( $class ) {
echo $class;
include_once( $class . '.class.php' );
}
stream_wrapper_register( 'var', 'VariableStream' );
?>
Expected result:
----------------
VariableStream
Actual result:
--------------
Warning: stream_wrapper_register() [function.stream-wrapper-register]:
class 'VariableStream' is undefined in index.php on line 6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28287&edit=1