|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-06 14:35 UTC] cmb@php.net
[2018-07-06 15:40 UTC] requinix@php.net
[2018-07-07 04:49 UTC] example at example dot org
[2018-07-10 22:48 UTC] a at b dot c dot de
[2018-11-18 00:10 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2018-11-18 00:10 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 01:00:01 2025 UTC |
Description: ------------ array_column should error when value is not castable to array key without loss of data $a = [ [ 'foo' => 777.5 ], ]; array_column($a, 'foo', 'foo'); is an error because float cannot be used as array key ------------ also it should error if the index already exists and is being overwritten $a = [ [ 'foo' => 777, "hi" => 1 ], [ 'foo' => 777, "hi" => 2 ], ]; the index 777 is written twice and the original value is lost ------------ and this is certainly a bug https://3v4l.org/WhUmh