ID: 28580 Updated by: [EMAIL PROTECTED] Reported By: chruker at tiscali dot dk Status: Open Bug Type: Documentation problem Operating System: All PHP Version: Irrelevant New Comment:
It should only print <br> if the function returns false, so I would not be surprised... Previous Comments: ------------------------------------------------------------------------ [2004-05-30 23:19:45] chruker at tiscali dot dk I just tried: echo xml_parser_get_option($xml, 1241243243)."<BR>"; but it doesn't print anything at all. ------------------------------------------------------------------------ [2004-05-30 21:48:23] jed at jed dot bz It also generates a Warning, but it still might return FALSE. ------------------------------------------------------------------------ [2004-05-30 21:46:11] jed at jed dot bz Although I was able to find this "typo" in the documentation, I have some doubts it is a typo. If you submit a bogus 'option' to xml_parser_get_option() it might return FALSE if that option isn't really an option. For example: $x = xml_parser_get_option($xml, 135971923752512); May return FALSE because there is no option that *can be set* by that number. Just a thought. ------------------------------------------------------------------------ [2004-05-30 17:52:25] chruker at tiscali dot dk Direct link to the page in the online documentation: http://www.php.net/manual/en/function.xml-parser-get-option.php ------------------------------------------------------------------------ [2004-05-30 17:48:57] chruker at tiscali dot dk Description: ------------ Hi On the page describing the xml_parser_get_option function there is a typo in the documentation. Its the line reading: 'This function returns FALSE if parser does not refer to a valid parser, or if the option could not be set. Else the option's value is returned.' The typo is this part: 'or if the option could not be set.' I don't assume that a *get_option function actually sets an option :-) Expected result: ---------------- I don't know if the code returns false if the option isn't set or doesn't exists. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28580&edit=1