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
 [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

Pull Requests

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: Thu Nov 07 12:01:30 2024 UTC