RE: PHP 4.0 Bug #7216 Updated: ftp_mkdir returns nothing

From: Date: Thu, 02 Nov 2000 10:03:59 +0000
Subject: RE: PHP 4.0 Bug #7216 Updated: ftp_mkdir returns nothing
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-36758@lists.php.net to get a copy of this message
Jani, Yes, I am connecting into a Solaris FTP server. I believe that the FTP server included with NT 4.0 behaves in a similar fashion to that of the Solaris FTP server. I received a work-around patch from jason@inetgurus.net, see attached. I'm OK with the patch, however, a permanent solution should probably be incorporated, thanks. Steve -----Original Message----- From: Bug Database [mailto:php-dev@lists.php.net] Sent: Wednesday, November 01, 2000 9:29 AM To: steve@plastrik.com Subject: PHP 4.0 Bug #7216 Updated: ftp_mkdir returns nothing ID: 7216 Updated by: sniper Reported By: steve@plastrik.com Status: Feedback Bug Type: FTP related Assigned To: Comments: Are you connecting into solaris FTP ?? It seems like the solaris's ftpd doesn't follow the RFC i.e. when MKD command is given it doesn't return the path created but only the succesful error code. --Jani Previous Comments: --------------------------------------------------------------------------- [2000-10-28 05:17:45] sniper@php.net I can not reproduce this with the latest CVS. ftp_mkfir() returns the full path of created directory if success and false on error. --Jani --------------------------------------------------------------------------- [2000-10-15 00:27:57] steve@plastrik.com ftp_mkdir returns nothing, regardless of success or failure. $strm=ftp_connect($HOST); $res=ftp_login($strm, $FTP_USER, $FTP_PASS); $res=ftp_mkdir($strm, "foo"); It also causes a warning to be displayed in the browser: Warning: ftp_mkdir: MKD command successful. in /usr/local/apache/htdocs/pub_profs.php on line 122 This seems like it should be an easy fix (for some one other than me). I would be happy to manually edit and test and changes to ftp.c or php_ftp.c Please advise. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7216

Attachment: [message/rfc822]
« previous php.dev (#36758) next »