summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-25 17:45:03 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-25 17:45:03 +0100
commite4d9d91462eb46249b7bed589603951a3a8cb6f9 (patch)
tree802a05899f91597f966b39245c0a194e749f87a0 /ext/ftp
parente97577edde49e1f6e86219091b343f80b3b92e65 (diff)
parentec2ecb7e12b96f8f95af2885d173a0d46c88e190 (diff)
downloadphp-git-e4d9d91462eb46249b7bed589603951a3a8cb6f9.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
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 53501060a5..3a1c537d1a 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");
}