TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
590 B

--TEST--
Bug #72663: Create an Unexpected Object and Don't Invoke __wakeup() in Deserialization
--SKIPIF--
<?php
echo 'skip AOT limitation';
?>
--EXTENSIONS--
session
--FILE--
<?php
ini_set('session.serialize_handler', 'php_serialize');
session_start();
$sess = 'O:9:"Exception":2:{s:7:"'."\0".'*'."\0".'file";s:0:"";}';
session_decode($sess);
var_dump($_SESSION);
?>
DONE
?>
--EXPECTF--
Warning: session_decode(): Unexpected end of serialized data in %s on line %d
Warning: session_decode(): Failed to decode session object. Session has been destroyed in %s on line %d
array(0) {
}
DONE