mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
111072a9f0
The $classList property is special in the sense that it's a cached object instance per (HTML)Element instance. The reason for this design is because it has the [[SameObject]] IDL attribute. Cloning in PHP also clones the properties, so it also clones the cached instance. To solve this, we undo this by resetting the backing storage. Closes GH-18749.