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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2019 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 06:01:26 2019 UTC