|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-18 20:57 UTC] kalle@php.net
-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] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2018-10-09 19:52 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Description: ------------ 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; var_export(apcu_fetch('')); var_export(apcu_fetch([''])); Expected result: ---------------- stored 'empty' array ( '' => 'empty', ) Actual result: -------------- stored false array ( '' => 'empty', )