|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-08-25 16:23 UTC] jeroen at terena dot nl
Description: ------------ Please see http://bugs.php.net/bug.php?id=33987 I'm still experiencing the same bug in 5.1RC1 Any custom error document other than a PHP document works. If I use a PHP document no code gets executed it just seems to ignore the error document. Occaisionally I get an even weirder response like Apache trying to send the original file (jpeg in my case) anyway. This ofcourse doesn't work. I'm using PHP5.1RC1, Apache2 on Debian Linux. Reproduce code: --------------- .htaccess ErrorDocument 404 /404.php 404.php can leave it empty Expected result: ---------------- empty page or whatever code was put in 404.php Actual result: -------------- nothing. displays referring page in mozilla. IE shows its "page could not be displayed" document. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
I'm reopening this since I'm seeing this again. Ilia, you fixed this last time, but this line is suspicious: sapi/apache2handler/sapi_apache2.c:538 if (parent_req && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) { It crashes since (in this case) the parent_req->handler is null. strcmp() didn't like that. :)