|Anonymous | Login | Signup for a new account||12-19-2018 08:38 PST|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0002353||[Quercus]||minor||always||01-22-08 08:17||01-23-08 11:56|
(rep by Ries van Twisk)
when using xml_parse_into_struct I noticed that I get an java
exception on empty or mis formed XML values,
this include an empty strings.
(Latest version of resin from SVN):
Below the mail with a PHP with various options to repeat
The solve this issue the best thing is not to throw an exception but
return 0, this will make the parse_into_struct more behave like PP.
I also did notice that PHP will never throw an exception even when I
put the parse_into_struct function in a
try/catch block. PHP simply returns 0 on invalid XML's
I have two notices:
1) PHP will parse an XML correctly even though the XML is invalid!!
This can be seen in test 3,5,7,8
2) levels are of the type float in resin this should be integer.
For both notices I don't think this is a great deal. For one thing if
a XML is send to PHP, then it should be good to start off with (except
empty strings may be).
Floats and integers can be compared easy in PHP.... However I am not
sure if any PHP script does a isFloat() on that value.
Quercus will now fail silently on invalid xml. Quercus still returns "levels" as floats because that is how PHP does it.
|01-22-08 08:17||ferg||New Issue|
|01-23-08 11:36||nam||Status||new => assigned|
|01-23-08 11:36||nam||Assigned To||=> nam|
|01-23-08 11:56||nam||Status||assigned => closed|
|01-23-08 11:56||nam||Note Added: 0002669|
|01-23-08 11:56||nam||Resolution||open => fixed|
|01-23-08 11:56||nam||Fixed in Version||=> 3.1.5|
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.|
26 unique queries executed.