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==DONE==
24--EXPECT--
25Comparison to self:
26bool(true)
27Comparison to equal instance:
28bool(true)
29Comparison to equivalent instance:
30bool(false)
31Comparison to GMT:
32bool(false)
33==DONE==
33