PluginProbe
Parse.ly / 3.24.2
Parse.ly v3.24.2
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 3.20.2 All 106 releases
← All changes | vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php +3 -5 3.20.2 → 3.24.2 View file →
@@ -230,10 +230,8 @@
230 230 * Provide an instruction processor.
231 231 *
232 232 * This is used for handling Processor Instructions as they are
233 233 * inserted. If omitted, PI's are inserted directly into the DOM tree.
234 - *
235 - * @param InstructionProcessor $proc
236 234 */
237 235 public function setInstructionProcessor(InstructionProcessor $proc)
238 236 {
239 237 $this->processor = $proc;
@@ -398,11 +396,11 @@
398 396 // When we add some namespacess, we have to track them. Later, when "endElement" is invoked, we have to remove them.
399 397 // When we are on a void tag, we do not need to care about namesapce nesting.
400 398 if ($pushes > 0 && !Elements::isA($name, Elements::VOID_TAG)) {
401 399 // PHP tends to free the memory used by DOM,
402 - // 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
403 401 // see https://bugs.php.net/bug.php?id=67459
404 - $this->pushes[spl_object_hash($ele)] = array($pushes, $ele);
402 + $this->pushes[spl_object_id($ele)] = array($pushes, $ele);
405 403 }
406 404
407 405 foreach ($attributes as $aName => $aVal) {
408 406 // xmlns attributes can't be set
@@ -522,9 +520,9 @@
522 520 if ($this->insertMode === static::IM_IN_SVG) {
523 521 $lname = Elements::normalizeSvgElement($lname);
524 522 }
525 523
526 - $cid = spl_object_hash($this->current);
524 + $cid = spl_object_id($this->current);
527 525
528 526 // XXX: HTML has no parent. What do we do, though,
529 527 // if this element appears in the wrong place?
530 528 if ('html' === $lname) {