ID:               45734
 Comment by:       alex at kiesel dot name
 Reported By:      alex at kiesel dot name
 Status:           Open
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b9db3cf24f0 (LWP 16473)]
0x000000000048d5ba in timelib_tzinfo_clone ()
(gdb) bt
#0  0x000000000048d5ba in timelib_tzinfo_clone ()
#1  0x00000000004702bb in zif_date_timezone_set ()
#2  0x00000000005f0747 in ?? ()
#3  0x00000000005e05c3 in execute ()
#4  0x00000000005c130d in zend_execute_scripts ()
#5  0x000000000057f8f8 in php_execute_script ()
#6  0x00000000006443f5 in main ()


Previous Comments:
------------------------------------------------------------------------

[2008-08-06 14:44:55] alex at kiesel dot name

Description:
------------
PHP segfaults after issueing a WARNING.

Reproduce code:
---------------
<?php

  $date= date_create('2008-08-01 20:11:01+0200');
  date_timezone_set($date, date_timezone_get($date));

?>


Expected result:
----------------
Warning: date_timezone_set(): Can only do this for zones with ID for
now in /home/ak/timezone-segfault.php on line 4

Actual result:
--------------
Warning: date_timezone_set(): Can only do this for zones with ID for
now in /home/ak/timezone-segfault.php on line 4
Segmentation fault



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45734&edit=1

Reply via email to