1--TEST--
2IntlTimeZone equals handler: error test
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11class A extends IntlTimeZone {
12function __construct() {}
13}
14
15$tz = new A();
16$tz2 = intltz_get_gmt();
17var_dump($tz, $tz2);
18try {
19var_dump($tz == $tz2);
20} catch (Exception $e) {
21	var_dump(get_class($e), $e->getMessage());
22}
23
24?>
25==DONE==
26--EXPECT--
27object(A)#1 (1) {
28  ["valid"]=>
29  bool(false)
30}
31object(IntlTimeZone)#2 (4) {
32  ["valid"]=>
33  bool(true)
34  ["id"]=>
35  string(3) "GMT"
36  ["rawOffset"]=>
37  int(0)
38  ["currentOffset"]=>
39  int(0)
40}
41string(9) "Exception"
42string(63) "Comparison with at least one unconstructed IntlTimeZone operand"
43==DONE==
43