|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-11 12:29 UTC] cristic at interaktonline dot com
[2006-01-11 12:52 UTC] cristic at interaktonline dot com
[2006-04-10 13:08 UTC] sniper@php.net
[2006-04-18 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
Description: ------------ When a redirect (header('Location:')) is used with a virtual include the Apache crash: --------------------------- Apache.exe - Application Error --------------------------- The instruction at "0x008736ac" referenced memory at "0x0001ee6c". The memory could not be "read". Click on OK to terminate the program Click on CANCEL to debug the program --------------------------- OK Cancel --------------------------- Reproduce code: --------------- a.php: <?php virtual(/b.php);?> <?php header('Location: http://server.com/c.php');?> b.php: <?php ?> c.php: <?php phpinfo(); ?> Expected result: ---------------- When doing this I just expect to be redirected to the c.php. Actual result: -------------- 1. Windows XP and Apache/1.3.33(Win32): --------------------------- Apache.exe - Application Error --------------------------- The instruction at "0x008736ac" referenced memory at "0x0001ee6c". The memory could not be "read". Click on OK to terminate the program Click on CANCEL to debug the program --------------------------- OK Cancel --------------------------- The php.ini differences with php.ini-dist: short_open_tag = Off output_buffering = 65535 output_handler = ob_gzhandler allow_call_time_pass_reference = Off memory_limit = 100M error_reporting = E_ALL log_errors = On error_log = errors_php register_long_arrays = Off register_argc_argv = Off 2.Linux Fedora RC 4, Apache 2.0.54: The Apache is not crashing anymore but the header() is still not working: Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/a.php:1) in /var/www/html/a.php on line 0 ------------------------------------ The problem I could reproduce on Linux on PHP 4.3.11 as well.