1--TEST--
2IntlTimeZone equals handler: basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9$tz1 = intltz_create_time_zone('Europe/Lisbon');
10$tz2 = intltz_create_time_zone('Europe/Lisbon');
11echo "Comparison to self:\n";
12var_dump($tz1 == $tz1);
13echo "Comparison to equal instance:\n";
14var_dump($tz1 == $tz2);
15echo "Comparison to equivalent instance:\n";
16var_dump($tz1 == intltz_create_time_zone('Portugal'));
17echo "Comparison to GMT:\n";
18var_dump($tz1 == intltz_get_gmt());
19
20?>
21--EXPECT--
22Comparison to self:
23bool(true)
24Comparison to equal instance:
25bool(true)
26Comparison to equivalent instance:
27bool(false)
28Comparison to GMT:
29bool(false)
29