Bug #67947 [NEW]: array_keys case-insensitive compare not work even if bool $strict false

From: Date: Tue, 02 Sep 2014 12:04:58 +0000
Subject: Bug #67947 [NEW]: array_keys case-insensitive compare not work even if bool $strict false
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187382@lists.php.net to get a copy of this message
From: rob_neal at rocketmail dot com Operating system: Windows 8.1 PHP version: 5.5.16 Package: Arrays related Bug Type: Bug Bug description:array_keys case-insensitive compare not work even if bool $strict false Description: ------------ Running PHP version 5.5.15 on XAMPP for Windows. This is latest version of XAMPP/PHP as of today's date. Only changes to default php.ini that I have made are about Mail and XDebug for debugging with Komodo IDE. Test script: --------------- $arr = array('uuu', 'abc','aBC','ABC','abc', 'Def', 'DEF', 'xyz'); //set 3rd argument as $strict=false for case-insensitive $k = array_keys($arr,'abc',false); print_r($k); Expected result: ---------------- Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) Actual result: -------------- Array ( [0] => 1 [1] => 4 ) -- Edit bug report at https://bugs.php.net/bug.php?id=67947&edit=1 --

« previous php.bugs (#187382) next »