1--TEST--
2IntlTimeZone equals handler: basic 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
11$tz1 = intltz_create_time_zone('Europe/Lisbon');
12$tz2 = intltz_create_time_zone('Europe/Lisbon');
13echo "Comparison to self:\n";
14var_dump($tz1 == $tz1);
15echo "Comparison to equal instance:\n";
16var_dump($tz1 == $tz2);
17echo "Comparison to equivalent instance:\n";
18var_dump($tz1 == intltz_create_time_zone('Portugal'));
19echo "Comparison to GMT:\n";
20var_dump($tz1 == intltz_get_gmt());
21
22?>
23--EXPECT--
24Comparison to self:
25bool(true)
26Comparison to equal instance:
27bool(true)
28Comparison to equivalent instance:
29bool(false)
30Comparison to GMT:
31bool(false)
31