php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26967 returned value is NULL
Submitted: 2004-01-19 13:07 UTC Modified: 2004-01-19 13:18 UTC
From: ivan dot lamouret at caramail dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.3.4 OS: linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ivan dot lamouret at caramail dot com
New email:
PHP Version: OS:

 

 [2004-01-19 13:07 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-19 13:18 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 09 23:01:30 2024 UTC