What will happen with reference counting in the following c code for php7?
In php7 zval
s are created on stack, so the reference issues arise:
zval destination;
array_init(destination);
{
// scope begin
zval val;
// does val's refcount incremented here or val is copied?
add_next_index_zval(destination, val);
// here the "val" will be destroyed.
// Does "destination" will experience any problems?
}