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/ereg/ereg.c | |
| parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
| download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz | |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/ereg/ereg.c')
| -rw-r--r-- | ext/ereg/ereg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c index 6849b0faa3..3f8f28be04 100644 --- a/ext/ereg/ereg.c +++ b/ext/ereg/ereg.c @@ -175,7 +175,7 @@ static void php_ereg(INTERNAL_FUNCTION_PARAMETERS, int icase) if (icase) copts |= REG_ICASE; - switch(ARG_COUNT(ht)) { + switch(ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, ®ex, &findin) == FAILURE) { WRONG_PARAM_COUNT; @@ -429,7 +429,7 @@ static void php_ereg_replace(INTERNAL_FUNCTION_PARAMETERS, int icase) char *replace; char *ret; - if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg_pattern, &arg_replace, &arg_string) == FAILURE) { + if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &arg_pattern, &arg_replace, &arg_string) == FAILURE) { WRONG_PARAM_COUNT; } @@ -504,7 +504,7 @@ PHP_FUNCTION(split) char *strp, *endp; int err, size, count; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &spliton, &str) == FAILURE) WRONG_PARAM_COUNT; @@ -600,7 +600,7 @@ PHPAPI PHP_FUNCTION(sql_regcase) unsigned char c; register int i, j; - if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &string)==FAILURE) { + if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &string)==FAILURE) { WRONG_PARAM_COUNT; } |
