mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Tracing JIT: Fixed possible memory-leak or missed destructor call.
This commit is contained in:
@@ -1930,6 +1930,11 @@ propagate_arg:
|
||||
return_value_info.type &= ~MAY_BE_UNDEF;
|
||||
return_value_info.type |= MAY_BE_NULL;
|
||||
}
|
||||
if (return_value_info.type & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) {
|
||||
/* CVs are going to be destructed and the reference-counter
|
||||
of return value may be decremented to 1 */
|
||||
return_value_info.type |= MAY_BE_RC1;
|
||||
}
|
||||
return_value_info.type &= ~MAY_BE_GUARD;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user