mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
- New parameter parsing API for var.c & tests
This commit is contained in:
parent
ea00fea83d
commit
dc4bcc901b
3 changed files with 6 additions and 14 deletions
|
@ -172,12 +172,8 @@ PHP_FUNCTION(var_dump)
|
|||
int argc;
|
||||
int i;
|
||||
|
||||
argc = ZEND_NUM_ARGS();
|
||||
|
||||
args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0);
|
||||
if (ZEND_NUM_ARGS() == 0 || zend_get_parameters_array_ex(argc, args) == FAILURE) {
|
||||
efree(args);
|
||||
WRONG_PARAM_COUNT;
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "+", &args, &argc) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
|
@ -328,12 +324,8 @@ PHP_FUNCTION(debug_zval_dump)
|
|||
int argc;
|
||||
int i;
|
||||
|
||||
argc = ZEND_NUM_ARGS();
|
||||
|
||||
args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0);
|
||||
if (ZEND_NUM_ARGS() == 0 || zend_get_parameters_array_ex(argc, args) == FAILURE) {
|
||||
efree(args);
|
||||
WRONG_PARAM_COUNT;
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "+", &args, &argc) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue