{
if (UNEXPECTED(call_info & ZEND_CALL_FREE_EXTRA_ARGS)) {
uint32_t count = ZEND_CALL_NUM_ARGS(call) - call->func->op_array.num_args;
- zval *p = ZEND_CALL_VAR_NUM(call, call->func->op_array.last_var + call->func->op_array.T + count);
+ zval *p = ZEND_CALL_VAR_NUM(call, call->func->op_array.last_var + call->func->op_array.T);
do {
- p--;
if (Z_REFCOUNTED_P(p)) {
zend_refcounted *r = Z_COUNTED_P(p);
if (!GC_DELREF(r)) {
gc_check_possible_root(r);
}
}
+ p++;
} while (--count);
}
}
uint32_t num_args = ZEND_CALL_NUM_ARGS(call);
if (EXPECTED(num_args > 0)) {
- zval *end = ZEND_CALL_ARG(call, 1);
- zval *p = end + num_args;
+ zval *p = ZEND_CALL_ARG(call, 1);
do {
- p--;
if (Z_REFCOUNTED_P(p)) {
zend_refcounted *r = Z_COUNTED_P(p);
if (!GC_DELREF(r)) {
zval_dtor_func(r);
}
}
- } while (p != end);
+ p++;
+ } while (--num_args);
}
}
}
?>
==DONE==
---EXPECT--
+--EXPECTF--
Original:
2010-01-01 00:00:00
2010-01-02 00:00:00
2010-01-03 00:00:00
-object(DatePeriod)#1 (6) {
+object(DatePeriod)#%d (6) {
["start"]=>
- object(DateTime)#2 (3) {
+ object(DateTime)#%d (3) {
["date"]=>
string(26) "2010-01-01 00:00:00.000000"
["timezone_type"]=>
string(3) "UTC"
}
["current"]=>
- object(DateTime)#4 (3) {
+ object(DateTime)#%d (3) {
["date"]=>
string(26) "2010-01-04 00:00:00.000000"
["timezone_type"]=>
["end"]=>
NULL
["interval"]=>
- object(DateInterval)#5 (16) {
+ object(DateInterval)#%d (16) {
["y"]=>
int(0)
["m"]=>
["include_start_date"]=>
bool(true)
}
-object(DatePeriod)#5 (6) {
+object(DatePeriod)#%d (6) {
["start"]=>
- object(DateTime)#10 (3) {
+ object(DateTime)#%d (3) {
["date"]=>
string(26) "2010-01-01 00:00:00.000000"
["timezone_type"]=>
string(3) "UTC"
}
["current"]=>
- object(DateTime)#7 (3) {
+ object(DateTime)#%d (3) {
["date"]=>
string(26) "2010-01-04 00:00:00.000000"
["timezone_type"]=>
["end"]=>
NULL
["interval"]=>
- object(DateInterval)#8 (16) {
+ object(DateInterval)#%d (16) {
["y"]=>
int(0)
["m"]=>