php.net |  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
 [2016-03-23 13:35 UTC] p dot yatsukhnenko at gmail dot com
Description:
------------
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff548910a in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff548910a in strlen () from /lib64/libc.so.6
#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:
---------------
<?php
$di = new DateInterval('P1D');
print $d->format("%");


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-24 00:28 UTC] tpunt@php.net
-Assigned To: +Assigned To: tpunt
 [2016-03-24 00:30 UTC] tpunt@php.net
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] ab@php.net
-Status: Assigned +Status: Closed
 [2016-04-05 10:05 UTC] ab@php.net
Merged in 5.6+. Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 09:01:29 2024 UTC