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

From: Date: Sun, 11 Oct 2015 13:54:34 +0000
Subject: Bug #70688 [Opn->Fbk]: 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-196529@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
 Updated by:         felipe@php.net
 Reported by:        jerome at taotesting dot com
 Summary:            new DateTime object produces Segmentation fault or
                     zend_mm_heap corrupted
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Date/time related
 Operating System:   3.19.0-30-generic 14.04 Ubuntu
 PHP Version:        7.0.0RC4
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2015-10-11 01:50:51] jerome at taotesting dot com

More readable OS version edited.

------------------------------------------------------------------------
[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


Thread (16 messages)

« previous php.bugs (#196529) next »