#24677 [Opn->Asn]: [PEAR] File::readAll() does not close file handle after reading

From: Date: Sun, 27 Jul 2003 11:05:58 +0000
Subject: #24677 [Opn->Asn]: [PEAR] File::readAll() does not close file handle after reading
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18782@lists.php.net to get a copy of this message
ID: 24677 Updated by: arnaud@php.net Reported By: pjones at ciaweb dot net -Status: Open +Status: Assigned Bug Type: PEAR related Operating System: OpenBSD 3.1 PHP Version: Irrelevant -Assigned To: +Assigned To: coredumb Previous Comments: ------------------------------------------------------------------------ [2003-07-16 09:08:18] pjones at ciaweb dot net 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 this bug report at http://bugs.php.net/?id=24677&edit=1

« previous php.pear.dev (#18782) next »