php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72376 APCu: apcu_fetch fails on array with string references
Submitted: 2016-06-10 10:48 UTC Modified: 2017-10-24 08:47 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: martijn dot otto at copernica dot com Assigned:
Status: Open Package: APC (PECL)
PHP Version: 7.0.7 OS: ubuntu 16.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-06-10 10:48 UTC] martijn dot otto at copernica dot com
Description:
------------
When apcu_fetch is called with an array containing a reference to a string it fails with the following message:

Warning: apcu_fetch(): apc_fetch() expects a string or array of strings. in php shell code on line 1

Test script:
---------------
$keys = [ 'a', 'b' ];
array_walk($keys, function(&$item) {});
apcu_fetch($keys);

Expected result:
----------------
I expect to get an array with found keys and values.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 08:47 UTC] kalle@php.net
-Summary: apcu_fetch fails on array with string references +Summary: APCu: apcu_fetch fails on array with string references -Package: PECL +Package: APC
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC