php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64231 msgpack_serialize interfere with serialize
Submitted: 2013-02-18 05:47 UTC Modified: 2013-02-18 05:56 UTC
From: laruence@php.net Assigned: laruence (profile)
Status: Closed Package: msgpack (PECL)
PHP Version: 5.4.11 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [2013-02-18 05:47 UTC] laruence@php.net
Description:
------------
see example below

Test script:
---------------
<?php

class Demo extends ArrayObject {

}

$obj = new StdClass();

$demo = new Demo;

$demo[] = $obj;

$data = array(
    $demo,
    $obj,
    $obj,
);

var_dump(msgpack_unserialize(msgpack_serialize($data)));

Expected result:
----------------
no error

Actual result:
--------------
Warning: [msgpack] (msgpack_unserialize_map_item) Invalid references value: 6 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-18 05:48 UTC] laruence@php.net
-Package: *General Issues +Package: msgpack -Assigned To: +Assigned To: laruence
 [2013-02-18 05:48 UTC] laruence@php.net
change package
 [2013-02-18 05:56 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 [2013-02-18 05:56 UTC] laruence@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.

fixed in https://github.com/msgpack/msgpack-
php/commit/48e21480fbeeacf53e40fc61965b996b64830473
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC