Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis cache class in get method return false for keys with value of empty string #12437

Closed
sr-hosseyni opened this issue Nov 27, 2016 · 1 comment
Assignees
Labels
bug A bug report status: low Low
Milestone

Comments

@sr-hosseyni
Copy link

Questions should go to https://forum.phalconphp.com
Documentation issues should go to https://github.com/phalcon/docs/issues

Expected and Actual Behavior

Describe what you are trying to achieve and what goes wrong.

Provide output if related. Provide coredump if any. Use https://github.com/phalcon/cphalcon/wiki/Generating-a-backtrace as reference

// paste output here

Provide minimal script to reproduce the issue

use \Phalcon\Cache\Backend\Redis;
$r = new Redis();
$r->get('shir'); // shir actually exists in redis with EMPTY string, but this return false

Details

  • Phalcon version: (php --ri phalcon)
    Web framework delivered as a C-extension for PHP
    phalcon => enabled
    Author => Phalcon Team and contributors
    Version => 2.0.13
    Build Date => May 20 2016 22:13:46
    Powered by Zephir => Version 0.9.2a-dev

Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.events => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.orm.column_renaming => On => On
phalcon.orm.not_null_validations => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.enable_literals => On => On
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.ignore_unknown_columns => Off => Off

  • PHP Version: (php -v)
    PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

  • Operating System: Ubuntu/14.04

  • Installation type: installing via package manager

  • Zephir version (if any):-

  • Server: Nginx

  • Other related info (Database, table schema):

@sergeyklay
Copy link
Contributor

Fixed in the 3.0.x branch.

@sergeyklay sergeyklay self-assigned this Dec 24, 2016
@niden niden added bug A bug report status: low Low and removed Bug - Low labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: low Low
Projects
None yet
Development

No branches or pull requests

3 participants