|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vedad at kajtaz dot net
New email:
PHP Version: OS:


 [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-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 09:03:38 2022 UTC