mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Moved the constants into ext/standard
This commit is contained in:
parent
9206955425
commit
56e718d87e
2 changed files with 1 additions and 15 deletions
|
@ -38,7 +38,7 @@ function_entry php_gettext_functions[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
zend_module_entry php_gettext_module_entry = {
|
zend_module_entry php_gettext_module_entry = {
|
||||||
"gettext", php_gettext_functions, PHP_MINIT(gettext), NULL, NULL, NULL, PHP_MINFO(gettext), STANDARD_MODULE_PROPERTIES
|
"gettext", php_gettext_functions, NULL, NULL, NULL, NULL, PHP_MINFO(gettext), STANDARD_MODULE_PROPERTIES
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef COMPILE_DL_GETTEXT
|
#ifdef COMPILE_DL_GETTEXT
|
||||||
|
@ -52,19 +52,6 @@ PHP_MINFO_FUNCTION(gettext)
|
||||||
php_info_print_table_end();
|
php_info_print_table_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PHP_MINIT_FUNCTION(gettext)
|
|
||||||
{
|
|
||||||
REGISTER_LONG_CONSTANT("LC_CTYPE", LC_CTYPE, CONST_CS | CONST_PERSISTENT);
|
|
||||||
REGISTER_LONG_CONSTANT("LC_NUMERIC", LC_NUMERIC, CONST_CS | CONST_PERSISTENT);
|
|
||||||
REGISTER_LONG_CONSTANT("LC_TIME", LC_TIME, CONST_CS | CONST_PERSISTENT);
|
|
||||||
REGISTER_LONG_CONSTANT("LC_COLLATE", LC_COLLATE, CONST_CS | CONST_PERSISTENT);
|
|
||||||
REGISTER_LONG_CONSTANT("LC_MONETARY", LC_MONETARY, CONST_CS | CONST_PERSISTENT);
|
|
||||||
REGISTER_LONG_CONSTANT("LC_MESSAGES", LC_MESSAGES, CONST_CS | CONST_PERSISTENT);
|
|
||||||
REGISTER_LONG_CONSTANT("LC_ALL", LC_ALL, CONST_CS | CONST_PERSISTENT);
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* {{{ proto string textdomain(string domain)
|
/* {{{ proto string textdomain(string domain)
|
||||||
Set the textdomain to "domain". Returns the current domain */
|
Set the textdomain to "domain". Returns the current domain */
|
||||||
PHP_FUNCTION(textdomain)
|
PHP_FUNCTION(textdomain)
|
||||||
|
|
|
@ -30,7 +30,6 @@ extern zend_module_entry php_gettext_module_entry;
|
||||||
#define gettext_module_ptr &php_gettext_module_entry
|
#define gettext_module_ptr &php_gettext_module_entry
|
||||||
|
|
||||||
PHP_MINFO_FUNCTION(gettext);
|
PHP_MINFO_FUNCTION(gettext);
|
||||||
PHP_MINIT_FUNCTION(gettext);
|
|
||||||
|
|
||||||
PHP_FUNCTION(textdomain);
|
PHP_FUNCTION(textdomain);
|
||||||
PHP_FUNCTION(gettext);
|
PHP_FUNCTION(gettext);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue