/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/bug70959.phpt
--TEST-- Bug #70959 (ArrayObject unserialize does not restore protected fields) --FILE-- <?php class testObject extends ArrayObject { protected $test; public function getTest() { return $this->test; } public function setTest($test) { $this->test = $test; } } $obj = new testObject(); $obj->setTest('test'); var_dump($obj->getTest()); $obj2 = unserialize(serialize($obj)); var_dump($obj2->getTest()); ?> --EXPECT-- string(4) "test" string(4) "test"
Copyright ©2k19 -
Hexid
|
Tex7ure