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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: m at tacker dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 03:01:34 2025 UTC