# __autoload() lowercase

- Thread: https://externals.io/message/5523
- Original archive: https://news-web.php.net/php.internals/5523
- Started by Eduardo R. Maciel on 2003-11-18T17:42:28+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5523 — Eduardo R. Maciel — 2003-11-18T17:42:28+00:00

URL: https://externals.io/message/5523#5523

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

---

## #5527 — Andi Gutmans — 2003-11-18T22:01:29+00:00

URL: https://externals.io/message/5523#5527 · In reply to: #5523

Yeah, this is something we need to tackle. i think we're going to have to 
keep the pretty case version but it's going to be a slight hit in performance.
Remember if anyone has posted a patch for this in the past? If not I'll try 
and look into fixing it tomorrow.

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

---

## #5570 — Andi Gutmans — 2003-11-19T18:44:15+00:00

URL: https://externals.io/message/5523#5570 · In reply to: #5523

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
