For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2004 > #28580 [Com]: Typo in documentation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #28580 [Com]: Typo in documentation
Jed At Jed Dot Bz

2004-05-30, 4:35 pm

ID: 28580
Comment by: jed at jed dot bz
Reported By: chruker at tiscali dot dk
Status: Open
Bug Type: Documentation problem
Operating System: All
PHP Version: Irrelevant
New Comment:

It also generates a Warning, but it still might return FALSE.


Previous Comments:
------------------------------------------------------------------------

[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/functi...-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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com