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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: felipe@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC