Bug #73209 [NEW]: RecursiveArrayIterator does not iterate object properties
| From: | sfyire at gmail dot com | Date: | Fri, 30 Sep 2016 09:32:14 +0000 |
| Subject: | Bug #73209 [NEW]: RecursiveArrayIterator does not iterate object properties | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-204362@lists.php.net to get a copy of this message | ||
From: sfyire at gmail dot com
Operating system: ubuntu
PHP version: 7.0.11
Package: SPL related
Bug Type: Bug
Bug description:RecursiveArrayIterator does not iterate object properties
Description:
------------
The problem I have observed is that in PHP7 and up
RecursiveArrayIterator stops
iterating arrays that are object properties
However if I implement a class that has the exact same source code as
RecursiveArrayIterator (taken from here:
http://fossies.org/dox/php-7.0.11-src/recursivearrayiterator_8inc_source.html)
and use that instead then object property arrays are iterated correctly.
Test script:
---------------
https://3v4l.org/DO2SA
--
Edit bug report at https://bugs.php.net/bug.php?id=73209&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73209&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73209&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73209&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73209&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73209&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73209&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73209&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73209&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73209&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73209&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73209&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73209&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73209&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73209&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73209&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73209&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73209&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73209&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73209&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73209&r=mysqlcfg