va_start(ptr, param_count);
- do {
+ while (param_count>0) {
param = va_arg(ptr, zval **);
param_ptr = *(p-param_count);
if (!param_ptr->is_ref && param_ptr->refcount>1) {
*(p-param_count) = param_ptr;
}
*param = param_ptr;
- } while (--param_count);
+ param_count--;
+ }
va_end(ptr);
return SUCCESS;
}
- do {
+ while (param_count>0) {
param_ptr = *(p-param_count);
if (!param_ptr->is_ref && param_ptr->refcount>1) {
zval *new_tmp;
*(p-param_count) = param_ptr;
}
*(argument_array++) = param_ptr;
- } while (--param_count);
+ param_count--;
+ }
return SUCCESS;
}