Doc #70890 [Com]: Invalid "Return values" section for enchant_dict_add_to_session documentaion

From: Date: Mon, 16 Nov 2015 15:39:02 +0000
Subject: Doc #70890 [Com]: Invalid "Return values" section for enchant_dict_add_to_session documentaion
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12865@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70890&edit=1 ID: 70890 Comment by: marcosptf at yahoo dot com dot br Reported by: justpusher at gmail dot com Summary: Invalid "Return values" section for enchant_dict_add_to_session documentaion Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: 5.5.30 Block user comment: N Private report: N New Comment: you are totally right! recently i wrote a test that don't expect true or false like on doc said, there are waiting null value because this function is a void. https://github.com/php/php-src/blob/250938e2d35fc54161a18167b7901c5e3b574371/ext/enchant/tests/dict_add_to_session.phpt#L25 congratulations, you saw one thing that many peoples maybe have seen but don't pay attencion! :D Previous Comments: ------------------------------------------------------------------------ [2015-11-11 12:36:27] justpusher at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.enchant-dict-add-to-session --- For enchant_dict_add_to_session function, documentation says: Return Values Returns TRUE on success or FALSE on failure. Actually function seems to return no value. This corresponds to description: void enchant_dict_add_to_session ( resource $dict , string $word ) The translations are wrong, too. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70890&edit=1

« previous php.doc.bugs (#12865) next »