mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
68224f2a41
With the [namespaces in bundled extensions RFC](https://wiki.php.net/rfc/namespaces_in_bundled_extensions) passed, renaming the new `\FTPConnection` class to `\FTP\Connection`. This also adds an entry to `./UPGRADING` file. Related: #6925, #5945
16 lines
316 B
PHP
16 lines
316 B
PHP
--TEST--
|
|
Attempt to instantiate an FTP\Connection directly
|
|
--EXTENSIONS--
|
|
ftp
|
|
pcntl
|
|
--FILE--
|
|
<?php
|
|
|
|
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
|