ZF-6861: Stripping all require_once calls makes Zend_Application unable to work


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'


Seemed to fix the problem when I tried it. Thanks.

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.