summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-01-08 18:41:53 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-01-08 18:41:53 +0000
commit10324891f81ffa155cd563c3a21bebdafc47ad3d (patch)
tree535a604872bd9785f6a2b4b92d636f4f1d965cb1 /ext/intl/php_intl.c
parent2651a1fc39813533e8aa6e6afe163d8126c685ca (diff)
downloadphp-git-10324891f81ffa155cd563c3a21bebdafc47ad3d.tar.gz
- Added the ability for the intl exception to throw exceptions when a global error is set.
Diffstat (limited to 'ext/intl/php_intl.c')
-rwxr-xr-xext/intl/php_intl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c
index efe0ddd242..514750f733 100755
--- a/ext/intl/php_intl.c
+++ b/ext/intl/php_intl.c
@@ -545,7 +545,7 @@ zend_function_entry intl_functions[] = {
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY(LOCALE_INI_NAME, NULL, PHP_INI_ALL, OnUpdateStringUnempty, default_locale, zend_intl_globals, intl_globals)
STD_PHP_INI_ENTRY("intl.error_level", "0", PHP_INI_ALL, OnUpdateLong, error_level, zend_intl_globals, intl_globals)
-
+ STD_PHP_INI_ENTRY("intl.use_exceptions", "0", PHP_INI_ALL, OnUpdateBool, use_exceptions, zend_intl_globals, intl_globals)
PHP_INI_END()
/* }}} */
@@ -653,6 +653,10 @@ PHP_MINIT_FUNCTION( intl )
/* Expose Spoofchecker constants to PHP scripts */
spoofchecker_register_constants( INIT_FUNC_ARGS_PASSTHRU );
#endif
+
+ /* Register 'IntlException' PHP class */
+ intl_register_IntlException_class( TSRMLS_C );
+
/* Global error handling. */
intl_error_init( NULL TSRMLS_CC );