ZF-6861: Stripping all require_once calls makes Zend_Application unable to work
Description
h4. What?
If you follow this step of the documentation: Classloading performance. You have a problems with Zend_Application!
h4. Why? Because on line 74 and 290 Zend_Application use require_once - and thats what we are stripping out.
h4. Solution? Change the documentation to something like this (untested - but should work):
% cd path/to/ZendFramework/library % find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' \ -not -wholename '*/Application.php' -print0 | \ xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
Comments
Posted by Mark Maynereid (mim) on 2009-07-23T08:20:48.000+0000
Seemed to fix the problem when I tried it. Thanks.
Posted by Matthew Weier O'Phinney (matthew) on 2009-08-21T13:07:58.000+0000
Tested and works perfectly. I've updated the manual page in trunk and the 1.9 release branch, and it will publish with 1.9.2.