mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
20 lines
284 B
PHP
20 lines
284 B
PHP
--TEST--
|
|
Bug #70187 (Notice: unserialize(): Unexpected end of serialized data)
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
public $b;
|
|
}
|
|
|
|
$a = new A;
|
|
var_dump($a); // force properties HT
|
|
unset($a->b);
|
|
var_dump(serialize($a));
|
|
?>
|
|
--EXPECT--
|
|
object(A)#1 (1) {
|
|
["b"]=>
|
|
NULL
|
|
}
|
|
string(12) "O:1:"A":0:{}"
|