Merge pull request #8362 from tony2001/read_property_crash_fixed
read_property() handler is not supposed to return NULL
This commit is contained in:
commit
4baed791f5
@ -334,7 +334,7 @@ static zval *Message_read_property(PROTO_VAL *obj, PROTO_STR *member,
|
||||
Message* intern = PROTO_VAL_P(obj);
|
||||
const upb_fielddef *f = get_field(intern, member);
|
||||
|
||||
if (!f) return NULL;
|
||||
if (!f) return &EG(uninitialized_zval);
|
||||
Message_get(intern, f, rv);
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user