/
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/bug40191.phpt
--TEST-- Bug #40191 (use of array_unique() with objects triggers segfault) --FILE-- <?php $arrObj = new ArrayObject(); $arrObj->append('foo'); $arrObj->append('bar'); $arrObj->append('foo'); try { $arr = array_unique($arrObj); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } echo "Done\n"; ?> --EXPECT-- array_unique(): Argument #1 ($array) must be of type array, ArrayObject given Done
Copyright ©2k19 -
Hexid
|
Tex7ure