Zend Framework

Stripping all require_once calls makes Zend_Application unable to work

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.9.2
  • Labels:
    None
  • Language:
    English

Description

What?

If you follow this step of the documentation: Classloading performance.
You have a problems with Zend_Application!

Why?

Because on line 74 and 290 Zend_Application use require_once - and thats what we are stripping out.

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'

Activity

Hide
Mark Maynereid added a comment -

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

Show
Mark Maynereid added a comment - Seemed to fix the problem when I tried it. Thanks.
Hide
Matthew Weier O'Phinney added a comment -

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.

Show
Matthew Weier O'Phinney added a comment - 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.

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: