Re: [Jason] Saving error "0"
using firefox and safari.. both get the "0"
What else could I tell them?
I sent them this origianlly:
This server is sending an incorrect response according to RFC 2616.
I set up a test page s2smedia.net/test.php
only thing on this page is <?php exit; ?>
The 0 displayed is not the PHP exit function's status code: it's what this server sends as content any time there is no content to be sent.
The server is sending a Content-Length of 0 and a message-body of "0", which is 1 byte long. This is contrary to the Content-Length of 0 it has sent. This is incorrect behaviour according to RFC 2616:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html
"When a Content-Length is given in a message where a message-body is allowed, its field value MUST exactly match the number of OCTETs in the message-body."
Browsers will try to ignore conflicting information, rather than displaying an error. It so happens that Firefox decides to ignore the Content-Length header while Internet Explorer decides to ignore the message-body.
Please update your servers to adhere to w3 standards as described here:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html
----------
They replied with this:
Thank you for your patience.
If status is a string, exit function prints the status just before exiting.
If status is an integer, that value will be used as the exit status and not printed. Exit statuses should be in the range 0 to 254, the exit status 255 is reserved by PHP and shall not be used. The status 0 is used to terminate the program successfully. Also, php version with 4.2.0 or higher does not print the status, if it is an integer. Hence, the functions exit; , exit(0); , or exit(); will terminate the program normally. If you want to terminate the program with an error code, you need to specify the value as either an octal or character strings.
If you have any further questions, please update Support Console.
Sincerely,
----------------------
Any idea on what I should reply with?