note 84476 added to domdocument.construct

From: Date: Wed, 16 Jul 2008 02:09:39 +0000
Subject: note 84476 added to domdocument.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-141553@lists.php.net to get a copy of this message
If you get the error message "domdocument::domdocument() expects parameter 2 to be long, string given" for a code sample like this: $dom = new DOMDocument('1.0', 'UTF-8'); $dom->xmlStandalone = false; echo $dom->saveXML(); which is obviously correct if you compare the constructor signature: __construct ([ string $version [, string $encoding ]] ) make sure you're not overwritting this dom library by another (f.e. extension=php_domxml.dll in php.ini). XAMPP f.e. delivers its standard version with php_domxml.dll which ends up in this error message ---- Server IP: 69.147.83.197 Probable Submitter: 71.142.161.130 ---- Manual Page -- http://www.php.net/manual/en/domdocument.construct.php Edit -- https://master.php.net/note/edit/84476 Del: integrated -- https://master.php.net/note/delete/84476/integrated Del: useless -- https://master.php.net/note/delete/84476/useless Del: bad code -- https://master.php.net/note/delete/84476/bad+code Del: spam -- https://master.php.net/note/delete/84476/spam Del: non-english -- https://master.php.net/note/delete/84476/non-english Del: in docs -- https://master.php.net/note/delete/84476/in+docs Del: other reasons-- https://master.php.net/note/delete/84476 Reject -- https://master.php.net/note/reject/84476 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141553) next »