Re: [Coding Standards] Loading all files at once

From: Date: Tue, 10 Jul 2007 13:54:28 +0000
Subject: Re: [Coding Standards] Loading all files at once
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47394@lists.php.net to get a copy of this message
On Jul 10, 2007, at 8:39 AM, Alexey Borzov wrote:
Hi, Paul M Jones wrote:
Zend and Solar both use a static method for class-loading; I think PEAR2 might benefit from using something like that too. (It's not a base class, just a class with some static methods.) Alexey's inclusion of a loadPackage() method is particularly interesting.
While Zend does have a Zend_Loader class, they also use require_once throughout the code and rely on include_path setting. Which leads us to the question whether the problems with those are greatly exaggerated: folks at Zend probably do have a clue.
Not to insult the Zend folks on this list (you know who you are ;-) but Zend developers are not a thing of whole cloth; they have interminable arguments about these things just like we do. I speak from experience on the matter. That the company's code is inconsistent is not a sign of their clue-(less|ful)-ness regarging this issue. I'll agree with your intuition on the exaggeration of the problem (such as it may be) -- the benchmarks so far seem disparate, and underwhelming even when they seem to favor the allfiles solution. -- Paul M. Jones <http://paul-m-jones.com> Solar: Simple Object Library and Application Repository for PHP5. <http://solarphp.com> Join the Solar community wiki! <http://solarphp.org> Savant: The simple, elegant, and powerful solution for templates in PHP. <http://phpsavant.com>

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