summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70187.phpt
blob: a675fff507b0ac7952c5dd0c1a04ac4cbc1ef580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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:{}"