Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Markus Fischer
On Mon, Dec 17, 2001 at 07:18:17PM +0800, Alan Knowles wrote : > Markus Fischer wrote: > > >On Mon, Dec 17, 2001 at 07:08:34PM +0800, Alan Knowles wrote : > > > >>The whole file needs a bit of an overhall for that :) > >> > > > > As most code does. But why not starting with it right away? >

Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Alan Knowles
Markus Fischer wrote: >On Mon, Dec 17, 2001 at 07:08:34PM +0800, Alan Knowles wrote : > >>The whole file needs a bit of an overhall for that :) >> > >As most code does. But why not starting with it right away? > Bit like this? ;) Index: ftp_fopen_wrapper.c =

Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Markus Fischer
On Mon, Dec 17, 2001 at 07:08:34PM +0800, Alan Knowles wrote : > The whole file needs a bit of an overhall for that :) As most code does. But why not starting with it right away? > Markus Fischer wrote: > > >On Mon, Dec 17, 2001 at 10:28:36AM -, [EMAIL PROTECTED] wrote : > > > >>

Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Alan Knowles
The whole file needs a bit of an overhall for that :) Markus Fischer wrote: >On Mon, Dec 17, 2001 at 10:28:36AM -, [EMAIL PROTECTED] wrote : > >>return NULL; >>} >>+if (strcmp(mode, "r") && strcmp(mode, "w")) { >>+ php_error(E_WARNING, "Invalid

Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Markus Fischer
On Mon, Dec 17, 2001 at 10:28:36AM -, [EMAIL PROTECTED] wrote : > return 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"); Generally I

[PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread alan_k
ID: 12004 Updated by: alan_k Reported By: [EMAIL PROTECTED] Old Summary: problem with fopen over ftp and a related fgets Status: Analyzed Bug Type: *Directory/Filesystem functions Operating System: linux PHP Version: 4.0.5 New Comment: The following patch will issue a warning for trying to open a