1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/ext/ftp/tests/ftp_constructor.phpt
T
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

16 lines
313 B
PHP

--TEST--
Attempt to instantiate an FTPConnection directly
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
try {
new FTPConnection();
} catch (Error $ex) {
echo "Exception: ", $ex->getMessage(), "\n";
}
--EXPECT--
Exception: Cannot directly construct FTPConnection, use ftp_connect() or ftp_ssl_connect() instead