#26967 [Opn->Csd]: returned value is NULL
| From: | sniper@php.net | Date: | Mon, 19 Jan 2004 18:18:12 +0000 |
| Subject: | #26967 [Opn->Csd]: returned value is NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53587@lists.php.net to get a copy of this message | ||
ID: 26967
Updated by: sniper@php.net
Reported By: ivan dot lamouret at caramail dot com
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: linux
PHP Version: 4.3.4
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-01-19 13:07:34] ivan dot lamouret at caramail dot com
Description:
------------
ftell returns NULL instead of false when passed argument is not a valid
filehandle
Reproduce code:
---------------
$fd=fopen("tmp.txt");
$res=ftell($fdd);
var_dump($res);
Expected result:
----------------
(bool)false
Actual result:
--------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26967&edit=1