Code Monkey home page Code Monkey logo

Comments (8)

colinmollenhour avatar colinmollenhour commented on July 30, 2024

I'm using a non-localhost host and PHP 5.4 on several machines with no issues..

from cm_redissession.

mszterlingfsite avatar mszterlingfsite commented on July 30, 2024

Thanks for the reply, do you have any idea why this might happen?
Was wondering if that might be anything in php.ini

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on July 30, 2024

No, what is the result of var_dump(Mage::getConfig()->getNode('global/redis_session/host')) and var_dump(Mage::getConfig()->getNode('global/redis_session')) ?

from cm_redissession.

mszterlingfsite avatar mszterlingfsite commented on July 30, 2024
object(Mage_Core_Model_Config_Element)#105 (1) { [0]=> string(14) "192.168.100.40" } 

object(Mage_Core_Model_Config_Element)#140 (13) { 
["host"]=> string(14) "192.168.100.40" 
["port"]=> string(4) "6381" 
["password"]=> object(Mage_Core_Model_Config_Element)#141 (0) { }
 ["timeout"]=> string(3) "2.5" ["persistent"]=> object(Mage_Core_Model_Config_Element)#104 (0) { }
 ["db"]=> string(1) "0" 
["compression_threshold"]=> string(4) "2048"
 ["compression_lib"]=> string(4) "gzip"
 ["log_level"]=> string(1) "1"
 ["max_concurrency"]=> string(1) "6" 
["break_after_frontend"]=> string(1) "5"
 ["break_after_adminhtml"]=> string(2) "30"
 ["bot_lifetime"]=> string(4) "7200" }

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on July 30, 2024

Beats me.. I would think that an object instance would be a truthy value.. What version of PHP are you running?

from cm_redissession.

mszterlingfsite avatar mszterlingfsite commented on July 30, 2024

PHP 5.4.18 (cli) (built: Aug 19 2013 14:48:39)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator

maybe you should consider

$options = Mage::getConfig()->getNode('global/redis_session');
        if ($options) {
            $options = $options->asArray();
        }

and then use it as array?

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on July 30, 2024

Will consider a pull request, but I still have no idea how the same code evaluates to a different result for you than it does for me.. Have you actually inspected the variables in a debugger?

2013-09-18_1407

from cm_redissession.

mszterlingfsite avatar mszterlingfsite commented on July 30, 2024

Issue is back on production, fresh two servers on Centos 6.4, php 5.4.x and same problem again

from cm_redissession.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.