Bug #75289 [NEW]: Unserialize ArrayIterator broken
| From: | sp at feig-partner dot de | Date: | Fri, 29 Sep 2017 19:34:45 +0000 |
| Subject: | Bug #75289 [NEW]: Unserialize ArrayIterator broken | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-211464@lists.php.net to get a copy of this message | ||
From: sp at feig-partner dot de
Operating system: irrelevant
PHP version: 7.1.10
Package: SPL related
Bug Type: Bug
Bug description:Unserialize ArrayIterator broken
Description:
------------
This is a followup to this bug:
https://bugs.php.net/bug.php?id=74669
While serialization and unserialization in the same run now works:
https://3v4l.org/6c4RU
it still fails, when you're serializing in one run and unserializing in
another.
Take the serialized output from here:
https://3v4l.org/bNCbY#v560
and unserialize it separately:
https://3v4l.org/EcAWQ
Gives "Notice: unserialize(): Error at offset 45 of 193 bytes in
/in/EcAWQ on line 47"
With the serialized output from php5 the result is the same:
https://3v4l.org/v5D2l
--
Edit bug report at https://bugs.php.net/bug.php?id=75289&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75289&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75289&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75289&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75289&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75289&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75289&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75289&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75289&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75289&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75289&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75289&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75289&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75289&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75289&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75289&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75289&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75289&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75289&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75289&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75289&r=mysqlcfg