#28300 [Opn->Csd]: inconsistent __autoload parameret pass with stream_wrapper_register
| From: | pollita@php.net | Date: | Thu, 06 May 2004 14:30:22 +0000 |
| Subject: | #28300 [Opn->Csd]: inconsistent __autoload parameret pass with stream_wrapper_register | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59302@lists.php.net to get a copy of this message | ||
ID: 28300
Updated by: pollita@php.net
Reported By: buri dot peter at trilogic dot hu
-Status: Open
+Status: Closed
Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5CVS-2004-05-06 (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-05-06 14:08:53] buri dot peter at trilogic dot hu
Description:
------------
stream_wrapper_register( 'var', 'VariableStream' );
__autoload get 'variablestream' as parameter [ in lower case ]
but in other situation:
new VariableStream();
__autoload get 'VariableStream' as parameter.
this is inconsistent.
I prefer the case sensitive way. :)
Reproduce code:
---------------
VariableStream.class.php:
<?php
class VariableStream {
function __call() {}
}
?>
VariableStream2.class.php:
<?php
class VariableStream2 {
function __call() {}
}
?>
index.php:
<?php
function __autoload( $class ) {
echo $class, "\n";
include_once( $class . '.class.php' );
}
stream_wrapper_register( 'var', 'VariableStream' );
new VariableStream2();
?>
Expected result:
----------------
VariableStream
VariableStream2
Actual result:
--------------
variablestream
VariableStream2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28300&edit=1