diff options
| author | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2013-01-29 16:36:14 +0100 |
|---|---|---|
| committer | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2013-01-29 19:06:14 +0100 |
| commit | ee6522bebf5e5b4652d01da6e6eaec4cf59051b2 (patch) | |
| tree | 78aaaaf3974e997ab9cd96f5708fc3cb30004cf2 | |
| parent | 363fd6d6fb5c962c8d1339dfaad2bd18373de36c (diff) | |
| download | php-git-ee6522bebf5e5b4652d01da6e6eaec4cf59051b2.tar.gz | |
Write local err on intlcal_get_time_zone() failure
| -rw-r--r-- | ext/intl/calendar/calendar_methods.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
