summaryrefslogtreecommitdiff
path: root/ext/intl/intl_error.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2009-07-07 21:25:46 +0000
committerStanislav Malyshev <stas@php.net>2009-07-07 21:25:46 +0000
commite865c0b4ee31ebdb01504f886910579ba9777860 (patch)
tree10dd1c4c02cd33271ae54c4ed436e67d3000ab0a /ext/intl/intl_error.c
parent87f9d62861d39b4feaa1ffcbbb5eaa95b3fb71b9 (diff)
downloadphp-git-e865c0b4ee31ebdb01504f886910579ba9777860.tar.gz
merge errors support
Diffstat (limited to 'ext/intl/intl_error.c')
-rwxr-xr-xext/intl/intl_error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/intl/intl_error.c b/ext/intl/intl_error.c
index 44f668b195..79ae153bbe 100755
--- a/ext/intl/intl_error.c
+++ b/ext/intl/intl_error.c
@@ -103,6 +103,9 @@ void intl_error_set_custom_msg( intl_error* err, char* msg, int copyMsg TSRMLS_D
if( !msg )
return;
+ if(!err && INTL_G(error_level)) {
+ php_error_docref(NULL TSRMLS_CC, INTL_G(error_level), "%s", msg);
+ }
if( !err && !( err = intl_g_error_get( TSRMLS_C ) ) )
return;