Bug #71889 [Asn]: DateInterval::format Segmentation fault
Edit report at https://bugs.php.net/bug.php?id=71889&edit=1
ID: 71889
Updated by: tpunt@php.net
Reported by: p dot yatsukhnenko at gmail dot com
Summary: DateInterval::format Segmentation fault
Status: Assigned
Type: Bug
Package: Date/time related
Operating System: Linux
PHP Version: 5.5.33
Assigned To: tpunt
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-03-23 13:35:31] 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("%");
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71889&edit=1
Thread (3 messages)