You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_object_vars leaks class in property when used for class with property getter #16725
changed the title [-]json_encode leaks class in property when get_object_vars is used in jsonSerialize with property getter[/-][+]``get_object_vars`` leaks class in property when get_object_vars used in class with property getter[/+]on Nov 9, 2024
changed the title [-]``get_object_vars`` leaks class in property when get_object_vars used in class with property getter[/-][+]``get_object_vars`` leaks class in property when used for class with property getter[/+]on Nov 9, 2024
Activity
cmb69 commentedon Nov 8, 2024
serialize()yields (so this is an engine issue, not JSON specific.
ndossche commentedon Nov 8, 2024
get_object_varswill callzho_build_properties_exwhich normally uses the mangled names as keys.[-]json_encode leaks class in property when get_object_vars is used in jsonSerialize with property getter[/-][+]``get_object_vars`` leaks class in property when get_object_vars used in class with property getter[/+]gielwijgergangs commentedon Nov 9, 2024
@cmb69 you are right. The issue is not related to JSON, apologies for the confusion. I modified the title of the issue.
[-]``get_object_vars`` leaks class in property when get_object_vars used in class with property getter[/-][+]``get_object_vars`` leaks class in property when used for class with property getter[/+]cmb69 commentedon Nov 9, 2024
Maybe @iluuu1994 can have a look?
Fix get_object_vars() for non-hooked props in hooked prop iter