|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #132 S_ISREG not defined in fopen-wrappers.c (3.0b6)
Submitted: 1998-03-02 20:59 UTC Modified: 1998-03-03 01:36 UTC
From: jfreeman at wwa dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: other OS: WIN32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jfreeman at wwa dot com
New email:
PHP Version: OS:


 [1998-03-02 20:59 UTC] jfreeman at wwa dot com
When compiling PHP project with VC++ 5.0, S_ISREG() in fopen-wrappers.c is not defined.  There are defines for S_ISREG (and S_ISDIR and S_ISLNK) in filestat.c but it would seem they should be moved to a header file that is included in fopen-wrappers.c and filestat.c.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-03 01:36 UTC] jaakko
I fixed it the easy way, just adding the same define as in filestat.c,
as it is the smallest cleanest way. It's not a big deal, and an extra include
for a small define that is merely a shorthand makes it only complicated.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 01:03:43 2022 UTC