From: m at tacker dot org Operating system: Gentoo Linux PHP version: 4.3.9 PHP Bug Type: DOM XML related Bug description: new DOMDocument('1.0', 'iso-8859-1'); fails: "expects parameter 2 to be long"
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 bug report at http://bugs.php.net/?id=32397&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32397&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32397&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32397&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32397&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32397&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32397&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32397&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32397&r=support Expected behavior: http://bugs.php.net/fix.php?id=32397&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32397&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32397&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32397&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32397&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32397&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32397&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32397&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32397&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32397&r=mysqlcfg