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
FixGH-20503: Assertion failure with ext/date DateInterval property hash
When a DateInterval object has a circular reference (e.g., $obj->prop = $obj), calling json_encode() triggered an assertion failure because the get_properties handler modified a HashTable with refcount > 1.
Added a get_properties_for handler for DateInterval that duplicates the properties array before modification, matching the pattern used by DateTime and DateTimeZone.
0 commit comments