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:15
Avg. Score:3.9 ± 1.1
Reproduced:8 of 10 (80.0%)
Same Version:10 (125.0%)
Same OS:9 (112.5%)
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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC