/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
array
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/array/bug69299.phpt
--TEST-- Bug #69299 (Regression in array_filter's $flag argument in PHP 7) --FILE-- <?php $toFilter = array('foo' => 'bar', 'fiz' => 'buz'); $filtered = array_filter($toFilter, function ($value, $key) { if ($value === 'buz' || $key === 'foo' ) { return false; } return true; }, ARRAY_FILTER_USE_BOTH); var_dump($filtered); ?> --EXPECT-- array(0) { }
Copyright ©2k19 -
Hexid
|
Tex7ure