From: webmaster at ebinformatique dot com Operating system: Windows XP SP2 PHP version: 4.3.10 PHP Bug Type: HTTP related Bug description: Problem with header() function
Description: ------------ I have a problem with the header() function, it happened all off a sudden: Whenever there is a call to header() to redirect a page (i tried the echo method in another bug report and this is the output it gave): Location: http://192.168.1.100:99/members/logged_out.php Whenever i do a redirection it points to a blank page, no source visible whatsoever. I tried updating version from 4.3.10 to 4.3.11 but no go, still same problem. But it was working fine so i hightly doubt it could be the form of the URL itself to be the problem. Cleared my browser cache too, nothing helped. Tried in IE, Firefox, both with empty caches, same problem, i get a white page. Reproduce code: --------------- Here is a chunk of code that called a redirection function: if ($tmp_bool_login) { Global_Functions::redirect_user($_POST['redirect']); } and the redirect_user: function redirect_user($tmp_str_destination) { session_write_close(); header('Location: ' . $tmp_str_destination); header('Content-Location: ' . $tmp_str_destination); header('Request-URI: ' . $tmp_str_destination); exit; } Expected result: ---------------- If the $tmp_bool_login was successful, it would redirect to $_POST['redirect'] so that the user gets send back to the page he was when he signed in. not a blank page. Actual result: -------------- When filling the form with a user and pass, it sends to login and it's a success, but it fails to redirect to the page. In fact any redirection whatsoever fails. -- Edit bug report at http://bugs.php.net/?id=32815&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32815&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32815&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32815&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32815&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32815&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32815&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32815&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32815&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32815&r=support Expected behavior: http://bugs.php.net/fix.php?id=32815&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32815&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32815&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32815&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32815&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32815&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32815&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32815&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32815&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32815&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32815&r=mysqlcfg
