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.
22 lines
478 B
22 lines
478 B
--TEST--
|
|
Bug #72663: Create an Unexpected Object and Don't Invoke __wakeup() in Deserialization
|
|
--SKIPIF--
|
|
<?php
|
|
echo 'skip AOT requires all executable code be in functions';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
class obj {
|
|
var $ryat;
|
|
function __wakeup() {
|
|
$this->ryat = str_repeat('A', 0x112);
|
|
}
|
|
}
|
|
|
|
$poc = 'O:8:"stdClass":1:{i:0;O:3:"obj":1:{s:4:"ryat";R:1;';
|
|
unserialize($poc);
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
Warning: unserialize(): Error at offset 50 of 50 bytes in %s on line %d
|
|
DONE
|
|
|