ID: 12004 Comment by: enema-69841 at hotmail dot com Reported By: koenig at internet24 dot de Status: Closed Bug Type: *Directory/Filesystem functions Operating System: linux PHP Version: 4.0.5 Assigned To: wez New Comment:
<a href=http://69-covered-amateur.da.ru>69 enema</a> Previous Comments: ------------------------------------------------------------------------ [2002-08-11 06:54:09] [EMAIL PROTECTED] This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. At last! ------------------------------------------------------------------------ [2002-04-13 15:47:16] [EMAIL PROTECTED] We can probably do something about this with the new streams architecture. Assigning to myself. ------------------------------------------------------------------------ [2001-12-17 05:33:01] [EMAIL PROTECTED] browser changed the title for some reason... ------------------------------------------------------------------------ [2001-12-17 05:28:35] [EMAIL PROTECTED] The following patch will issue a warning for trying to open a ftp file in anything other than read/write, - as no other methods are supported by fopen(ftp) as far as producing errors on 'writing to an ftp file opened read only' - this is more complex as there is no indicators on the socket to tell wheter it was opened read or write, (internally the socket is opened rw as the actual connection is a 2 way communication) Index: ftp_fopen_wrapper.c =================================================================== RCS file: /repository/php4/ext/standard/ftp_fopen_wrapper.c,v retrieving revision 1.11 diff -u -r1.11 ftp_fopen_wrapper.c --- ftp_fopen_wrapper.c 9 Sep 2001 13:29:18 -0000 1.11 +++ ftp_fopen_wrapper.c 17 Dec 2001 10:24:06 -0000 @@ -101,6 +101,14 @@ *issock = BAD_URL; 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"); + php_url_free(resource); + *issock = BAD_URL; + return NULL; + } + + /* use port 21 if one wasn't specified */ if (resource->port == 0) resource->port = 21; ------------------------------------------------------------------------ [2001-10-20 22:40:26] [EMAIL PROTECTED] Reproduced with PHP 4.1.0RC1 Seems like this is not supported at all.. --Jani ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/12004 -- Edit this bug report at http://bugs.php.net/?id=12004&edit=1
