1--TEST-- 2Bug #62915: incomplete cloning of IntlTimeZone objects 3--SKIPIF-- 4<?php 5if (!extension_loaded('intl')) 6 die('skip intl extension not enabled'); 7--FILE-- 8<?php 9 10class foo extends IntlTimeZone { 11 public $foo = 'test'; 12 13 public function __construct() { } 14} 15 16$x = new foo; 17 18try { 19 $z = clone $x; 20} catch (Exception $e) { 21 var_dump($e->getMessage()); 22} 23--EXPECT-- 24string(39) "Cannot clone unconstructed IntlTimeZone" 25