Download src/php/php-src/ext/ftp/tests/bug37799.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/bug37799.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ftp/tests/bug37799.phpt
-
curl -L -o bug37799.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/bug37799.phpt
509 Bytes
| --TEST-- | |
| Bug #37799 (ftp_ssl_connect() falls back to non-ssl connection) | |
| --EXTENSIONS-- | |
| ftp | |
| pcntl | |
| openssl | |
| --SKIPIF-- | |
| if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled"); | |
| --FILE-- | |
| $bug37799=$ssl=1; | |
| require 'server.inc'; | |
| $ftp = ftp_ssl_connect('127.0.0.1', $port); | |
| if (!$ftp) die("Couldn't connect to the server"); | |
| var_dump(ftp_login($ftp, 'user', 'pass')); | |
| ftp_close($ftp); | |
| --EXPECTF-- | |
| Warning: ftp_login(): %rdummy|bogus msg%r in %sbug37799.php on line 8 | |
| bool(false) | |