Bug #77014 [NEW]: Array traversal issues PHP 7+

From: Date: Mon, 15 Oct 2018 15:09:30 +0000
Subject: Bug #77014 [NEW]: Array traversal issues PHP 7+
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217571@lists.php.net to get a copy of this message
From:             mishamosher at gmail dot com
Operating system: 
PHP version:      7.2.11
Package:          Arrays related
Bug Type:         Bug
Bug description:Array traversal issues PHP 7+

Description:
------------
There is a different behaviour between PHP 5.x and 7.x when traversing
arrays.

I can not find if this is intended, so I'm supposing its a bug.

Test script:
---------------
https://3v4l.org/YNJ18

Expected result:
----------------
I expect the same output on PHP 5.x and 7.x.

Actual result:
--------------
The outputs differ between PHP 5.x and 7.x.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=77014&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=77014&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=77014&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=77014&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=77014&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=77014&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=77014&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=77014&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=77014&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=77014&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=77014&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=77014&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=77014&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=77014&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77014&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=77014&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=77014&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=77014&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77014&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=77014&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=77014&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#217571) next »