1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00

Now we always ZVAL_DUP args[argnum] now (in ed8691b2)

This commit is contained in:
Xinchen Hui
2014-02-24 15:10:16 +08:00
parent 737a84ed04
commit 948a00ff59

View File

@@ -422,7 +422,7 @@ php_formatted_print(int param_count, int use_array, int format_offset TSRMLS_DC)
currarg = 1;
while (inpos<Z_STRLEN(args[format_offset])) {
int expprec = 0, multiuse = 0;
int expprec = 0;
zval tmp;
PRINTF_DEBUG(("sprintf: format[%d]='%c'\n", inpos, format[inpos]));
@@ -456,7 +456,6 @@ php_formatted_print(int param_count, int use_array, int format_offset TSRMLS_DC)
return NULL;
}
multiuse = 1;
inpos++; /* skip the '$' */
} else {
argnum = currarg++;
@@ -646,9 +645,7 @@ php_formatted_print(int param_count, int use_array, int format_offset TSRMLS_DC)
default:
break;
}
if (multiuse) {
zval_ptr_dtor(&tmp);
}
zval_ptr_dtor(&tmp);
inpos++;
}
}