From: Gustavo Lopes Date: Tue, 29 Jan 2013 15:36:14 +0000 (+0100) Subject: Write local err on intlcal_get_time_zone() failure X-Git-Tag: php-5.5.0alpha5~58^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee6522bebf5e5b4652d01da6e6eaec4cf59051b2;p=php Write local err on intlcal_get_time_zone() failure --- 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; }