Date: 11/08/99
- Next message: Andi Gutmans: "Re: [PHP-DEV] PHP 4.0 Bug #2675 Updated: Misbehavior of object initializers"
- Previous message: Rasmus Lerdorf: "[PHP-DEV] cvs: /CVSROOT cvsusers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: a.jancevskis <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP-DEV] PHP 4.0 Bug #2675 Updated: Misbehavior of object initializers"
- Previous message: Rasmus Lerdorf: "[PHP-DEV] cvs: /CVSROOT cvsusers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

