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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 37 = ?
Subscribe to this entry?

 
 [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: Fri May 17 01:01:32 2024 UTC