Re[2]: [PEPr] Comment on PEAR::NameScheme

From: Date: Sun, 06 Jun 2004 14:51:36 +0000
Subject: Re[2]: [PEPr] Comment on PEAR::NameScheme
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30039@lists.php.net to get a copy of this message
>> Andrey, if you call include_once "system.php" in your program, you >> also load ./system.php, not /usr/local/php/System.php. And even more >> — your code is not windows-compatible at all (because Windows loads >> files in case-insensitive mode) and bad because of that. AD> I can always do include_once "./system.php". This was just an example, AD> there may be more complex cases. Interesting behavour. How do you offer to handle it automatically? For example, in Perl we write something like: use My::Module; and do not care about filename of this module (Perl translates it automatically to My/Module.pm). PHP does not have this ability - and it is very pity. If you want ro include manual-crafted files, use include_once directly. If you want to nail, PHP would not help you, it's better to use hammer. (-; >> About coding standarts — first let's vote, and in the case of >> positive mark I'll convert the package. AD> I am talking not about _coding_ standards (although they are important AD> too), but about _naming_ standards you rely on (like class OLE must AD> reside in OLE.php), which are not respected by all packages (actally it AD> is in OLE/OLE.php) OK, let it be "naming standards". AD> As I already said, I personally don't see any use in this package. What about __autoload()? What about moduled CMS which loads its modules by its name? I also have class for __autoload() improvement (because you cannot define more than one __autoload() functions in the same program, but in large systems constituted of large number of independent modules it is impossible to track all __autoload() dependensies), which allows to register more than one stackable autoload handlers, but - not in this proposal. AD> I get this AD> Warning: Unknown modifier '^' in AD> c:\php4\pear\PEAR\NameScheme.php on line 55 AD> c:_php4_pear_system Fixed 2 hours ago. -- Best regards, Dmitry Koteroff.

« previous php.pear.dev (#30039) next »