#28287 [NEW]: stream_wrapper_register doesn't call __autoload
| From: | buri dot peter at trilogic dot hu | Date: | Wed, 05 May 2004 15:36:48 +0000 |
| Subject: | #28287 [NEW]: stream_wrapper_register doesn't call __autoload | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-59257@lists.php.net to get a copy of this message | ||
From: buri dot peter at trilogic dot hu
Operating system: Windows XP
PHP version: 5.0.0RC2
PHP Bug Type: Feature/Change Request
Bug description: stream_wrapper_register doesn't call __autoload
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 bug report at http://bugs.php.net/?id=28287&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28287&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28287&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28287&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28287&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28287&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28287&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28287&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28287&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28287&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28287&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28287&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28287&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28287&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28287&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28287&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28287&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28287&r=float