mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
21 lines
357 B
PHP
21 lines
357 B
PHP
--TEST--
|
|
Cloning unconstructed MessageFormatter
|
|
--SKIPIF--
|
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class A extends MessageFormatter {
|
|
function __construct() {}
|
|
}
|
|
|
|
$a = new A;
|
|
try {
|
|
$b = clone $a;
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
}
|
|
|
|
--EXPECTF--
|
|
string(%d) "Cannot clone unconstructed MessageFormatter"
|