diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-25 17:46:33 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-25 17:46:33 +0100 |
commit | e446ccdf75dd3618409352d4ed615296fd65de46 (patch) | |
tree | 9808e23da9459289adc37f384473112f4e621a55 /ext/ftp/tests | |
parent | 6f82ca8742cbdcd71295b7572605b4e0a2e36ed1 (diff) | |
parent | 065255a0f871ba1c72d50e44da10c8839929272e (diff) | |
download | php-git-e446ccdf75dd3618409352d4ed615296fd65de46.tar.gz |
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/ftp/tests')
-rw-r--r-- | ext/ftp/tests/server.inc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/ftp/tests/server.inc b/ext/ftp/tests/server.inc index 285377e6e8..ed21843f43 100644 --- a/ext/ftp/tests/server.inc +++ b/ext/ftp/tests/server.inc @@ -282,8 +282,13 @@ if ($pid) { } }elseif (preg_match("~^CWD ([A-Za-z./]+)\r\n$~", $buf, $m)) { - change_dir($m[1]); - fputs($s, "250 CWD command successful.\r\n"); + if (isset($bug77680)) { + fputs($s, "550 Directory change to $m[1] failed: file does not exist\r\n"); + var_dump($buf); + } else { + change_dir($m[1]); + fputs($s, "250 CWD command successful.\r\n"); + } } elseif (preg_match("~^NLST(?: ([A-Za-z./]+))?\r\n$~", $buf, $m)) { @@ -325,6 +330,9 @@ if ($pid) { if (isset($bug7216)) { fputs($s, "257 OK.\r\n"); } else { + if (isset($bug77680)) { + var_dump($buf); + } fputs($s, "257 \"/path/to/ftproot$cwd$m[1]\" created.\r\n"); } |