php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32397 new DOMDocument('1.0', 'iso-8859-1'); fails: "expects parameter 2 to be long"
Submitted: 2005-03-21 19:34 UTC Modified: 2005-03-21 19:42 UTC
From: m at tacker dot org Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.9 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2005-03-21 19:34 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-21 19:42 UTC] tony2001@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC