/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
array
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/array/bug76713.phpt
--TEST-- Bug #76713 (Segmentation fault caused by property corruption) --FILE-- <?php function test($obj) { return array_column(array($obj), "prop"); } $obj = new Stdclass(); $obj->prop = str_pad("a", 10, 'a'); test($obj); test($obj); test($obj); var_dump($obj->prop); class C { public $name; public function __get($name) { return $this->name; } } $obj = new C; $obj->name = str_pad("b", 10, 'b'); test($obj); test($obj); test($obj); var_dump($obj->prop); ?> --EXPECT-- string(10) "aaaaaaaaaa" string(10) "bbbbbbbbbb"
Copyright ©2k19 -
Hexid
|
Tex7ure