|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71889 DateInterval::format Segmentation fault
Submitted: 2016-03-23 13:35 UTC Modified: 2016-04-05 10:05 UTC
From: p dot yatsukhnenko at gmail dot com Assigned: tpunt (profile)
Status: Closed Package: Date/time related
PHP Version: 5.5.33 OS: Linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: p dot yatsukhnenko at gmail dot com
New email:
PHP Version: OS:


 [2016-03-23 13:35 UTC] p dot yatsukhnenko at gmail dot com
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff548910a in strlen () from /lib64/
(gdb) bt
#0  0x00007ffff548910a in strlen () from /lib64/
#1  0x0000000000458ffb in zif_date_interval_format ()
#2  0x0000000000749066 in ?? ()
#3  0x00000000006b558b in execute_ex ()
#4  0x0000000000679ade in zend_eval_stringl ()
#5  0x0000000000679c34 in zend_eval_stringl_ex ()
#6  0x000000000074ae6c in ?? ()
#7  0x00000000004563b9 in main ()

Test script:
$di = new DateInterval('P1D');
print $d->format("%");


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-24 00:28 UTC]
-Assigned To: +Assigned To: tpunt
 [2016-03-24 00:30 UTC]
Because PHP 5.5 is in a security fix-only mode now, this will not be fixed in 5.5. I have opened up a PR to fix this in PHP 5.6, 7, and master.
 [2016-04-05 10:05 UTC]
-Status: Assigned +Status: Closed
 [2016-04-05 10:05 UTC]
Merged in 5.6+. Thanks.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Feb 19 11:01:27 2020 UTC