php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77596 Incorrect return type in some APUc function prototype
Submitted: 2019-02-11 00:06 UTC Modified: 2019-02-11 12:43 UTC
From: jluc at no-log dot org Assigned: cmb (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2019-02-11 00:06 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-11 01:09 UTC] girgias@php.net
-Summary: bad return type in function prototype +Summary: Incorrect return type in some APUc function prototype -Status: Open +Status: Verified -Package: Documentation problem +Package: APC
 [2019-02-11 01:09 UTC] girgias@php.net
Thanks for the bug report.
 [2019-02-11 12:42 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346800
Log: Fix ##77596: Incorrect return type in some APUc function prototype
 [2019-02-11 12:43 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-02-11 12:43 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC