summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2011-01-13 06:53:09 +0000
committerScott MacVicar <scottmac@php.net>2011-01-13 06:53:09 +0000
commitd90394851c7f86ee86afa466ae3b31757666a3a9 (patch)
treee03181cf2f7c5d6cf02fdd2a34c5c715fc1c2e53 /ext/intl/php_intl.c
parentc6544fad1a87e68e0593309e70c91ccdee552d33 (diff)
downloadphp-git-d90394851c7f86ee86afa466ae3b31757666a3a9.tar.gz
Add Spoofchecker to intl extension.
Implements part of Unicode TR36 and TR39
Diffstat (limited to 'ext/intl/php_intl.c')
-rwxr-xr-xext/intl/php_intl.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c
index 49872f115f..0512847fa1 100755
--- a/ext/intl/php_intl.c
+++ b/ext/intl/php_intl.c
@@ -70,6 +70,11 @@
#include "idn/idn.h"
+#include "spoofchecker/spoofchecker_class.h"
+#include "spoofchecker/spoofchecker.h"
+#include "spoofchecker/spoofchecker_create.h"
+#include "spoofchecker/spoofchecker_main.h"
+
#include "msgformat/msgformat.h"
#include "common/common_error.h"
@@ -511,7 +516,7 @@ zend_function_entry intl_functions[] = {
PHP_FE( resourcebundle_locales, arginfo_resourcebundle_locales_proc )
PHP_FE( resourcebundle_get_error_code, arginfo_resourcebundle_get_error_code_proc )
PHP_FE( resourcebundle_get_error_message, arginfo_resourcebundle_get_error_message_proc )
-
+
/* Transliterator functions */
PHP_FE( transliterator_create, arginfo_transliterator_create )
PHP_FE( transliterator_create_from_rules, arginfo_transliterator_create_from_rules )
@@ -633,6 +638,12 @@ PHP_MINIT_FUNCTION( intl )
/* Expose IDN constants to PHP scripts. */
idn_register_constants(INIT_FUNC_ARGS_PASSTHRU);
+ /* Register 'Spoofchecker' PHP class */
+ spoofchecker_register_Spoofchecker_class( TSRMLS_C );
+
+ /* Expose Spoofchecker constants to PHP scripts */
+ spoofchecker_register_constants( INIT_FUNC_ARGS_PASSTHRU );
+
/* Global error handling. */
intl_error_init( NULL TSRMLS_CC );