#32743 [Fbk->Opn]: Error with type of 2nd parameter when creating DOMDocument()

From: Date: Mon, 18 Apr 2005 19:38:03 +0000
Subject: #32743 [Fbk->Opn]: Error with type of 2nd parameter when creating DOMDocument()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77818@lists.php.net to get a copy of this message
ID: 32743 User updated by: jj at intelequest dot com Reported By: jj at intelequest dot com -Status: Feedback +Status: Open Bug Type: DOM XML related Operating System: Windows XP PHP Version: 5.0.4 New Comment: Yes, the problem was with my php.ini whereby I was loading the php_domxml.dll in the extensions. Once I removed that from the extensions and restarted the web service all was good with instantiating that DOMDocument() object. Previous Comments: ------------------------------------------------------------------------ [2005-04-18 21:29:52] chregu@php.net Did you load php_domxml.dll instead if php_dom.dll? ------------------------------------------------------------------------ [2005-04-18 21:27:36] jj at intelequest dot com My bad folks.... extension=php_domxml.dll was still active and caused this issue. I apologize for the wasted time. =( ------------------------------------------------------------------------ [2005-04-18 21:18:30] jj at intelequest dot com k .. took out zend extensions .. C:\temp>php -v PHP 5.0.4 (cli) (built: Mar 31 2005 02:45:48) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies C:\temp>php test_xml.php Warning: domdocument() expects parameter 2 to be long, string given in C:\temp\test_xml.php on line 3 Fatal error: Call to undefined method domdocument::saveXML() in C:\temp\test_xml.php on line 4 still gives an error .. ------------------------------------------------------------------------ [2005-04-18 21:14:35] derick@php.net Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. ------------------------------------------------------------------------ [2005-04-18 21:11:57] jj at intelequest dot com Sorry .. testing with 5.0.4. PHP 5.0.4 (cli) (built: Mar 31 2005 02:45:48) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.7, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.8, Copyright (c) 1998-2004, by Zend Technologies with Zend Debugger v4.0.0, Copyright (c) 1999-2005, by Zend Technologies ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32743 -- Edit this bug report at http://bugs.php.net/?id=32743&edit=1

« previous php.bugs (#77818) next »