mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
14 lines
291 B
PHP
14 lines
291 B
PHP
--TEST--
|
|
Attempt to instantiate an IMAP\Connection directly
|
|
--EXTENSIONS--
|
|
imap
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
new IMAP\Connection();
|
|
} catch (Error $ex) {
|
|
echo "Exception: ", $ex->getMessage(), "\n";
|
|
}
|
|
--EXPECT--
|
|
Exception: Cannot directly construct IMAP\Connection, use imap_open() instead
|