|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-05-02 21:09 UTC] mail at thomasbachem dot com
Description:
------------
Using a DOMNameSpaceNode in PHP 5.4 with APC 3.1.10 enabled leads to the described
result. Disabling APC resolves the issue.
Test script:
---------------
<?php
$doc = new DOMDocument();
$doc->loadXML('<?xml version="1.0" encoding="UTF-8"?><root/>');
$xpath = new DOMXPath($doc);
$namespaces = $xpath->query('namespace::*');
var_dump($namespaces->item(0));
print $namespaces->item(0)->localName;
?>
Expected result:
----------------
object(DOMNameSpaceNode)[3]
xml
Actual result:
--------------
object(DOMNameSpaceNodex_^TŒ-Ÿë)[3]
PHP Notice: Undefined property: DOMNameSpaceNodex_^T\x8c-\x9f\xeb\x14::$localName
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 14:00:01 2025 UTC |
Probably the same error: $node = new DOMDocument; $node->loadHTML('<?foo>'); echo $node->firstChild->nextSibling->nodeType; results in E_WARNING: Couldn't fetch DOMProcessingInstruction��{. Node no longer exists instead of the value 7 which is output if I set apc.enabled=0