|
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 [email protected])bug64264.patch (last revision 2013-02-23 12:08 UTC by [email protected]) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-23 12:08 UTC] [email protected]
[2013-02-23 12:08 UTC] [email protected]
[2013-02-24 04:56 UTC] [email protected]
-Status: Open
+Status: Closed
[2013-02-24 04:56 UTC] [email protected]
[2013-02-24 04:58 UTC] [email protected]
[2013-02-24 04:59 UTC] [email protected]
[2013-02-24 05:00 UTC] [email protected]
[2013-02-24 05:01 UTC] [email protected]
-Status: Closed
+Status: Open
[2013-02-24 05:01 UTC] [email protected]
[2013-02-24 05:03 UTC] [email protected]
-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] [email protected]
[2014-10-07 23:20 UTC] [email protected]
[2014-10-07 23:31 UTC] [email protected]
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 11: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.