|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72980 APCu: apcu_fetch() fails to return empty key value
Submitted: 2016-08-30 16:06 UTC Modified: 2018-10-09 19:52 UTC
From: vedad at kajtaz dot net Assigned: nikic (profile)
Status: Closed Package: APC (PECL)
PHP Version: 7.0.10 OS: FreeBSD 10.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
16 + 9 = ?
Subscribe to this entry?

 [2016-08-30 16:06 UTC] vedad at kajtaz dot net
This bug report is related to the apcu 5.1.5 (the bug sumbittion form only provided 'APC' choice).

apcu_fetch('') fails to return empty string key value previously set with apcu_store('', ...). On the other hand, apcu_fetch(['']) does.

Test script:
echo apcu_store('', 'empty') ? 'stored' : 'not stored';
echo PHP_EOL;

Expected result:
array (
  '' => 'empty',

Actual result:
array (
  '' => 'empty',


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 20:57 UTC]
-Summary: apcu_fetch() fails to return empty key value +Summary: APCu: apcu_fetch() fails to return empty key value
 [2018-10-09 19:52 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2018-10-09 19:52 UTC]
Fixed by, which will be part of apcu 5.1.13.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon May 17 20:01:24 2021 UTC