ID: 36428 Updated by: [EMAIL PROTECTED] Reported By: stochnagara at hotmail dot com Status: Open -Bug Type: PDO related +Bug Type: SimpleXML related Operating System: win xp PHP Version: 5CVS-2006-02-17 (snap) New Comment:
This error message comes from SimpleXML. Reclassified. Previous Comments: ------------------------------------------------------------------------ [2006-02-17 16:35:27] stochnagara at hotmail dot com Description: ------------ Trying to fetch DB result into a SimpleXMLElement instance produces an incorrect error message. Reproduce code: --------------- $q = new PDO('sqlite::memory:'); $q->exec ("CREATE TABLE test (a)"); $q->exec ("INSERT INTO test (a) VALUES (1)"); var_dump ($q->query ("SELECT a FROM test")->fetchAll(PDO::FETCH_CLASS, 'SimpleXMLElement', array ('<root/>'))); Expected result: ---------------- Some consistent error message. Actual result: -------------- Warning: PDOStatement::fetchAll() [function.fetchAll]: Node no longer exists in c:\program files\apache group\Apache\htdocs\standart\index.php on line 6 array(1) { [0]=> object(SimpleXMLElement)#3 (0) { } } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36428&edit=1