Bug #1989: Segmentation Fault
| From: | devrim at tef dot gazi dot edu dot tr | Date: | Sat, 07 Aug 1999 19:05:56 +0000 |
| Subject: | Bug #1989: Segmentation Fault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9628@lists.php.net to get a copy of this message | ||
From: devrim@tef.gazi.edu.tr
Operating system: Linux -2.2.5-15-Redhat 6
PHP version: 4.0b1
PHP Bug Type: Reproduceable crash
Bug description: Segmentation Fault
<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