php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 - 31 = ?
Subscribe to this entry?

 
 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 01:01:30 2024 UTC