Bug #75693 [NEW]: ArrayObject does not set dynamic values up from 7.1.4
| From: | kodeart at gmail dot com | Date: | Fri, 15 Dec 2017 17:12:21 +0000 |
| Subject: | Bug #75693 [NEW]: ArrayObject does not set dynamic values up from 7.1.4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213121@lists.php.net to get a copy of this message | ||
From: kodeart at gmail dot com
Operating system:
PHP version: Irrelevant
Package: SPL related
Bug Type: Bug
Bug description:ArrayObject does not set dynamic values up from 7.1.4
Description:
------------
The dynamic key/values in ArrayObject are not set starting from v7.1.4
(up to 7.2.0) when the key does not exists and the value is array
(nested or otherwise).
The overridden ArrayObject methods in the class exists to provide a
fluid interface (for offsetSet) and return the value or NULL as a
special case (for offsetGet). It's not the best logic but the behavior
is expected to be consistent in all (or at least) PHP 7.1 versions.
Test script:
---------------
https://3v4l.org/LQdPJ
Expected result:
----------------
The behavior should be consistent in all versions.
Actual result:
--------------
At the time of this report the dynamic key/value is
- set in 5.6.0 - 5.6.30, 7.0.0 - 7.1.3
- not set up from 7.1.4 - 7.2.0
--
Edit bug report at https://bugs.php.net/bug.php?id=75693&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75693&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75693&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75693&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75693&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75693&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75693&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75693&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75693&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75693&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75693&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75693&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75693&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75693&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75693&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75693&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75693&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75693&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75693&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75693&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75693&r=mysqlcfg