Hex output printed on 404 error
| From: | Michael Papile | Date: | Mon, 28 Jan 2008 23:23:03 +0000 |
| Subject: | Hex output printed on 404 error | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-61795@lists.php.net to get a copy of this message | ||
Hello
I submitted http://bugs.php.net/bug.php?id=43956 and within seconds my bug was flagged as bogus. If someone in QA could kindly look at the test code I submitted you will quickly see that this indeed is a legitimate bug and worthy of investigation. It took me a long time to make the minimal test case. It could be a bug with Apache, but then again I do not have the resources and low level knowledge to ascertain that. There is hex output being printed to the screen from something not in the code when this code is executed.
Description:
------------
There appears to be some sort of overflow occurring when the header is
set to 'HTTP/1.1 404 Not Found' on apache. We are using apache 2.24. When the print output of the PHP script exceeds 8000 characters, and the
header is set to 'HTTP/1.1 404 Not Found' the character count is printed
in hex at the top of the screen. If the header is set to 'HTTP/1.0 404
Not Found' this does not occur.
Reproduce code:
---------------
publish.aps.org/test.txt
Expected result:
----------------
8000 0's and 1 x
Actual result:
--------------
1f41 8000 0's and 1 x
and another 0 at the bottom of the page.