Re: Why change require_once? A brief explanation of motives

From: Date: Tue, 17 Jul 2007 15:41:14 +0000
Subject: Re: Why change require_once? A brief explanation of motives
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47574@lists.php.net to get a copy of this message
Alexey Borzov wrote:
There is, to put it mildly, a subtle difference between setting an include_path *once* when installing PEAR and mangling usage examples and unit tests on each package installation to make them work.
Yeah, I guess there is on the end users side. Are you implying that one would need to add the __autoload() code to every example? I doubt that all our examples always list all details required. Atleast I never did that and do not think it makes sense.
And if you don't see an issue with unit tests then you probably do something wrong with them. Those for HTML_QuickForm2 run out of the box by just executing AllTests.php with php-cli.
And what stops AllTests.php to setup the class loading? regards, Lukas

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