From:             pet at iv dot ua
Operating system: FreeBSD 5.2.1
PHP version:      4.3.4
PHP Bug Type:     DOM XML related
Bug description:  Dont report errors on domxml_open_mem

Description:
------------
Its undocumented arguments of function domxml_open_mem

but on previous version php all work.



Note: no return "well-formed" errors. 

If document not valid errors returned

Reproduce code:
---------------
//not well-formed document

$xml = '<text><tt></test>';



$dom = domxml_open_mem($xml, DOMXML_LOAD_VALIDATING, $Errors);



if(!Empty($Errors)){

        echo "Error found"

}else{

        echo "Document valid"

}

Expected result:
----------------
Error found

Actual result:
--------------
Document valid

-- 
Edit bug report at http://bugs.php.net/?id=27479&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27479&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27479&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27479&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27479&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27479&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27479&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27479&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27479&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27479&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27479&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27479&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27479&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27479&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27479&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27479&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27479&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27479&r=float

Reply via email to