php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2687 Netscape Crash when execute .php page
Submitted: 1999-11-08 15:19 UTC Modified: 1999-11-15 09:28 UTC
From: a dot jancevskis at konts dot lv Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 2 OS: WinNT 4.0 SP4
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: a dot jancevskis at konts dot lv
New email:
PHP Version: OS:

 

 [1999-11-08 15:19 UTC] a dot jancevskis at konts dot lv
<?
$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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-14 01:55 UTC] joey at cvs dot php dot net
OK, but what does any of that have to do with Netscape crashing?
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 13:00:01 2026 UTC