summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-25 17:46:28 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-25 17:46:28 +0100
commit065255a0f871ba1c72d50e44da10c8839929272e (patch)
treef11c06347b2d014983f8dac93bfab8bdcc232d12 /ext/ftp
parent0b835e3e24ec9783265754fd5da6313acf87c1fa (diff)
parente4d9d91462eb46249b7bed589603951a3a8cb6f9 (diff)
downloadphp-git-065255a0f871ba1c72d50e44da10c8839929272e.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/tests/server.inc12
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");
}