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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 05:01:30 2024 UTC