1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00
Files
archived-php-src/ext/intl/tests/dateformat_clone_bad_obj.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

21 lines
323 B
PHP

--TEST--
Cloning unconstructed IntlDateFormatter
--EXTENSIONS--
intl
--FILE--
<?php
class A extends IntlDateFormatter {
function __construct() {}
}
$a = new A;
try {
$b = clone $a;
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
string(%s) "Cannot clone unconstructed IntlDateFormatter"