Re: [PEPr] Comment on PEAR::NameScheme
| From: | Hans Lellelid | Date: | Sun, 06 Jun 2004 14:47:45 +0000 |
| Subject: | Re: [PEPr] Comment on PEAR::NameScheme | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30038@lists.php.net to get a copy of this message | ||
Pepr wrote:
Dmitry Koteroff (http://pear.php.net/user/koteroff) has commented on the proposal for PEAR::NameScheme. Comment: Some comments about PHP5's __autoload() usage: ... fuction __autoload($cls) { return PEAR_NameScheme_Autoload::classAutoloader($cls); } [/code] Here $classname is ALWAYS passed in lowercase, so we need to manually search for class file in include_path. PEAR_NameScheme helps. (PEAR_NameScheme_Autoload is not proposed now, it is used here as example.)Why do people keep saying this? As of quite awhile the classname passed to __autoload() respects the case of the calling code! PHP5 has been class case-respective (if not sensitive) for some time now. I'm beginning to think that no one on the PEAR lists actually uses PHP5 since this has been asserted several times now w/ no correction. Hans