Bug #64264 [Csd]: SPLFixedArray toArray problem
Edit report at https://bugs.php.net/bug.php?id=64264edit=1 ID: 64264 User updated by:kwreczycki at gmail dot com Reported by:kwreczycki at gmail dot com Summary:SPLFixedArray toArray problem Status: Closed Type: Bug Package:SPL related PHP Version:Irrelevant Assigned To:laruence Block user comment: N Private report: N New Comment: Great, thanks for Your work. Previous Comments: [2013-02-24 05:01:09] larue...@php.net The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. [2013-02-24 05:00:11] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=1b58bd39a637e9ec4ea9e95903b74aefdbd1b596 Log: Fixed bug #64264 (SPLFixedArray toArray problem) [2013-02-24 04:59:19] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=1b58bd39a637e9ec4ea9e95903b74aefdbd1b596 Log: Fixed bug #64264 (SPLFixedArray toArray problem) [2013-02-24 04:58:49] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=1b58bd39a637e9ec4ea9e95903b74aefdbd1b596 Log: Fixed bug #64264 (SPLFixedArray toArray problem) [2013-02-24 04:56:10] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=1b58bd39a637e9ec4ea9e95903b74aefdbd1b596 Log: Fixed bug #64264 (SPLFixedArray toArray problem) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=64264 -- Edit this bug report at https://bugs.php.net/bug.php?id=64264edit=1
[PHP-BUG] Bug #64264 [NEW]: SPLFixedArray toArray problem
From: kwreczycki at gmail dot com Operating system: PHP version: Irrelevant Package: SPL related Bug Type: Bug Bug description:SPLFixedArray toArray problem 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. -- Edit bug report at https://bugs.php.net/bug.php?id=64264edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64264r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64264r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64264r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64264r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64264r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64264r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64264r=needscript Try newer version: https://bugs.php.net/fix.php?id=64264r=oldversion Not developer issue:https://bugs.php.net/fix.php?id=64264r=support Expected behavior: https://bugs.php.net/fix.php?id=64264r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64264r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64264r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64264r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64264r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64264r=dst IIS Stability: https://bugs.php.net/fix.php?id=64264r=isapi Install GNU Sed:https://bugs.php.net/fix.php?id=64264r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64264r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64264r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64264r=mysqlcfg