The documentation assumes GNU versions of find and sed, and should probably note that. The equivalent BSD command (which will of course work on Mac OS X) is: % cd path/to/ZendFramework/library % find . -name '*.php' | grep -v './Loader/Autoloader.php' | \ xargs sed -E -i~ 's/(require_once)/\/\/ \1/g'
I've tested this and it works. It might be good to add this to the documentation. -Matt On Mon, Jun 29, 2009 at 6:09 PM, aSecondWill <[email protected]> wrote: > > The instructions given here: > > > http://framework.zend.com/manual/en/performance.classloading.html#performance.classloading.striprequires.sed > > Don't work in terminal on OSX. Does anyone have an alternative ? > > Is it possible to make a production ready version of the framework > available? one with the require_once statements removed. I know there is a > bit of a discussion on here about it not mattering quite so much with > php5.2+, but even so, it's one of the 1st instructions in the performance > chapter. > > > > -- > View this message in context: > http://www.nabble.com/Removing-Require_once-tp24261910p24261910.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
