Doc #78580 [Opn->Ver]: apcu_dec, apcu_inc: missing parameter
| From: | cmb@php.net | Date: | Sat, 21 Sep 2019 15:25:52 +0000 |
| Subject: | Doc #78580 [Opn->Ver]: apcu_dec, apcu_inc: missing parameter | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16958@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78580&edit=1
ID: 78580
Updated by: cmb@php.net
Reported by: fabien dot villepinte at gmail dot com
Summary: apcu_dec, apcu_inc: missing parameter
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: Unknown/Other Function
+Package: APC
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2019-09-21 13:21:30] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78580&edit=1