cvs: php4 /sapi/apache/ mod_php4.c

From: Date: Fri, 26 May 2000 18:43:09 +0000
Subject: cvs: php4 /sapi/apache/ mod_php4.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15817@lists.php.net to get a copy of this message
rasmus Fri May 26 11:43:09 2000 EDT Modified files: /php4/sapi/apache mod_php4.c Log: @ 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. Index: php4/sapi/apache/mod_php4.c diff -u php4/sapi/apache/mod_php4.c:1.49 php4/sapi/apache/mod_php4.c:1.50 --- php4/sapi/apache/mod_php4.c:1.49 Thu May 18 08:34:40 2000 +++ php4/sapi/apache/mod_php4.c Fri May 26 11:43:09 2000 @@ -17,7 +17,7 @@ | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: mod_php4.c,v 1.49 2000/05/18 15:34:40 zeev Exp $ */ +/* $Id: mod_php4.c,v 1.50 2000/05/26 18:43:09 rasmus Exp $ */ #define NO_REGEX_EXTRA_H #ifdef WIN32 @@ -457,7 +457,7 @@ /* 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"

« previous php.version4 (#15817) next »