[php-src] Issue #7939: Cannot serialize IntlTimeZone objects
| From: | iluuu1994 | Date: | Thu, 13 Jan 2022 11:28:33 +0000 |
| Subject: | [php-src] Issue #7939: Cannot serialize IntlTimeZone objects | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239000@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7939
Comment Author: iluuu1994
It doesn't look like
IntlTimeZone supports serialization.
https://3v4l.org/jnXqP#v8.1.1
```php
$tz = IntlTimeZone::createTimeZone('Europe/Amsterdam');
var_dump(serialize($tz));
```
```log
string(24) "O:12:"IntlTimeZone":0:{}"
```
But we could throw an error or at least emit some warning.