Bug #55397 [Opn->Ana]: comparsion of incomplete DateTime causes SIGSEGV

From: Date: Sun, 14 Aug 2011 15:52:59 +0000
Subject: Bug #55397 [Opn->Ana]: comparsion of incomplete DateTime causes SIGSEGV
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162572@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55397&edit=1 ID: 55397 Updated by: laruence@php.net Reported by: ladislav at marek dot su Summary: comparsion of incomplete DateTime causes SIGSEGV -Status: Open +Status: Analyzed Type: Bug Package: Date/time related Operating System: Linux PHP Version: 5.3.7RC4 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-08-11 10:01:44] ladislav at marek dot su Description: ------------ PHP ends with SIGSEGV when comparing incompletely unserialized DateTime. Test script: --------------- date_default_timezone_set('Europe/Prague'); var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime); Expected result: ---------------- bool(false) Actual result: -------------- SIGSEGV ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55397&edit=1

« previous php.bugs (#162572) next »