|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2004-05-06 16:30 UTC] pollita@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
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