]> granicus.if.org Git - php/commitdiff
@ Changed the Apache handler's return status to 'Declined' when a requested
authorRasmus Lerdorf <rasmus@php.net>
Fri, 26 May 2000 18:43:09 +0000 (18:43 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 26 May 2000 18:43:09 +0000 (18:43 +0000)
@ 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.

sapi/apache/mod_php4.c

index 7872204424cdbf6af6235be3359c1c11bba36e48..e4346eceb26f715ce3fabe3786115f296b58cc55 100644 (file)
@@ -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"