Files
php-src/ext/simplexml
Ilia Alshanetsky 8b13fcc13e simplexml: fix addChild() namespace filter on the returned element
addChild() passed the caller's prefix to node_as_zval_str() with isprefix
set to 0, so the returned element filtered its children by comparing that
prefix against the namespace href and matched nothing. Take the prefix from
the created node and mark it as one, but only when the caller asked for a
namespace, so a plain addChild() keeps the unfiltered view that its
attributes and non-namespaced children rely on.

Closes GH-23599
2026-09-08 06:20:54 -04:00
..
…