We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033eec7 commit 77b8ec1Copy full SHA for 77b8ec1
ext/reflection/php_reflection.c
@@ -884,7 +884,10 @@ static zval *property_get_default(zend_property_info *prop_info) {
884
ZVAL_DEINDIRECT(prop);
885
return prop;
886
} else {
887
- return &ce->default_properties_table[OBJ_PROP_TO_NUM(prop_info->offset)];
+ if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) {
888
+ return &EG(uninitialized_zval);
889
+ }
890
+ return &CE_DEFAULT_PROPERTIES_TABLE(ce)[OBJ_PROP_TO_NUM(prop_info->offset)];
891
}
892
893
0 commit comments