#27479 [NEW]: Dont report errors on domxml_open_mem

2004-03-03 Thread pet at iv dot ua
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 = 'texttt/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=27479edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27479r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27479r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=27479r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=27479r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27479r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=27479r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=27479r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=27479r=support
Expected behavior:  http://bugs.php.net/fix.php?id=27479r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=27479r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=27479r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=27479r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27479r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=27479r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=27479r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=27479r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27479r=float


#27479 [Fbk-Opn]: Dont report errors on domxml_open_mem

2004-03-03 Thread pet at iv dot ua
 ID:   27479
 User updated by:  pet at iv dot ua
 Reported By:  pet at iv dot ua
-Status:   Feedback
+Status:   Open
 Bug Type: DOM XML related
 Operating System: FreeBSD 5.2.1
 PHP Version:  4.3.4
 New Comment:

DOM/XML API Version  20020815  

libxml Version  20607  



Configure Command

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
'--with-regex=php' '--disable-cli' '--enable-ctype'
'--with-dom=/usr/local' '--with-dom-xslt=/usr/local'
'--with-dom-exslt=/usr/local' '--with-iconv-dir=/usr/local'
'--with-iconv=/usr/local' '--with-mnogosearch=/usr/local'
'--with-mysql=/usr/local' '--enable-overload' '--with-pcre-regex=yes'
'--enable-posix' '--enable-tokenizer' '--with-expat-dir=/usr/local'
'--enable-xml' '--enable-xslt' '--with-xslt-sablot=/usr/local'
'--with-zlib=yes' '--with-apxs2=/usr/local/sbin/apxs'
'--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'


Previous Comments:


[2004-03-03 06:10:45] [EMAIL PROTECTED]

Works for me.



Which libxml2 version are you using (phpinfo() should 

tell you that)?



chregu



[2004-03-03 06:02:56] pet at iv dot ua

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 = 'texttt/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 this bug report at http://bugs.php.net/?id=27479edit=1


#27479 [Opn]: Dont report errors on domxml_open_mem

2004-03-03 Thread pet at iv dot ua
 ID:   27479
 User updated by:  pet at iv dot ua
 Reported By:  pet at iv dot ua
 Status:   Open
 Bug Type: DOM XML related
 Operating System: FreeBSD 5.2.1
 PHP Version:  4.3.4
 New Comment:

Sorry.

xml must be:



$xml = '!DOCTYPE test [ !ELEMENT test (tt)* 

!ELEMENT tt (#PCDATA) ]testtt/test';


Previous Comments:


[2004-03-03 07:34:44] pet at iv dot ua

DOM/XML API Version  20020815  

libxml Version  20607  



Configure Command

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
'--with-regex=php' '--disable-cli' '--enable-ctype'
'--with-dom=/usr/local' '--with-dom-xslt=/usr/local'
'--with-dom-exslt=/usr/local' '--with-iconv-dir=/usr/local'
'--with-iconv=/usr/local' '--with-mnogosearch=/usr/local'
'--with-mysql=/usr/local' '--enable-overload' '--with-pcre-regex=yes'
'--enable-posix' '--enable-tokenizer' '--with-expat-dir=/usr/local'
'--enable-xml' '--enable-xslt' '--with-xslt-sablot=/usr/local'
'--with-zlib=yes' '--with-apxs2=/usr/local/sbin/apxs'
'--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'



[2004-03-03 06:10:45] [EMAIL PROTECTED]

Works for me.



Which libxml2 version are you using (phpinfo() should 

tell you that)?



chregu



[2004-03-03 06:02:56] pet at iv dot ua

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 = 'texttt/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 this bug report at http://bugs.php.net/?id=27479edit=1