mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Objects with constructors escape
This commit is contained in:
parent
4cb06b9327
commit
2c61e5dc38
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ static int is_allocation_def(zend_op_array *op_array, zend_ssa *ssa, int def, in
|
||||||
/* objects with destructors should escape */
|
/* objects with destructors should escape */
|
||||||
if (opline->op1_type == IS_CONST) {
|
if (opline->op1_type == IS_CONST) {
|
||||||
zend_class_entry *ce = get_class_entry(script, Z_STR_P(CRT_CONSTANT_EX(op_array, opline->op1, ssa->rt_constants)+1));
|
zend_class_entry *ce = get_class_entry(script, Z_STR_P(CRT_CONSTANT_EX(op_array, opline->op1, ssa->rt_constants)+1));
|
||||||
if (ce && !ce->create_object &&
|
if (ce && !ce->create_object && !ce->constructor &&
|
||||||
!ce->destructor && !ce->__get && !ce->__set &&
|
!ce->destructor && !ce->__get && !ce->__set &&
|
||||||
!(ce->ce_flags & ZEND_ACC_INHERITED)) {
|
!(ce->ce_flags & ZEND_ACC_INHERITED)) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue