Closed
Description
Description
The following code:
<?php
$tz = IntlTimeZone::createTimeZone('Europe/Amsterdam');
$tz = unserialize(serialize($tz));
var_export($tz->getId());
Resulted in this output:
false
But I expected this output instead:
'Europe/Amsterdam'
It looks like the implementation of __serialize
is broken, as the string doesn't contain any object data:
echo serialize(IntlTimeZone::createTimeZone('Europe/Amsterdam'));
// outputs O:12:"IntlTimeZone":0:{}
PHP Version
PHP 7.4.27 (cli) (built: Dec 21 2021 21:31:45) ( NTS )
Operating System
No response