mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
10 lines
368 B
PHP
10 lines
368 B
PHP
--TEST--
|
|
Bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone).
|
|
--FILE--
|
|
<?php
|
|
$data = unserialize('a:2:{i:0;O:12:"DateTimeZone":2:{s:13:"timezone_type";a:2:{i:0;i:1;i:1;i:2;}s:8:"timezone";s:1:"A";}i:1;R:4;}');
|
|
var_dump($data);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: DateTimeZone::__wakeup(): Timezone initialization failed in %s%ebug68942.php on line %d
|