php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71295 Success variable not set on wincache_ucache_get function
Submitted: 2016-01-06 16:40 UTC Modified: 2016-02-10 23:47 UTC
From: camcima at hotmail dot com Assigned: ericsten (profile)
Status: Closed Package: WinCache (PECL)
PHP Version: 7.0.1 OS: Windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: camcima at hotmail dot com
New email:
PHP Version: OS:

 

 [2016-01-06 16:40 UTC] camcima at hotmail dot com
Description:
------------
When getting a value from cache, the optional parameter $success is not being set and it stays null, for both successful and unsuccessful operations.

Test script:
---------------
<?php

$setResult = wincache_ucache_set('foo', 'bar');
$successfulGetResult = wincache_ucache_get('foo', $successShouldBeTrue);
$unsuccessfulGetResult = wincache_ucache_get('foz', $successShouldBeFalse);

echo '$setResult = ' . var_export($setResult, true) . PHP_EOL;
echo '$successfulGetResult = ' . var_export($successfulGetResult, true) . PHP_EOL;
echo '$successShouldBeTrue = ' . var_export($successShouldBeTrue, true) . PHP_EOL;
echo '$unsuccessfulGetResult = ' . var_export($unsuccessfulGetResult, true) . PHP_EOL;
echo '$successShouldBeFalse = ' . var_export($successShouldBeFalse, true) . PHP_EOL;


Expected result:
----------------
$setResult = true
$successfulGetResult = 'bar'
$successShouldBeTrue = true
$unsuccessfulGetResult = false
$successShouldBeFalse = false

Actual result:
--------------
$setResult = true
$successfulGetResult = 'bar'
$successShouldBeTrue = NULL
$unsuccessfulGetResult = false
$successShouldBeFalse = NULL

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-27 17:03 UTC] deivid dot garcia dot garcia at gmail dot com
This should be solved in the latest release 2.0.0.5
 [2016-02-10 23:47 UTC] ericsten@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ericsten
 [2016-02-10 23:47 UTC] ericsten@php.net
Fixed in WinCache 2.0.0.5
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 16:01:36 2025 UTC