PluginProbe
Parse.ly / 3.24.2
Parse.ly v3.24.2
3.24.3 3.24.2 3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 All 107 releases
← All changes | vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php +3 -3 3.23.5 → 3.24.2 View file →
@@ -396,11 +396,11 @@
396 396 // When we add some namespacess, we have to track them. Later, when "endElement" is invoked, we have to remove them.
397 397 // When we are on a void tag, we do not need to care about namesapce nesting.
398 398 if ($pushes > 0 && !Elements::isA($name, Elements::VOID_TAG)) {
399 399 // PHP tends to free the memory used by DOM,
400 - // to avoid spl_object_hash collisions whe have to avoid garbage collection of $ele storing it into $pushes
400 + // to avoid spl_object_id collisions we have to avoid garbage collection of $ele storing it into $pushes
401 401 // see https://bugs.php.net/bug.php?id=67459
402 - $this->pushes[spl_object_hash($ele)] = array($pushes, $ele);
402 + $this->pushes[spl_object_id($ele)] = array($pushes, $ele);
403 403 }
404 404
405 405 foreach ($attributes as $aName => $aVal) {
406 406 // xmlns attributes can't be set
@@ -520,9 +520,9 @@
520 520 if ($this->insertMode === static::IM_IN_SVG) {
521 521 $lname = Elements::normalizeSvgElement($lname);
522 522 }
523 523
524 - $cid = spl_object_hash($this->current);
524 + $cid = spl_object_id($this->current);
525 525
526 526 // XXX: HTML has no parent. What do we do, though,
527 527 // if this element appears in the wrong place?
528 528 if ('html' === $lname) {