From: jury at hightech dot lv
Operating system: Linux
PHP version: 4.3.4
PHP Bug Type: DOM XML related
Bug description: domxml_new_doc didn't create new document class
Description:
------------
When PHP CGI extension call function domxml_new_doc("1.0")
it show an error without returning an object.
Reproduce code:
---------------
#!/usr/local/bin/php_new -q
<?
$doc = domxml_new_xmldoc("1.0");
echo "Dom Object: $doc\n";
?>
Expected result:
----------------
"Dom Object: Object"
Actual result:
--------------
PHP Warning: domxml_new_xmldoc(): Unsupported node type: 0
in /tmp/temp/test.php on line 3
<br />
<b>Warning</b>: domxml_new_xmldoc(): Unsupported node type: 0
in <b>/tmp/temp/test.php</b> on line <b>3</b><br />
PHP Warning: domxml_new_xmldoc(): Cannot create required DOM object in
/tmp/temp/test.php on line 3
<br />
<b>Warning</b>: domxml_new_xmldoc(): Cannot create required DOM object in
<b>/tmp/temp/test.php</b> on line <b>3</b><br />
Dom Object:
--
Edit bug report at http://bugs.php.net/?id=26530&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26530&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26530&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26530&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26530&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26530&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26530&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26530&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26530&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26530&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26530&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26530&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26530&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26530&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26530&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26530&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26530&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26530&r=float