]> granicus.if.org Git - php/commitdiff
fix calendar segfault
authorJoe Watkins <krakjoe@php.net>
Mon, 11 Apr 2016 07:03:15 +0000 (08:03 +0100)
committerJoe Watkins <krakjoe@php.net>
Mon, 11 Apr 2016 07:03:15 +0000 (08:03 +0100)
ext/intl/calendar/calendar_class.cpp

index 6b6feef8d98c8798a18a252b37674236aa8ed44d..72cd7e1dd0f2cc7723d63530bedb4353bc13d593 100644 (file)
@@ -177,7 +177,7 @@ static HashTable *Calendar_get_debug_info(zval *object, int *is_temp)
                HashTable          *debug_info_tz;
 
                timezone_object_construct(&cal->getTimeZone(), &ztz , 0);
-               debug_info = Z_OBJ_HANDLER(ztz, get_debug_info)(&ztz, &is_tmp);
+               debug_info_tz = Z_OBJ_HANDLER(ztz, get_debug_info)(&ztz, &is_tmp);
                assert(is_tmp == 1);
 
                array_init(&ztz_debug);