mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
18 lines
321 B
PHP
18 lines
321 B
PHP
--TEST--
|
|
Ensure __autoload() is triggered during unserialization.
|
|
--FILE--
|
|
<?php
|
|
function __autoload($name)
|
|
{
|
|
echo "in autoload: $name\n";
|
|
}
|
|
|
|
var_dump(unserialize('O:1:"C":0:{}'));
|
|
?>
|
|
--EXPECTF--
|
|
in autoload: C
|
|
object(__PHP_Incomplete_Class)#%d (1) {
|
|
["__PHP_Incomplete_Class_Name"]=>
|
|
string(1) "C"
|
|
}
|