fabpot/Silex — Issue #244: PHP Fatal Error with Hello World on 2nd load
Author: rochers
Created: 2012-01-24 05:14:01+00:00
State: open

I get the following error on the 2nd page load after an apache restart:

[Tue Jan 24 04:45:00 2012] [error] [client 108.201.213.97] PHP Fatal error:
Call to undefined method
Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::\x10:\x1c\x80l\x90Z\x80\x11() in
phar:///home/rochers/mywebsite/silex/silex.phar/vendor/Symfony/
Component/HttpFoundation/Response.php on line 176

The first page load works as expected and the output is sent to the browser. If I hit refresh, this error is generated.

This is the entirety of my code:

get('/hello/{name}', function ($name) use ($app) {
return 'Hello '.$app->escape($name);
});

$app->run();

Any ideas?

Thanks,
Scott