Skip to content

Commit 4211f4d

Browse files
committed
Make zend_get_attribute_object() store a safe value in obj on failure
1 parent 6f1b8fa commit 4211f4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_attributes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ static void attribute_ctor_cleanup(zval *obj, zval *args, uint32_t argc, HashTab
318318
{
319319
if (obj) {
320320
zval_ptr_dtor(obj);
321+
ZVAL_UNDEF(obj);
321322
}
322323

323324
if (args) {

0 commit comments

Comments
 (0)