Re: __autoload() lowercase
| From: | Andi Gutmans | Date: | Wed, 19 Nov 2003 18:44:15 +0000 |
| Subject: | Re: __autoload() lowercase | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5570@lists.php.net to get a copy of this message | ||
Yes, this is definitely a problem. Today, when possible, we lowercase the class at compile-time so that we save time during execution. Supporting this will lead to a small slow down.
I tend to agree that __autoload() should support this but I'm not sure if we should change everything to run-time or maybe hold a second copy.
I need to sleep on it.
Andi
At 09:42 AM 11/18/2003 -0800, Eduardo R. Maciel wrote:
We run into a problem, when tryng to organize class files since autoload always uses lowercase. My class file, for example, is named ArrayIterator.class.php (as the class ArrayIterator ) but I get the following error when trying to autoload the class: Warning: __autoload(/usr/local/apache2/htdocs/teste/fw/arrayiterator.class.php): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/teste/fw/teste.php on line 14 Fatal error: __autoload(): Failed opening required '/usr/local/apache2/htdocs/teste/fw/arrayiterator.class.php' (include_path='.:/usr/local/php/lib/php') in /usr/local/apache2/htdocs/teste/fw/teste.php on line 14 looks like it is not fixed in beta2. thanks, Eduardo. __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php