#26967 [NEW]: returned value is NULL

From: Date: Mon, 19 Jan 2004 18:07:35 +0000
Subject: #26967 [NEW]: returned value is NULL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53585@lists.php.net to get a copy of this message
From: ivan dot lamouret at caramail dot com Operating system: linux PHP version: 4.3.4 PHP Bug Type: Filesystem function related Bug description: returned value is NULL 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 bug report at http://bugs.php.net/?id=26967&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26967&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26967&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26967&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26967&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26967&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26967&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26967&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26967&r=support Expected behavior: http://bugs.php.net/fix.php?id=26967&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26967&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26967&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26967&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26967&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26967&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26967&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26967&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26967&r=float

« previous php.bugs (#53585) next »