diff options
| author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
| commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
| tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/dom/tests/bug36756.phpt | |
| parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
| download | php-git-PECL_OPENSSL.tar.gz | |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/dom/tests/bug36756.phpt')
| -rw-r--r-- | ext/dom/tests/bug36756.phpt | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ext/dom/tests/bug36756.phpt b/ext/dom/tests/bug36756.phpt deleted file mode 100644 index e24f9f0804..0000000000 --- a/ext/dom/tests/bug36756.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -Bug #36756: (DOMDocument::removeChild corrupts node) ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php - -/* Node is preserved from removeChild */ -$dom = new DOMDocument(); -$dom->loadXML('<root><child/></root>'); -$xpath = new DOMXpath($dom); -$node = $xpath->query('/root')->item(0); -echo $node->nodeName . "\n"; -$dom->removeChild($GLOBALS['dom']->firstChild); -echo "nodeType: " . $node->nodeType . "\n"; - -/* Node gets destroyed during removeChild */ -$dom->loadXML('<root><child/></root>'); -$xpath = new DOMXpath($dom); -$node = $xpath->query('//child')->item(0); -echo $node->nodeName . "\n"; -$GLOBALS['dom']->removeChild($GLOBALS['dom']->firstChild); - -echo "nodeType: " . $node->nodeType . "\n"; - -?> ---EXPECTF-- -root -nodeType: 1 -child - -Warning: Couldn't fetch DOMElement. Node no longer exists in %sbug36756.php on line %d - -Notice: Undefined property: DOMElement::$nodeType in %sbug36756.php on line %d -nodeType: |
