power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

FastCGI/Exceptions: Status code not sent to browser #400

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
0. install fastcgi/iis
1. throw an Exception in Normal mode
2. Check out the http status code sent to browser => 200

What is the expected output? What do you see instead?
Status code received should be 500 or any other specified with THttpException.

What version of the product are you using? On what operating system?
Prado 3.10

Please see patch with a proposition fixing this error.
For additionnal information, http://www.php.net/manual/en/function.header.php 
See example #3.

Original issue reported on code.google.com by E.Let...@gmail.com on 9 May 2012 at 12:17

Attachments:

GoogleCodeExporter commented 8 years ago
Please add this line of code before the if, it will not work else :)
$CGI=substr(php_sapi_name(), 0, 3) == 'cgi'; // FastCGI / IIS

Original comment by E.Let...@gmail.com on 9 May 2012 at 12:21

GoogleCodeExporter commented 8 years ago
fixed in r3138, thank you

Original comment by ctrlal...@gmail.com on 10 May 2012 at 10:06