/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug78356.phpt
--TEST-- Bug #78356: Array returned from ArrayAccess is incorrectly unpacked as argument --FILE-- <?php $object = new class implements ArrayAccess { public function offsetGet($offset) { return [1, 2]; } public function offsetExists($offset) { return true; } public function offsetUnset($offset) {} public function offsetSet($offset, $value) {} }; var_dump(max(...$object[0])); ?> --EXPECT-- int(2)
Copyright ©2k19 -
Hexid
|
Tex7ure