#32397 [Opn->Bgs]: new DOMDocument('1.0', 'iso-8859-1'); fails: "expects parameter 2 to be long"
| From: | tony2001@php.net | Date: | Mon, 21 Mar 2005 18:42:46 +0000 |
| Subject: | #32397 [Opn->Bgs]: new DOMDocument('1.0', 'iso-8859-1'); fails: "expects parameter 2 to be long" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75673@lists.php.net to get a copy of this message | ||
ID: 32397
Updated by: tony2001@php.net
Reported By: m at tacker dot org
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: Gentoo Linux
PHP Version: 4.3.9
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
This documentation tells about DOM extension (that is available since
PHP 5.0) and has nothing to do with DOM XML.
Previous Comments:
------------------------------------------------------------------------
[2005-03-21 19:34:05] m at tacker dot org
Description:
------------
$XML = new DOMDocument('1.0', 'iso-8859-1');
produces a warning:
"Warning: domdocument() expects parameter 2 to be long, string given"
Expected result:
----------------
DOMDocument() should accept strings as second argument, as stated in
the docs:
http://de3.php.net/manual/en/function.dom-domdocument-construct.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32397&edit=1