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
SimpleXMLElement with stream_wrapper_register can segfault #12929
Can confirm, at least for SimpleXML it's because in 8.3 I added the invalidation code which accesses node->doc but apparently node can be NULL after GET_NODE because that macro doesn't perform the return...
The locations of GET_NODE have to be checked on 8.2+.
Activity
ndossche commentedon Dec 11, 2023
Can confirm, at least for SimpleXML it's because in 8.3 I added the invalidation code which accesses
node->docbut apparentlynodecan be NULL afterGET_NODEbecause that macro doesn't perform the return...The locations of
GET_NODEhave to be checked on 8.2+.ndossche commentedon Dec 12, 2023
I can't reproduce it for these two classes though, not on my local machine and not in 3v4l...
Anyway PR is up to fix SimpleXML.
mvorisek commentedon Dec 12, 2023
3v4l repro: https://3v4l.org/pDpKO
ndossche commentedon Dec 12, 2023
But that doesn't segfault/crash right? https://3v4l.org/shafO I added a var_dump at the end and it prints, I don't see a code 139.
mvorisek commentedon Dec 12, 2023
I can confirm this is present for the XML classes only, at least today :)
Fix GH-12929: SimpleXMLElement with stream_wrapper_register can segfault
Merge branch 'PHP-8.3'