|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-05-17 06:23 UTC] clover at fromru dot com
Description: ------------ I set the "ErrorDocument 404 /HTTP_NOT_FOUND.php" in the apache2 configuration and "expose_php = Off" in the PHP_INI file. And I using telnet to the localhost:80 to look headers and content: GET /non_existing_page HTTP/1.0 Host: localhost HTTP response header ends with \r\n\r\n\r\n instead of \r\n\r\n I changed my option "expose_php = On" and fixed this problem Reproduce code: --------------- I have no code in my /HTTP_NOT_FOUND.php, only html from the first line: <html> <head> ... Expected result: ---------------- HTTP/1.1 404 Not Found Date: Tue, 16 May 2006 11:40:01 GMT Server: Apache Content-Length: 136 Connection: close Content-Type: text/html <html> <head> ... Actual result: -------------- HTTP/1.1 404 Not Found Date: Tue, 16 May 2006 11:40:01 GMT Server: Apache Content-Length: 136 Connection: close Content-Type: text/html <html> <head> ... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 05:00:01 2025 UTC |
Actual result: -------------- HTTP/1.1 404 Not Found\r\n Date: Tue, 16 May 2006 11:40:01 GMT\r\n Server: Apache\r\n Content-Length: 136\r\n Connection: close\r\n Content-Type: text/html\r\n \r\n <- THIS IS INCORRECT LINE ("X-Powered-By: PHP/5.1.2") \r\n <html>\r\n <head>\r\n ...