PHP 4.0 Bug #2687: Netscape Crash when execute .php page
| From: | a dot jancevskis at konts dot lv | Date: | Mon, 08 Nov 1999 20:19:10 +0000 |
| Subject: | PHP 4.0 Bug #2687: Netscape Crash when execute .php page | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12228@lists.php.net to get a copy of this message | ||
From: a.jancevskis@konts.lv
Operating system: WinNT 4.0 SP4
PHP version: 4.0 Beta 2
PHP Bug Type: Reproduceable crash
Bug description: Netscape Crash when execute .php page
<?
$ad["image"]="default_image.gif";
$ad["alt"]="default_ad";
$ad["link"]="getlink.php?im=def";
$ad["status"]="default_image.gif";
if ($fi=fopen("ads.ini","r")) {
$str="An empty string: ";
// while (! feof($fi)) {
// $str=$str . fgetc($fi);
// echo fgetc($fi);
// }
// $str=fgets($fi, filesize($fi));
echo("File contain: " . $str);
}
else{
echo ("File is not open");
}
fclose($fi);
?>
I assume that getc() (or work with file system???) doesn't work, because, when I execute a
while cycle it never ends.
File "ads.ini" is in the same directory as php page. It contains:
AdsHome=F:\jaunumi\ads
AdsImagesHome=F:\jaunumi\ads\images
Andris Jancevskis