Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2023 | minor | always | 09-24-07 01:00 | 09-24-07 17:04 | |
|
|||||
Reporter: | krogh | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.2 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.3 | ||
|
|||||
Summary: | 0002023: 0 isn't handled as a BooleanValue | ||||
Description: |
Hello, trying to install joomla 1.0.13 on glassfish / quercus, I had some problem with xml handling (domit lib used by joomla). It appears xmlOptionCaseFolding didn't reflect the corresponding option when set using 0 (0 & 1 should be hanlded as boolean depending of the context). Buggy php code: xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); Working version: xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false); /quercus/src/com/caucho/quercus/lib/xml/Xml.java case XmlModule.XML_OPTION_CASE_FOLDING: if (value instanceof BooleanValue) { _xmlOptionCaseFolding = value.toBoolean(); return true; } else { return false; } I saw similar code many times to handle booleans, mabye it should be replaced by an helper that also check number values (0 => false, any other value => true). |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|