1--TEST--
2Test unserialization of DateTimeZone with null byte
3--FILE--
4<?php
5$serialized = 'O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:17:"Ame' . "\0" .'rica/New_York";}';
6
7try {
8	$tz = unserialize($serialized);
9} catch (Throwable $e) {
10	echo $e::class, ': ', $e->getMessage(), "\n";
11}
12?>
13--EXPECT--
14Error: Invalid serialization data for DateTimeZone object
15