Bug #54655 [Com]: unable to compare timezones instance with == operator

From: Date: Mon, 30 Jan 2012 21:36:04 +0000
Subject: Bug #54655 [Com]: unable to compare timezones instance with == operator
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166984@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54655&edit=1 ID: 54655 Comment by: kavi at postpro dot net Reported by: giorgio dot liscio at email dot it Summary: unable to compare timezones instance with == operator Status: Open Type: Bug Package: Date/time related Operating System: any? PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: bump Previous Comments: ------------------------------------------------------------------------ [2011-05-04 11:26:13] giorgio dot liscio at email dot it Description: ------------ just a cosmetic problem $a = new \DateTimeZone("Europe/Rome"); $b = new \DateTimeZone("Europe/Athens"); var_dump($a == $b); // true... not so nice var_dump($a->getName() == $b->getName()); // false, good all other classes of datetime lib can be compared using various operators, but not datetimezone would be nice having this working too, if possible: var_dump($a >= $b); var_dump($a <= $b); thank you ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54655&edit=1

« previous php.bugs (#166984) next »