Date: 10/31/00
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] http://bugs.php.net/bugs.php?id=7223"
- Previous message: stas <email protected>: "[PHP-DEV] PHP 4.0 Bug #7223 Updated: can't built php4apache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jani,
I sent an explination and fix to the list quite awhile ago,
could you take a look at this
-Jason
----- Original Message -----
From: "Jason" <jason <email protected>>
To: <php-dev <email protected>>
Cc: <steve <email protected>>; <askalski <email protected>>
Sent: Sunday, October 15, 2000 10:21 AM
Subject: [PHP-DEV] RE:[PHP-DEV] PHP 4.0 Bug #7216: ftp_mkdir returns nothing - fix
> This problem is cuased by Solaris's ftp server which does _not_ print
> the directory after a successful MKD. According to RFC, anything with
> response 257 should be good, but to comply with the style of ftp.c I
> just added a condition specific to a successful solaris ftp server
> return code. There should be a better way to implement this, else there
> is a possibility for this to break on another non-compliant ftp server
> out there.
>
> -Jason
>
> *** ftp.c.orig Sun Oct 15 12:37:41 2000
> --- ftp.c Sun Oct 15 12:47:35 2000
> ***************
> *** 378,385 ****
> return NULL;
>
> /* copy out the dir from response */
> ! if ((mkd = strchr(ftp->inbuf, '"')) == NULL)
> ! return NULL;
> end = strrchr(++mkd, '"');
> *end = 0;
> mkd = strdup(mkd);
> --- 378,390 ----
> return NULL;
>
> /* copy out the dir from response */
> ! if ((mkd = strchr(ftp->inbuf, '"')) == NULL) {
> ! if (strstr(ftp->inbuf,"successful")) { /* Solaris FTP Server
> */
> ! mkd=strdup(dir);
> ! return mkd;
> ! } else return NULL;
> ! }
> !
> end = strrchr(++mkd, '"');
> *end = 0;
> mkd = strdup(mkd);
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] http://bugs.php.net/bugs.php?id=7223"
- Previous message: stas <email protected>: "[PHP-DEV] PHP 4.0 Bug #7223 Updated: can't built php4apache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

