Download src/php/php-src/ext/ftp/tests/ftp_constructor.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/ftp_constructor.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ftp/tests/ftp_constructor.phpt
-
curl -L -o ftp_constructor.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ftp/tests/ftp_constructor.phpt
319 Bytes
| --TEST-- | |
| Attempt to instantiate an FTP\Connection directly | |
| --EXTENSIONS-- | |
| ftp | |
| pcntl | |
| --FILE-- | |
| try { | |
| new FTP\Connection(); | |
| } catch (Error $ex) { | |
| echo "Exception: ", $ex->getMessage(), "\n"; | |
| } | |
| --EXPECT-- | |
| Exception: Cannot directly construct FTP\Connection, use ftp_connect() or ftp_ssl_connect() instead | |