]> granicus.if.org Git - php/commitdiff
Write local err on intlcal_get_time_zone() failure
authorGustavo Lopes <glopes@nebm.ist.utl.pt>
Tue, 29 Jan 2013 15:36:14 +0000 (16:36 +0100)
committerGustavo Lopes <glopes@nebm.ist.utl.pt>
Tue, 29 Jan 2013 18:06:14 +0000 (19:06 +0100)
ext/intl/calendar/calendar_methods.cpp

index f2758fdcc8b29b8743c5f6fa7153fe001a99df1f..2d33bd1952f2fd85600800fc29e06b3b36927be2 100644 (file)
@@ -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;
        }