Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: Oops. Pardon the above accidental comment submission. I have experienced this problem which causes the PHP to not complete the request. It appears that the culprit is the exit() construct. It also occurs with the die() function. If you remove the exit(); call, the script does not error. if($_GET['test']) { header('Location: http://www.host.dom/otherdir/;); exit(); } else { echo 'ok..'; } f you call the above script as script.php?test=1 with a valid URL for redirect, you will see this error manifest itself. (Confirmed under FreeBSD 4.2) Previous Comments: [2002-05-07 10:01:51] [EMAIL PROTECTED] I have experienced this problem also with a very simple script: if($_GET['test']) { header('Location: http://www.amigadev.net/forums/'); error_log(redirecting to forums); // temp fix for broken PHP 4.2 echo 'HTMLhead'; echo 'META HTTP-EQUIV=Refresh Content=0; URL=http://www.amigadev.net/forums/;'; echo '/headbody/body/HTML'; // exit(); // die(); [2002-05-02 06:23:55] [EMAIL PROTECTED] I've come over this too. On a Win95 / Omnithttpd - System. PHP 4.2.0 does not even return ANY headers. Thus, the httpd does not retrun anything to the browser. This does work, however: ?php echo Content-Type: text/plain\r\n\r\n; echo Some text; ? [2002-05-01 06:16:52] [EMAIL PROTECTED] Reopened to confirm. [2002-05-01 00:45:47] [EMAIL PROTECTED] I have experienced this same bug on my systems. I upgraded from PHP 4.1.2 on W2k Professional running Apache 1.3.20 to PHP 4.2.0. header() function seems to stop working. ? header(Location: http://www.queenstown.com;); ? In any browser, no workie, workie, just blank page. Downgrade to PHP 4.2.1 and the problem disappears. A search of bug database on version 4.2.0 on all issues and all status' returns 244 results as of May 1, 2002 and this is the only mention of header() not working. [2002-04-27 14:46:17] [EMAIL PROTECTED] ?php header(Location: http://localhost/;); ? WinXP/Apache1.3.22/Apache module/Standard setup, standard modules On MSIE 6.0 and Netscape 6 nothings happen. Script start and normal end without any error (error_reporting = E_ALL). But I'm still on testing page. It seems just don't work and without any errors. I check configuration hundred times but with nothing :( The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16842 -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: I've come over this too. On a Win95 / Omnithttpd - System. PHP 4.2.0 does not even return ANY headers. Thus, the httpd does not retrun anything to the browser. This does work, however: ?php echo Content-Type: text/plain\r\n\r\n; echo Some text; ? Previous Comments: [2002-05-01 06:16:52] [EMAIL PROTECTED] Reopened to confirm. [2002-05-01 00:45:47] [EMAIL PROTECTED] I have experienced this same bug on my systems. I upgraded from PHP 4.1.2 on W2k Professional running Apache 1.3.20 to PHP 4.2.0. header() function seems to stop working. ? header(Location: http://www.queenstown.com;); ? In any browser, no workie, workie, just blank page. Downgrade to PHP 4.2.1 and the problem disappears. A search of bug database on version 4.2.0 on all issues and all status' returns 244 results as of May 1, 2002 and this is the only mention of header() not working. [2002-04-27 14:46:17] [EMAIL PROTECTED] ?php header(Location: http://localhost/;); ? WinXP/Apache1.3.22/Apache module/Standard setup, standard modules On MSIE 6.0 and Netscape 6 nothings happen. Script start and normal end without any error (error_reporting = E_ALL). But I'm still on testing page. It seems just don't work and without any errors. I check configuration hundred times but with nothing :( [2002-04-26 02:25:16] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. [2002-04-26 02:03:12] [EMAIL PROTECTED] You are supposed to search bug DB, first There are sevral duplicated reports for this. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16842 -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Open Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: Reopened to confirm. Previous Comments: [2002-05-01 00:45:47] [EMAIL PROTECTED] I have experienced this same bug on my systems. I upgraded from PHP 4.1.2 on W2k Professional running Apache 1.3.20 to PHP 4.2.0. header() function seems to stop working. ? header(Location: http://www.queenstown.com;); ? In any browser, no workie, workie, just blank page. Downgrade to PHP 4.2.1 and the problem disappears. A search of bug database on version 4.2.0 on all issues and all status' returns 244 results as of May 1, 2002 and this is the only mention of header() not working. [2002-04-27 14:46:17] [EMAIL PROTECTED] ?php header(Location: http://localhost/;); ? WinXP/Apache1.3.22/Apache module/Standard setup, standard modules On MSIE 6.0 and Netscape 6 nothings happen. Script start and normal end without any error (error_reporting = E_ALL). But I'm still on testing page. It seems just don't work and without any errors. I check configuration hundred times but with nothing :( [2002-04-26 02:25:16] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. [2002-04-26 02:03:12] [EMAIL PROTECTED] You are supposed to search bug DB, first There are sevral duplicated reports for this. [2002-04-26 01:20:02] [EMAIL PROTECTED] It seem that header() function doesn`t work. Test was quite simle script with few lines of code (server-side redirection). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16842 -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: I have experienced this same bug on my systems. I upgraded from PHP 4.1.2 on W2k Professional running Apache 1.3.20 to PHP 4.2.0. header() function seems to stop working. ? header(Location: http://www.queenstown.com;); ? In any browser, no workie, workie, just blank page. Downgrade to PHP 4.2.1 and the problem disappears. A search of bug database on version 4.2.0 on all issues and all status' returns 244 results as of May 1, 2002 and this is the only mention of header() not working. Previous Comments: [2002-04-27 14:46:17] [EMAIL PROTECTED] ?php header(Location: http://localhost/;); ? WinXP/Apache1.3.22/Apache module/Standard setup, standard modules On MSIE 6.0 and Netscape 6 nothings happen. Script start and normal end without any error (error_reporting = E_ALL). But I'm still on testing page. It seems just don't work and without any errors. I check configuration hundred times but with nothing :( [2002-04-26 02:25:16] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. [2002-04-26 02:03:12] [EMAIL PROTECTED] You are supposed to search bug DB, first There are sevral duplicated reports for this. [2002-04-26 01:20:02] [EMAIL PROTECTED] It seem that header() function doesn`t work. Test was quite simle script with few lines of code (server-side redirection). [2002-04-26 01:16:11] [EMAIL PROTECTED] It seem that header() function doesn`t work. I`ve tested this in simle script with few lines of code (server-side redirection). -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: ?php header(Location: http://localhost/;); ? WinXP/Apache1.3.22/Apache module/Standard setup, standard modules On MSIE 6.0 and Netscape 6 nothings happen. Script start and normal end without any error (error_reporting = E_ALL). But I'm still on testing page. It seems just don't work and without any errors. I check configuration hundred times but with nothing :( Previous Comments: [2002-04-26 02:25:16] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. [2002-04-26 02:03:12] [EMAIL PROTECTED] You are supposed to search bug DB, first There are sevral duplicated reports for this. [2002-04-26 01:20:02] [EMAIL PROTECTED] It seem that header() function doesn`t work. Test was quite simle script with few lines of code (server-side redirection). [2002-04-26 01:16:11] [EMAIL PROTECTED] It seem that header() function doesn`t work. I`ve tested this in simle script with few lines of code (server-side redirection). -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Previous Comments: [2002-04-26 02:03:12] [EMAIL PROTECTED] You are supposed to search bug DB, first There are sevral duplicated reports for this. [2002-04-26 01:20:02] [EMAIL PROTECTED] It seem that header() function doesn`t work. Test was quite simle script with few lines of code (server-side redirection). [2002-04-26 01:16:11] [EMAIL PROTECTED] It seem that header() function doesn`t work. I`ve tested this in simle script with few lines of code (server-side redirection). -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: It seem that header() function doesn`t work. Test was quite simle script with few lines of code (server-side redirection). Previous Comments: [2002-04-26 01:16:11] [EMAIL PROTECTED] It seem that header() function doesn`t work. I`ve tested this in simle script with few lines of code (server-side redirection). -- Edit this bug report at http://bugs.php.net/?id=16842edit=1
Bug #16842 Updated: header() function doesn`t work
ID: 16842 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: Windows XP PHP Version: 4.2.0 New Comment: You are supposed to search bug DB, first There are sevral duplicated reports for this. Previous Comments: [2002-04-26 01:20:02] [EMAIL PROTECTED] It seem that header() function doesn`t work. Test was quite simle script with few lines of code (server-side redirection). [2002-04-26 01:16:11] [EMAIL PROTECTED] It seem that header() function doesn`t work. I`ve tested this in simle script with few lines of code (server-side redirection). -- Edit this bug report at http://bugs.php.net/?id=16842edit=1