|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-27 12:35 UTC] rrichards@php.net
[2007-12-28 17:47 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Feb 05 02:00:01 2026 UTC |
Description: ------------ There is a DomException in the documentation of Dom->importNode(), but it returns FALSE on fail without a reason. Reproduce code: --------------- /** * Import node to dom * * @param DomElement node which will be imported * @param boolean deep (use recursive importing - default TRUE) * @return DomElement reference to created node */ public function domImportNode($node, $deep = TRUE) { if (FALSE === ($sxe = $this->dom->importNode($node, $deep))) { throw new Exception('importNode failed.'); } $sxe = $this->dom->appendChild($sxe); return $sxe; } Expected result: ---------------- DomException Actual result: -------------- My Exception