php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72888 Segfault on clone on splFileObject
Submitted: 2016-08-19 03:26 UTC Modified: -
From: laruence@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.1.0beta2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 38 = ?
Subscribe to this entry?

 
 [2016-08-19 03:26 UTC] laruence@php.net
Description:
------------
none

Test script:
---------------
<?php
$x=new SplFileObject(__FILE__);

try {
$y=clone $x;
} catch (Error $e) {
}
var_dump($y);

Expected result:
----------------
no segfault

Actual result:
--------------
segfault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-19 03:28 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=566d65d222c00210aa67d6b937021c8100f54678
Log: Fixed bug #72888 (Segfault on clone on splFileObject)
 [2016-08-19 03:28 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-10-17 10:09 UTC] bwoebi@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=566d65d222c00210aa67d6b937021c8100f54678
Log: Fixed bug #72888 (Segfault on clone on splFileObject)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC