From: Rasmus Lerdorf Date: Fri, 26 May 2000 18:43:09 +0000 (+0000) Subject: @ Changed the Apache handler's return status to 'Declined' when a requested X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81c4fd5efc1dc35500493ccd304284080739f425;p=php @ Changed the Apache handler's return status to 'Declined' when a requested @ PHP file could not be found. Returning 'Not Found' caused problems @ in the ErrorDocument handler stage in that $REDIRECT_REDIRECT_ERROR_NOTES @ was not getting set at all. Moving to 'Declined' shoudl fix this and I @ can't see any other side effects. (Rasmus) Changed the Apache handler's return status to 'Declined' when a requested PHP file could not be found. Returning 'Not Found' caused problems in the ErrorDocument handler stage in that $REDIRECT_REDIRECT_ERROR_NOTES was not getting set at all. Moving to 'Declined' shoudl fix this and I can't see any other side effects. --- diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 7872204424..e4346eceb2 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -457,7 +457,7 @@ int send_php(request_rec *r, int display_source_mode, char *filename) /* Make sure file exists */ if (filename == NULL && r->finfo.st_mode == 0) { - return NOT_FOUND; + return DECLINED; } /* If PHP parser engine has been turned off with an "engine off"