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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: russell at flora dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 05:00:01 2026 UTC