php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #784 stat() bug introduced in 3.0.4?
Submitted: 1998-09-24 22:54 UTC Modified: 1998-09-25 15:19 UTC
From: russell at flora dot org Assigned:
Status: Closed Package: Other
PHP Version: 3.0.4 OS: Slackware 3.5 (Linux 2.0.35,libc
Private report: No CVE-ID: None
 [1998-09-24 22:54 UTC] russell at flora dot org
Between 3.0.3 and 3.0.4 a bug was introduced where Apache
(1.3.2 in this case) will report missing files as "403 forbidden" rather than "404 not found".  Reading the changelog I note a reference to an added lstat() function which might relate (Although I'm not sure how).

  If you are not able to reproduce this easily, please let me know and I will try to do more debugging here.

Note: I do not have a php3.ini file.  This is from a freshly built system where I noticed this problem before I had a chance to modify any configuration.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-25 15:19 UTC] zeev
This turned out to be an Apache bug.  It's fixed in
the 1.3.3-dev tree, with this patch:

*** Ohttp_config.c	Fri Sep 25 13:26:55 1998
--- http_config.c	Fri Sep 25 11:40:57 1998
***************
*** 1247,1253 ****
  	*result = dc;
      }
      else {
! 	if (errno == ENOENT || errno == ENOTDIR)
  	    dc = NULL;
  	else {
  	    ap_log_rerror(APLOG_MARK, APLOG_CRIT, r,
--- 1247,1253 ----
  	*result = dc;
      }
      else {
! 	if (errno == ENOENT || errno == ENOTDIR || (!access_name[0]))
  	    dc = NULL;
  	else {
  	    ap_log_rerror(APLOG_MARK, APLOG_CRIT, r,

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 09:01:28 2024 UTC