Test: /ext/ftp/tests/bug39583-2.phpt - Version 5.6.40-dev    

There is 1 diff reported by users for this test.

Count Diff
3 (100%)
002+
002- Uploaded %sbug39583-2.php as bug39583-2.php
003+ Warning: file_get_contents(nm2.php): failed to open stream: No such file or directory in /usr/src/apache/php-src/debian/build-tree/php56/ext/ftp/tests/server.inc on line 257
004+ bool(false)
005+ string(517) "<?php
006+ require 'server.inc';
007+
008+ $ftp = ftp_connect('127.0.0.1', $port);
009+ if (!$ftp) die("Couldn't connect to the server");
010+
011+ var_dump(ftp_login($ftp, 'user', 'pass'));
012+
013+ $source_file = __FILE__;
014+ $destination_file = basename(__FILE__);
015+
016+ // upload the file
017+ $upload = ftp_put($ftp, $destination_file, $source_file, FTP_BINARY);
018+
019+ // check upload status
020+ if (!$upload) {
021+ echo "FTP upload has failed!";
022+ } else {
023+ echo "Uploaded $source_file as $destination_file";
024+ }
025+
026+ // close the FTP stream
027+ ftp_close($ftp);
028+ ?>
029+ "
030+
031+ Warning: ftp_put(): Requested file action aborted. in %s/bug39583-2.php on line 13
032+ FTP upload has failed!