Bug #72376 [NEW]: apcu_fetch fails on array with string references
From: martijn dot otto at copernica dot com
Operating system: ubuntu 16.04
PHP version: 7.0.7
Package: PECL
Bug Type: Bug
Bug description:apcu_fetch fails on array with string references
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=72376&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72376&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72376&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72376&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72376&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72376&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72376&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72376&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72376&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72376&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72376&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72376&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72376&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72376&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72376&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72376&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72376&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72376&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72376&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72376&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72376&r=mysqlcfg
Thread (1 message)
- martijn dot otto at copernica dot com