php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78580 apcu_dec, apcu_inc: missing parameter
Submitted: 2019-09-21 13:21 UTC Modified: 2019-09-21 15:26 UTC
From: fabien dot villepinte at gmail dot com Assigned: cmb (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2019-09-21 13:21 UTC] fabien dot villepinte at gmail dot com
Description:
------------
Since PHP-5.1.12 apcu_dec() and apcu_inc() expect an optional 4th parameter.
It is described in the parameters section, but it is missing in the description section.
It is not mentionned in the documentation but according the source code it should be an integer.

https://github.com/krakjoe/apcu/blob/004c69a195bfcb5b35895ed56a9f85118cad01d9/php_apc.c#L540

See:
- https://www.php.net/manual/en/function.apcu-dec.php
- https://www.php.net/manual/en/function.apcu-inc.php


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-21 15:25 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Unknown/Other Function +Package: APC -Assigned To: +Assigned To: cmb
 [2019-09-21 15:26 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348032
Log: Fix #78580: apcu_dec, apcu_inc: missing parameter
 [2019-09-21 15:26 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2019-09-21 15:26 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.
 [2019-09-21 15:30 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5b197caad112ab6468629858c1c769cf0f2f0d16
Log: Fix #78580: apcu_dec, apcu_inc: missing parameter
 [2020-02-07 06:04 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a442a3bde62f9e40150cdc2cae0e6854c57c2f7f
Log: Fix #78580: apcu_dec, apcu_inc: missing parameter
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 00:01:23 2021 UTC