diff options
| author | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
| commit | 3701bc420774c1b689f8a43f0ed891c99fea3cd2 (patch) | |
| tree | 9bbc5d33a0a90e290889dbca3d8fa9bb1dfe38a9 /ext/gettext/gettext.c | |
| parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
| download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz | |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/gettext/gettext.c')
| -rw-r--r-- | ext/gettext/gettext.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c index a57f5deab2..cf70362289 100644 --- a/ext/gettext/gettext.c +++ b/ext/gettext/gettext.c @@ -60,7 +60,7 @@ PHP_FUNCTION(textdomain) char *domain_name, *retval; char *val; - if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &domain) == FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &domain) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_string_ex(domain); @@ -85,7 +85,7 @@ PHP_FUNCTION(gettext) pval **msgid; char *msgstr; - if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &msgid) == FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &msgid) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_string_ex(msgid); @@ -103,7 +103,7 @@ PHP_FUNCTION(dgettext) pval **domain_name, **msgid; char *msgstr; - if (ARG_COUNT(ht) != 2 + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &domain_name, &msgid) == FAILURE) { WRONG_PARAM_COUNT; @@ -124,7 +124,7 @@ PHP_FUNCTION(dcgettext) pval **domain_name, **msgid, **category; char *msgstr; - if (ARG_COUNT(ht) != 3 + if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &domain_name, &msgid, &category) == FAILURE) { WRONG_PARAM_COUNT; @@ -149,7 +149,7 @@ PHP_FUNCTION(bindtextdomain) char *retval, *dir_name; char *val; - if (ARG_COUNT(ht) != 2 + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &domain_name, &dir) == FAILURE) { WRONG_PARAM_COUNT; |
