PHP 4.0 Bug #6090: ftell() returns -1 (not false) if an error occurs.

From: Date: Fri, 11 Aug 2000 01:45:33 +0000
Subject: PHP 4.0 Bug #6090: ftell() returns -1 (not false) if an error occurs.
Groups: php.dev 
Request: Send a blank email to php-dev+get-28425@lists.php.net to get a copy of this message
From: sagawa@sohgoh.net Operating system: Linux PHP version: 4.0.1pl2 PHP Bug Type: Documentation problem Bug description: ftell() returns -1 (not false) if an error occurs. Quote from Linux Programmer's Manual fseek(3)... >RETURN VALUES > The rewind function returns no value. Upon successful > completion, fgetpos, fseek, fsetpos return 0, and ftell > returns the current offset. Otherwise, -1 is returned and > the global variable errno is set to indicate the error. So, we get 0(=false) if file position is begining of file. But that's not error.

« previous php.dev (#28425) next »