PHP 4.0 Bug #10253 Updated: fopen returns pointer to empty file
| From: | sniper@php.net | Date: | Mon, 09 Apr 2001 23:53:46 +0000 |
| Subject: | PHP 4.0 Bug #10253 Updated: fopen returns pointer to empty file | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51250@lists.php.net to get a copy of this message | ||
ID: 10253
Updated by: sniper
Reported By: mlane@nucleus.com
Old-Status: Open
Status: Bogus
Bug Type: Filesystem function related
Assigned To:
Comments:
1. Read the manual page for filesize() at http://www.php.net/filesize
(hint: It wants a filename as parameter)
2. If this was just buggy example script and you can
reproduce whatever happens with latest CVS snapshot from http://snaps.php.net/ then reopen this bug report.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-04-09 17:16:29] mlane@nucleus.com
<?
$fp=fopen ("/usr/local/apache/htdocs/sales.nationalonline.ca/test/test.file",
"r+");
print $fp;
if (!$fp) print "error";
else $rt=filesize($fp);
print $rt;
print "blue:";
?>
Resource id #1blue:
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10253&edit=2