#24677 [NEW]: [PEAR] File::readAll() does not close file handle after reading
| From: | pjones at ciaweb dot net | Date: | Wed, 16 Jul 2003 14:08:18 +0000 |
| Subject: | #24677 [NEW]: [PEAR] File::readAll() does not close file handle after reading | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-18300@lists.php.net to get a copy of this message | ||
From: pjones at ciaweb dot net
Operating system: OpenBSD 3.1
PHP version: Irrelevant
PHP Bug Type: PEAR related
Bug description: [PEAR] File::readAll() does not close file handle after reading
Description:
------------
When using File::readAll() to read the entire contents
of the same file more than once in the same script, the
first readAll() returns the contents properly, but
subsequent readAll() calls do not. I think this is
because readAll() does not close the file handle when
the method is complete (it leaves the file handle open,
thus locking the file off from subsequent access).
--
Edit bug report at http://bugs.php.net/?id=24677&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24677&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24677&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24677&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24677&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24677&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24677&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24677&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24677&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24677&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24677&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24677&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24677&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24677&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24677&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24677&r=gnused