Doc #77596 [Opn->Ver]: Incorrect return type in some APUc function prototype
| From: | girgias@php.net | Date: | Mon, 11 Feb 2019 01:09:10 +0000 |
| Subject: | Doc #77596 [Opn->Ver]: Incorrect return type in some APUc function prototype | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16397@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77596&edit=1
ID: 77596
Updated by: girgias@php.net
Reported by: jluc at no-log dot org
-Summary: bad return type in function prototype
+Summary: Incorrect return type in some APUc function
prototype
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: Documentation problem
+Package: APC
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Thanks for the bug report.
Previous Comments:
------------------------------------------------------------------------
[2019-02-11 00:06:06] jluc at no-log dot org
Description:
------------
---
From manual page: https://php.net/apcuiterator.next
AND From manual page: http://php.net/manual/fr/apcuiterator.valid.php
---
Both ->next() and ->valid() return a boolean. « Returns TRUE if the current iterator
position is valid, otherwise FALSE. » or "in case of success".
But the documentation describe them with a 'void' return :
- public APCUIterator::valid ( void ) : void
- public APCUIterator::next ( void ) : void
Expected result:
----------------
- public APCUIterator::valid ( void ) : bool
- public APCUIterator::next ( void ) : bool
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77596&edit=1