-- j5 <[email protected]> wrote
(on Friday, 01 May 2009, 02:33 PM -0700):
> I was tinkering with ZF 1.8 and the performance guide.
> 
> Specifically:
> 
> C.2.2.1. Strip require_once calls with find and sed.
> 
> The sed/find commands here have changed I noticed.  When I run these new
> commands I get the following error:
> 
> -bash: syntax error near unexpected token `('
> 
> 
> I took a look at the commands again and I thought I found a missing ' error

I've fixed this on trunk and the 1.8 release branch now, and the changes
will show when we release 1.8.1. Thanks for the report!


> so I tried the revised commands:
> 
> find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \
> xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
> 
> (I added a ' after Autoloader.php).
> 
> That looked like it worked. But now when I browse to my website, I get a
> blank page.
> 
> 
> I am not sure if what I did fixed anything or what..
> 
> Anyone have any suggestions?

Do you have display_errors on? If not, turn it on to see if any errors
are being reported.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to