Return to formatter_clone_bad_obj.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / intl / tests |
5.4.17
--TEST-- Cloning unconstructed numfmt --SKIPIF-- <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> --FILE-- <?php class A extends NumberFormatter { function __construct() {} } $a = new A; try { $b = clone $a; } catch (Exception $e) { var_dump($e->getMessage()); } --EXPECTF-- string(42) "Cannot clone unconstructed NumberFormatter"