|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62508 Segfault while access a non-string property of DateInterval object
Submitted: 2012-07-08 16:22 UTC Modified: 2012-07-08 16:28 UTC
From: Assigned: laruence (profile)
Status: Closed Package: Date/time related
PHP Version: 5.4.4 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:
Solve the problem:
44 - 28 = ?
Subscribe to this entry?

 [2012-07-08 16:22 UTC]
Segfault while access a non-string property of DateInterval object

Test script:
class Crasher extends DateInterval {
    public function __construct($time_spec) {
$c = new Crasher("P2Y4DT6H8M");

Expected result:

Actual result:
core dump


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-08 16:28 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2012-07-08 16:28 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 11:01:29 2024 UTC