php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67126 apc_cas()cannot convert false to true
Submitted: 2014-04-24 09:21 UTC Modified: 2016-11-18 21:02 UTC
From: qyl189 at gmail dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.4.27 OS: windows 8.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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 - 22 = ?
Subscribe to this entry?

 
 [2014-04-24 09:21 UTC] qyl189 at gmail dot com
Description:
------------
apc_cas() is unable to update value like true or false

Test script:
---------------
apc_store('ss', false);
echo apc_fetch('ss') ? 1: 0;

apc_cas('ss', false, true);
echo apc_fetch('ss')? 1: 0;

Expected result:
----------------
01

Actual result:
--------------
00

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 21:02 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:02 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 23:03:35 2021 UTC