summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/bug73367_2.phpt
blob: 59b09da06dcb860d455cb61c31c5930ab20c6f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #73367: Create an Unexpected Object and Don't Invoke __wakeup() in Deserialization (2)
--FILE--
<?php

class obj {
    var $ryat;
    function __wakeup() {
        $this->ryat = null;
        $this->foo = 'bar'; // $this should still be live here
        echo "wakeup\n";
    }
}

$poc = 'O:3:"obj":2:{s:4:"ryat";i:1;i:0;O:3:"obj":1:{s:4:"ryat";R:1;}}';
unserialize($poc);

?>
--EXPECT--
wakeup
wakeup