From 499293449bbd3ef2f7dd3e904ee1a469e4ea0433 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 29 Jun 2014 22:56:27 +0800 Subject: Fixed segfault in intlgregcal_create_instance --- ext/intl/calendar/gregoriancalendar_methods.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/intl/calendar') diff --git a/ext/intl/calendar/gregoriancalendar_methods.cpp b/ext/intl/calendar/gregoriancalendar_methods.cpp index e08d263723..41e2735485 100644 --- a/ext/intl/calendar/gregoriancalendar_methods.cpp +++ b/ext/intl/calendar/gregoriancalendar_methods.cpp @@ -182,7 +182,8 @@ U_CFUNC PHP_FUNCTION(intlgregcal_create_instance) _php_intlgregcal_constructor_body(INTERNAL_FUNCTION_PARAM_PASSTHRU); if (Z_TYPE_P(return_value) == IS_OBJECT && Z_OBJ_P(return_value) == NULL) { - zend_object_store_ctor_failed(Z_OBJ(orig) TSRMLS_CC); + zval_dtor(&orig); + RETURN_NULL(); } } -- cgit v1.2.1