php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1989 Segmentation Fault
Submitted: 1999-08-07 15:05 UTC Modified: 1999-08-07 15:12 UTC
From: devrim at tef dot gazi dot edu dot tr Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0b1 OS: Linux -2.2.5-15-Redhat 6
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: devrim at tef dot gazi dot edu dot tr
New email:
PHP Version: OS:

 

 [1999-08-07 15:05 UTC] devrim at tef dot gazi dot edu dot tr
<HTML>
<BODY>
<TITLE>File open </TITLE>
<?
if (!$fd=fopen("/etc/passwd","r")) {
exit(0);
}
while (!feof($fd)){
  $buffer = fgets($fd, 4096);
  print "<P>$buffer<P>\n";
}
fclose($fd);
?>
</BODY>
</HTML>

fclose function cause segmentation fault and crash..
I am only compile zend with mysql support 
My php.ini file is default


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-07 15:12 UTC] zeev at cvs dot php dot net
Thanks for the bug report!

First, please report PHP 4.0 bugs at http://bugs.php.net/version4/
Second, are you using PHP as a dynamic module?  If you are, the
Apache build process for dynamic modules is wrong, and may generate
invalid modules.  What you describe is a typical symptom of
that problem.  You would need to upgrade to Apache 1.3.8 once
it's released.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 14:00:01 2026 UTC