On 13.04.2010 15:42, Ren wrote: > Hi, > > Just wondering what the cons are to conditionally (if PHP is running > as fastcgi) calling fastcgi_finish_request() [1] in Response::send(). > > Seems quite nice way to deferring some work that doesn't affect the > response, until after the response has been sent to the client, > without any down sides?
That looks very interesting, but also quite dangerous in development, if an error occurs within the shutdown code and fcgi has closed the pipe I guess you wouldn't see it in the browser. Therefore I think it should only be called if debug is false. Apart from that I totally approve. Cheers, Jordi
signature.asc
Description: OpenPGP digital signature
