|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-12-29 20:57 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2015-12-29 20:57 UTC] requinix@php.net
[2015-12-29 20:58 UTC] nikic@php.net
-Status: Not a bug
+Status: Verified
[2015-12-29 20:58 UTC] nikic@php.net
[2015-12-29 21:03 UTC] requinix@php.net
[2015-12-29 22:22 UTC] nikic@php.net
-Status: Verified
+Status: Not a bug
[2015-12-29 22:22 UTC] nikic@php.net
[2015-12-29 22:39 UTC] donatj at gmail dot com
[2015-12-29 22:46 UTC] donatj at gmail dot com
[2015-12-29 23:11 UTC] nikic@php.net
[2015-12-30 03:57 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Description: ------------ It would appear that passing by reference in the callable of array_filter no longer functions as expected. I can find no documentation of this change on the array_filter page. The expected result is seen in 5.3 -> 5.6 Test script: --------------- <?php $files = array('AAA', 'BBB', 'CcC'); $files = array_filter($files, function ( &$path ) { $path = strtolower($path); return true; }); print_r($files); Expected result: ---------------- Array ( [0] => aaa [1] => bbb [2] => ccc ) Actual result: -------------- Array ( [0] => AAA [1] => BBB [2] => CcC )