From ee6522bebf5e5b4652d01da6e6eaec4cf59051b2 Mon Sep 17 00:00:00 2001 From: Gustavo Lopes Date: Tue, 29 Jan 2013 16:36:14 +0100 Subject: [PATCH] Write local err on intlcal_get_time_zone() failure --- ext/intl/calendar/calendar_methods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/intl/calendar/calendar_methods.cpp b/ext/intl/calendar/calendar_methods.cpp index f2758fdcc8..2d33bd1952 100644 --- a/ext/intl/calendar/calendar_methods.cpp +++ b/ext/intl/calendar/calendar_methods.cpp @@ -782,7 +782,7 @@ U_CFUNC PHP_FUNCTION(intlcal_get_time_zone) TimeZone *tz = co->ucal->getTimeZone().clone(); if (tz == NULL) { - intl_error_set(NULL, U_MEMORY_ALLOCATION_ERROR, + intl_errors_set(CALENDAR_ERROR_P(co), U_MEMORY_ALLOCATION_ERROR, "intlcal_get_time_zone: could not clone TimeZone", 0 TSRMLS_CC); RETURN_FALSE; } -- 2.40.0