Doc #78653 [NEW]: Documentation for ftp-put contains incorrect default

From: Date: Wed, 09 Oct 2019 07:13:42 +0000
Subject: Doc #78653 [NEW]: Documentation for ftp-put contains incorrect default
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16992@lists.php.net to get a copy of this message
From: valeri dot geiser at km-logistik-service dot de Operating system: - PHP version: 7.3.10 Package: Documentation problem Bug Type: Documentation Problem Bug description:Documentation for ftp-put contains incorrect default Description: ------------ --- From manual page: https://php.net/function.ftp-put --- The function signature - according to above mentioned documentation page - is: ftp_put ( resource $ftp_stream , string $remote_file , string $local_file [, int $mode = FTP_IMAGE [, int $startpos = 0 ]] ) : bool But the parameter doc says mode The transfer mode. Must be either FTP_ASCII or FTP_BINARY. So I assume the default for $mode has to be either FTP_ASCII OR FTP_BINARY and not FTP_IMAGE. Since it is FTP_BINARY for ftp_get, I assume it is FTP_BINARY here as well. Test script: --------------- N/A -- Edit bug report at https://bugs.php.net/bug.php?id=78653&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78653&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78653&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78653&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78653&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78653&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78653&r=support Expected behavior: https://bugs.php.net/fix.php?id=78653&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78653&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78653&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78653&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78653&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78653&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78653&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78653&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78653&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78653&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78653&r=mysqlcfg

« previous php.doc.bugs (#16992) next »