Re: [Coding Standards] Loading all files at once
| From: | Paul M Jones | Date: | Mon, 09 Jul 2007 21:47:32 +0000 |
| Subject: | Re: [Coding Standards] Loading all files at once | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47320@lists.php.net to get a copy of this message | ||
Hi Josh,
On Jul 9, 2007, at 4:29 PM, Joshua Eichorn wrote:
Matthew Weier O'Phinney wrote:Try making "what" work without include_path? Maybe I've been missing your point all along. Are you saying that you want PEAR2 packages always to be completely independent of include_path? If so, I don't see how setting an include_path is a problem for anyone other than neophyte PHP developers. Personally, I expect good libraries to follow the PEAR standards, which means name-spacing, and living in the PEAR directory -- which means setting that one include-path value.I'm clueless as to what you're referring to here. I use PEAR, Solar, and Zend Framework regularly, and typically have them installed to a common directory, leaving me with a simple include_path of: .:/path/to/pear and never have a problem, even when using __autoload() (check out Zend_Loader::registerAutoload() for a PEAR-friendly spl_autoload implementation, btw). Could you please elaborate on the "include_path mess" that you're trying to solve with this?Trying making this work without setting your include path.
Also note that you have a mix of autoload and normal includes, which may or may not give you the minimum # of required files.Minimum number of files required for "what" ? Very sorry, I'm still not seeing exactly what problem is solved by the allfiles proposal. Perhaps an example would help here? -- 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>