php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58354 [PATCH] Hidef - segfault when serializing FrozenArray and TSRM fixes
Submitted: 2008-09-25 08:35 UTC Modified: 2011-01-09 08:50 UTC
From: felipe@php.net Assigned:
Status: Closed Package: hidef (PECL)
PHP Version: 5_3 CVS-2008-09-25 (dev) OS:
Private report: No CVE-ID: None
 [2008-09-25 08:35 UTC] felipe@php.net
Description:
------------
Suggestion:
http://felipe.ath.cx/diff/hidef-tsrm-and-serialize.diff

Reproduce code:
---------------
<?php


$x = new frozenarray;
$x->bar = 2;
$x->foo[] = 1;

$h = serialize($x);
printf("%s\n", unserialize($h));

Actual result:
--------------
SIGSEGV

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-25 08:37 UTC] felipe@php.net
Change bug type...
 [2008-09-26 10:50 UTC] gopalv82 at yahoo dot com
Part of the fix in

http://news.php.net/php.pecl.cvs/11389

I need to prevent serialization, ctor and object write mode before I put out a 0.1.2 release.
 [2011-01-09 08:50 UTC] gopalv@php.net
Closing old bugs, I fixed the serialization issue recently.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 20 08:01:26 2019 UTC