From:             [EMAIL PROTECTED]
Operating system: Any
PHP version:      5.2CVS-2008-04-16 (snap)
PHP Bug Type:     Date/time related
Bug description:  Segmentation fault

Description:
------------
timezone_offset_get() causes segmentation faults.

Reproduce code:
---------------
$ ./php.exe -r '$date= date_create("2008-04-11 00:00:00+0000");
var_dump(timezone_offset_get(date_timezone_get($date), $date));'
[...Segmentation fault Dialog box...]

[EMAIL PROTECTED] ~/bin/php5dev
$ ./php.exe -v
PHP 5.2.6RC6-dev (cli) (built: Apr 15 2008 12:04:52) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies


Expected result:
----------------
int(7200)

Actual result:
--------------
Segmentation fault

-- 
Edit bug report at http://bugs.php.net/?id=44742&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44742&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44742&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44742&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44742&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44742&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44742&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44742&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44742&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44742&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44742&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44742&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44742&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44742&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44742&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44742&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44742&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44742&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44742&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44742&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44742&r=mysqlcfg

Reply via email to