xref: /PHP-8.3/ext/intl/tests/bug62915.phpt (revision 74859783)
1--TEST--
2Bug #62915: incomplete cloning of IntlTimeZone objects
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8class foo extends IntlTimeZone {
9        public $foo = 'test';
10
11                public function __construct() { }
12}
13
14$x = new foo;
15
16try {
17        $z = clone $x;
18} catch (Exception $e) {
19        var_dump($e->getMessage());
20}
21?>
22--EXPECT--
23string(39) "Cannot clone unconstructed IntlTimeZone"
24