Browse Source

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 <k.schmeets@gmail.com>
Koen Schmeets 12 years ago
parent
commit
b02fd5232c

+ 5 - 1
laravel/laravel.php

@@ -178,4 +178,8 @@ $response->send();
 |
 |
 */
 */
 
 
-Event::fire('laravel.done', array($response));
+Event::fire('laravel.done', array($response));
+
+if (function_exists('fastcgi_finish_request')) {
+    fastcgi_finish_request();
+}

+ 0 - 4
laravel/vendor/Symfony/Component/HttpFoundation/Response.php

@@ -292,10 +292,6 @@ class Response
         $this->sendHeaders();
         $this->sendHeaders();
         $this->sendContent();
         $this->sendContent();
 
 
-        if (function_exists('fastcgi_finish_request')) {
-            fastcgi_finish_request();
-        }
-
         return $this;
         return $this;
     }
     }