Bug #71889 [NEW]: DateInterval::format Segmentation fault

From: Date: Wed, 23 Mar 2016 13:35:33 +0000
Subject: Bug #71889 [NEW]: DateInterval::format Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200061@lists.php.net to get a copy of this message
From:             p dot yatsukhnenko at gmail dot com
Operating system: Linux
PHP version:      5.5.33
Package:          Date/time related
Bug Type:         Bug
Bug description:DateInterval::format Segmentation fault

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 bug report at https://bugs.php.net/bug.php?id=71889&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71889&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71889&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71889&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71889&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71889&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71889&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71889&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71889&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71889&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71889&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71889&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71889&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71889&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71889&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71889&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71889&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71889&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71889&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71889&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71889&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#200061) next »