php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46646 serialize/unserialize og splfileinfo segfaults
Submitted: 2008-11-22 17:35 UTC Modified: 2008-12-22 13:58 UTC
From: colder@php.net Assigned: colder
Status: Closed Package: SPL related
PHP Version: 6CVS-2008-11-22 (CVS) OS:
Private report: No CVE-ID:
 [2008-11-22 17:35 UTC] colder@php.net
Description:
------------
splfileinfo serialization/unserialization segfaults in HEAD

Reproduce code:
---------------
 print (string) unserialize(serialize(new splfileinfo(__FILE__)));


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-22 17:51 UTC] felipe@php.net
Another detail:

var_dump(unserialize(serialize(new splfileinfo(__FILE__))));

object(SplFileInfo)#1 (1) {
  [u"pathName":u"SplFileInfo":private]=>
  NULL
}
[Sat Nov 22 15:43:48 2008]  Script:  '../bug.php'
/home/felipe/dev/php6/ext/spl/spl_directory.c(612) :  Freeing 0x09BA8F78 (1 bytes), script=../bug.php
=== Total 1 memory leaks detected ===
 [2008-12-22 13:58 UTC] colder@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 06:02:13 2014 UTC