Download src/php/php-src/ext/ftp/tests/bug79100.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/bug79100.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ftp/tests/bug79100.phpt
-
curl -L -o bug79100.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/bug79100.phpt
446 Bytes
| --TEST-- | |
| Bug #79100 (Wrong FTP error messages) | |
| --EXTENSIONS-- | |
| ftp | |
| pcntl | |
| --FILE-- | |
| $bug79100 = true; | |
| 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, 'user', 'pass')); | |
| var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 1)); | |
| ftp_systype($ftp); | |
| --EXPECTF-- | |
| bool(true) | |
| bool(true) | |
| Warning: ftp_systype(): %rConnection|Operation%r timed out in %s on line %d | |