From b02fd5232ce1aac73c5c08cf8b5c66ddbe412584 Mon Sep 17 00:00:00 2001 From: Koen Schmeets Date: Thu, 24 May 2012 02:01:24 +0200 Subject: [PATCH] Fixing a bug that would stop the script execution before the laravel.done event has been fired for php-fastcgi users Signed-off-by: Koen Schmeets --- laravel/laravel.php | 6 +++++- .../vendor/Symfony/Component/HttpFoundation/Response.php | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/laravel/laravel.php b/laravel/laravel.php index a1ca2061..c3fef2ee 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -178,4 +178,8 @@ | */ -Event::fire('laravel.done', array($response)); \ No newline at end of file +Event::fire('laravel.done', array($response)); + +if (function_exists('fastcgi_finish_request')) { + fastcgi_finish_request(); +} \ No newline at end of file diff --git a/laravel/vendor/Symfony/Component/HttpFoundation/Response.php b/laravel/vendor/Symfony/Component/HttpFoundation/Response.php index 3a0a22e4..dacf4722 100755 --- a/laravel/vendor/Symfony/Component/HttpFoundation/Response.php +++ b/laravel/vendor/Symfony/Component/HttpFoundation/Response.php @@ -292,10 +292,6 @@ public function send() $this->sendHeaders(); $this->sendContent(); - if (function_exists('fastcgi_finish_request')) { - fastcgi_finish_request(); - } - return $this; }