cvs: php4 /sapi/apache/ mod_php4.c

[email protected] ("Rasmus Lerdorf")
Newsgroups php.version4
Message-ID <cvsrasmus959366589@cvsserver>
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 <[email protected]>                      |
    +----------------------------------------------------------------------+
  */
-/* $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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.