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/wddx | |
parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/wddx')
-rw-r--r-- | ext/wddx/wddx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 2ac3272709..5b40d7773d 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -783,7 +783,7 @@ PHP_FUNCTION(wddx_serialize_value) wddx_packet *packet; char *buf; - argc = ARG_COUNT(ht); + argc = ZEND_NUM_ARGS(); if(argc < 1 || argc > 2 || zend_get_parameters_ex(argc, &var, &comment) == FAILURE) { WRONG_PARAM_COUNT; } @@ -820,7 +820,7 @@ PHP_FUNCTION(wddx_serialize_vars) zval ***args; char *buf; - argc = ARG_COUNT(ht); + argc = ZEND_NUM_ARGS(); /* Allocate arguments array and get the arguments, checking for errors. */ args = (zval ***)emalloc(argc * sizeof(zval **)); if (zend_get_parameters_array_ex(argc, args) == FAILURE) { @@ -877,7 +877,7 @@ PHP_FUNCTION(wddx_packet_start) wddx_packet *packet; comment = NULL; - argc = ARG_COUNT(ht); + argc = ZEND_NUM_ARGS(); if (argc > 1 || (argc == 1 && zend_get_parameters_ex(1, &comment)==FAILURE)) { WRONG_PARAM_COUNT; @@ -910,7 +910,7 @@ PHP_FUNCTION(wddx_packet_end) char *buf; wddx_packet *packet = NULL; - if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &packet_id)==FAILURE) { + if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &packet_id)==FAILURE) { WRONG_PARAM_COUNT; } @@ -938,7 +938,7 @@ PHP_FUNCTION(wddx_add_vars) zval **packet_id; wddx_packet *packet = NULL; - argc = ARG_COUNT(ht); + argc = ZEND_NUM_ARGS(); if (argc < 2) { WRONG_PARAM_COUNT; } @@ -977,7 +977,7 @@ PHP_FUNCTION(wddx_deserialize) { zval **packet; - if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &packet) == FAILURE) { + if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &packet) == FAILURE) { WRONG_PARAM_COUNT; } |