|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug64264.phpt (last revision 2013-02-23 12:08 UTC by laruence@php.net)bug64264.patch (last revision 2013-02-23 12:08 UTC by laruence@php.net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-23 12:08 UTC] laruence@php.net
[2013-02-23 12:08 UTC] laruence@php.net
[2013-02-24 04:56 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2013-02-24 04:56 UTC] laruence@php.net
[2013-02-24 04:58 UTC] laruence@php.net
[2013-02-24 04:59 UTC] laruence@php.net
[2013-02-24 05:00 UTC] laruence@php.net
[2013-02-24 05:01 UTC] laruence@php.net
-Status: Closed
+Status: Open
[2013-02-24 05:01 UTC] laruence@php.net
[2013-02-24 05:03 UTC] laruence@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: laruence
[2013-02-24 10:36 UTC] kwreczycki at gmail dot com
[2013-03-01 18:32 UTC] stas@php.net
[2014-10-07 23:20 UTC] stas@php.net
[2014-10-07 23:31 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Description: ------------ Be aware if You extends SplFixedArray and use toArray method. Test script: --------------- class MyFixedArray extends \SplFixedArray { protected $foo; protected $bar; } $myFixedArr = new MyFixedArray(1); $myFixedArray[] = 'foo'; Expected result: ---------------- array(1) { [0]=> NULL } Actual result: -------------- array(3) { ["*foo"]=> NULL ["*bar"]=> NULL [0]=> NULL } *foo and *bar keys, can invoke troubles in some situations if You expects array without properties from inherited class. Method toArray should return values only for elements which are added to collection without properties inherited from class.