Re: Why change require_once? A brief explanation of motives

From: Date: Wed, 18 Jul 2007 06:59:03 +0000
Subject: Re: Why change require_once? A brief explanation of motives
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47590@lists.php.net to get a copy of this message
Matthew Weier O'Phinney wrote:
Because the require_once calls force loading of code that may not actually be used. Furthermore as you point out its a non free function call.
So encourage lazy-loading instead of indiscriminately loading every single dependency at the top of the file. Last I recall, during the PEPR review process, most reviewers suggest this anyways.
How am I supposed to lazy load an the Exception implementation by just relying on require_once? regards, Lukas

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