Bug #70688 [Opn]: new DateTime object produces Segmentation fault or zend_mm_heap corrupted

From: Date: Sun, 11 Oct 2015 01:50:52 +0000
Subject: Bug #70688 [Opn]: new DateTime object produces Segmentation fault or zend_mm_heap corrupted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196517@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70688&edit=1 ID: 70688 User updated by: jerome at taotesting dot com Reported by: jerome at taotesting dot com Summary: new DateTime object produces Segmentation fault or zend_mm_heap corrupted Status: Open Type: Bug Package: Date/time related -Operating System: 3.19.0-30-generic #34~14.04.1-Ub +Operating System: 3.19.0-30-generic 14.04 Ubuntu PHP Version: 7.0.0RC4 Block user comment: N Private report: N New Comment: More readable OS version edited. Previous Comments: ------------------------------------------------------------------------ [2015-10-11 01:44:35] jerome at taotesting dot com Description: ------------ Dear PHP Team, When instantiating a DateTime object with PHP 7.0.0RC4 using PHP CLI, the output systematically contains "zend_mm_heap corrupted" OR "Segmentation fault (core dumped)". I'm using the PHP 7.0.0RC4 package provided by ondrej (ppa:ondrej/php-7.0) for Ubuntu. In addition with the following test script, expected output and actual output, I must say that calling date_default_timezone_set('Europe/Brussels'); does not help either. Thanks for fixing it, as we are waiting PHP7.0.0 as the messiah :) ! Thanks a lot also for all your efforts for making PHP better every day! All the best, Jérôme Bogaerts Test script: --------------- <?php $date = new \DateTime('2000-01-01'); echo $date->format('Y-m-d') . "\n"; Expected result: ---------------- // -- Expected output is simple as: 2000-01-01 Actual result: -------------- // -- Output when php.ini's directive date.timezone is commented (using ;) 2000-01-01 zend_mm_heap corrupted // OR (randomly) 2000-01-01 Segmentation fault (core dumped) // -- Output when php.ini's directive date.timezone = Europe/Brussels 2000-01-01 zend_mm_heap corrupted // OR (randomly) 2000-01-01 Segmentation fault (core dumped) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70688&edit=1

« previous php.bugs (#196517) next »