php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5 fclose in php3_minit_file undeclared
Submitted: 1998-01-25 19:46 UTC Modified: 1998-01-29 14:20 UTC
Votes:12
Avg. Score:3.6 ± 1.0
Reproduced:5 of 7 (71.4%)
Same Version:8 (160.0%)
Same OS:6 (120.0%)
From: asparks at nss dot harris dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0b3 OS: SunOS 4.1.4
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: asparks at nss dot harris dot com
New email:
PHP Version: OS:

 

 [1998-01-25 19:46 UTC] asparks at nss dot harris dot com
Compiling under SunOS 4.1.4:  gcc error trace:

functions/file.c: In function `php3_minit_file':
functions/file.c:254: `fclose' undeclared (first use this function)
functions/file.c:254: (Each undeclared identifier is reported only once
functions/file.c:254: for each function it appears in.)    

Apparently BROKEN_SUN_HEADERS does not get automatically set.
How are these supposed to get set?  Not set by configure.


Patches

Seurah (last revision 2021-03-05 13:43 UTC by kimwatson368 at yahoo dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-01-29 14:20 UTC] jim
This should be fixed in the latest CVS (and then PHP/3.0b4). The configure script should now automatically detect that the declaration of fclose() is missing and set the MISSING_FCLOSE_DECL #define in config.h.
 [2012-03-05 23:55 UTC] johannes@php.net
Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&revision=323929
Log: Fix bug #60948 mysqlnd FTBFS when -Wformat-security is enabled

# 5.3 not affected
 [2018-05-29 19:39 UTC] jbnahan@php.net
Automatic comment from SVN on behalf of jbnahan
Revision: http://svn.php.net/viewvc/?view=revision&revision=345078
Log: Fix Exemple #5 from EN
 [2019-07-15 14:29 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=347753
Log: Fix typos

Patch by carusogabriel.

Closes php/doc-en#5.
 [2021-03-05 13:43 UTC] kimwatson368 at yahoo dot com
The following patch has been added/updated:

Patch Name: Seurah
Revision:   1614951815
URL:        https://bugs.php.net/patch-display.php?bug=5&patch=Seurah&revision=1614951815
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Mar 07 15:01:23 2021 UTC