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

From: Date: Thu, 10 Aug 2000 14:33:28 +0000
Subject: Re: PHP 4.0 Bug #6090 Updated: ftell() returns -1 (not false) if an error occurs.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28435@lists.php.net to get a copy of this message
BD>> Umm... what I want to say, BD>> PHP's ftell function returns directly C's ftell(). No. It actually returns false if file descriptor is wrong. But you have a point, it might want some safety belts, like if file descriptor has disappeared in the meantime. BD>> /* {{{ proto int fseek(int fp, int offset [, int whence]) BD>> Seek on a file pointer */ That's fseek, not ftell. -- Stanislav Malyshev stas@zend.com +972-3-6139665 ext.106

« previous php.dev (#28435) next »