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 (profile)
Status: Closed Package: SPL related
PHP Version: 6CVS-2008-11-22 (CVS) OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: colder@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC