Re: File bug and Mime_Mail extension
| From: | Wolfram Kriesing | Date: | Thu, 16 May 2002 16:42:23 +0000 |
| Subject: | Re: File bug and Mime_Mail extension | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6154@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
is it not that packages are made to make work easier for each other? and since File exists what's the reason not to rely on it? i thought that was one of the advantages PEAR would bring too! -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/autha problem with "File::readAll( remote file )" on a remote file: the method File::_getFilePointer checks the following // Check it existsLatest cvs copy of File.php doesn't have this problem. However I would prefer Mail_Mime not to rely on the File:: class. A simple loop should be fine here. where do you see the problem with that?if (FILE_MODE_READ == $mode AND !file_exists($filename)) { return PEAR::raiseError('File does not exists: ' . $filename);