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

Reply via email to