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
Changing the properties of a DateInterval through dynamic properties triggers a SegFault #18304
@27pchrisl Just removing that line will reintroduce the bug that it was trying to solve. It's just missing the NULL check on cache_slot, as there is no cache slot for a dynamic access. I'll fix it up.
I'm surprised there was no test for this though.
Activity
27pchrisl commentedon Apr 11, 2025
My backtrace pointed to
date_interval_get_property_ptr_ptr, git bisecting for the error narrowed it down to ce8ab5f - problem in ce8ab5f#diff-975ac482adc74b487c6ac9d8dde32153e4b8a803ef8ec41e8d6594f0a042db69R4402 ?Removing that line clears the error, but I don't know enough about the change to submit a fix - @nielsdos ?
ndossche commentedon Apr 11, 2025
@27pchrisl Just removing that line will reintroduce the bug that it was trying to solve. It's just missing the NULL check on
cache_slot, as there is no cache slot for a dynamic access. I'll fix it up.I'm surprised there was no test for this though.
Fix phpGH-18304: Changing the properties of a DateInterval through dy…
Fix GH-18304: Changing the properties of a DateInterval through dynam…
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'