Download src/php/php-src/ext/ftp/tests/bug7216-2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/bug7216-2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ftp/tests/bug7216-2.phpt
-
curl -L -o bug7216-2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/bug7216-2.phpt
393 Bytes
| --TEST-- | |
| Bug #7216 (ftp_mkdir returns nothing (2)) | |
| --EXTENSIONS-- | |
| ftp | |
| pcntl | |
| --FILE-- | |
| require 'server.inc'; | |
| $ftp = ftp_connect('127.0.0.1', $port); | |
| if (!$ftp) die("Couldn't connect to the server"); | |
| var_dump(ftp_login($ftp, 'anonymous', 'IEUser@')); | |
| // test for the correct behavior this time | |
| var_dump(ftp_mkdir($ftp, 'CVS')); | |
| --EXPECT-- | |
| bool(true) | |
| string(20) "/path/to/ftproot/CVS" | |