Bug #71889 [Asn->Csd]: DateInterval::format Segmentation fault

From: Date: Tue, 05 Apr 2016 10:05:22 +0000
Subject: Bug #71889 [Asn->Csd]: DateInterval::format Segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200369@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71889&edit=1 ID: 71889 Updated by: ab@php.net Reported by: p dot yatsukhnenko at gmail dot com Summary: DateInterval::format Segmentation fault -Status: Assigned +Status: Closed 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: Merged in 5.6+. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-03-24 00:30:33] 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-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

« previous php.bugs (#200369) next »