Re: Bug #12004 Updated: fopen of url results in invlaid file handle
| From: | Alan Knowles | Date: | Mon, 17 Dec 2001 11:08:34 +0000 |
| Subject: | Re: Bug #12004 Updated: fopen of url results in invlaid file handle | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74108@lists.php.net to get a copy of this message | ||
The whole file needs a bit of an overhall for that :)
Markus Fischer wrote:
On Mon, Dec 17, 2001 at 10:28:36AM -0000, alan_k@php.net wrote :Generally I'm always for exposring the context of the current function with get_active_functin_name(); just like Andrei does it with zend_parse_parameters; "%s() ...", get_active_blabla. - Markusreturn NULL; } + if (strcmp(mode, "r") && strcmp(mode, "w")) { + php_error(E_WARNING, "Invalid mode : ftp can only access files in (r)ead or (w)rite mode");