Git Product home page Git Product logo

Comments (11)

till avatar till commented on September 26, 2024

Maybe this is a problem with your PHP version?

from rediska.

ruflin avatar ruflin commented on September 26, 2024

Our php version is 5.3.8. I googled for this issue with ArrayAccess and PHP 5.3. All I found were issues with 5.1, but not really related to this problem. Any other ideas?

from rediska.

till avatar till commented on September 26, 2024

I'm not sure – I googled and found stackoverflow posts discussing issues with ArrayAccess, but I didn't have time to dig into it. It seems like the issues reported with 5.1 are probably still present today. If I'm not mistaken, we could easily stop using ArrayAccess too. It's more or less a convenience API. Maybe I'm wrong.

Maybe @shumkov can weigh in.

Attaching some links:
https://github.com/Shumkov/Rediska/blob/master/library/Rediska/Zend/Session/SaveHandler/Redis.php#L137
https://github.com/Shumkov/Rediska/blob/master/library/Rediska/Key/SortedSet.php#L263-L267

from rediska.

ruflin avatar ruflin commented on September 26, 2024

I also checked all the reports on stackoverflow. But all are related to PHP 5.1 and nested arrays. There still seems to be a nested/multidimensional array issue with ArrayAccess, but in the case here it is just a simple 1 dimensional array access.

Strange is also, that it happens only once or twice in more than 100'000 Redis requests ...

from rediska.

nike-17 avatar nike-17 commented on September 26, 2024

i think you have to look this php bug https://bugs.php.net/bug.php?id=34783

from rediska.

till avatar till commented on September 26, 2024

I think we should drop ArrayAccess. Would anyone like to work on a pull request?

from rediska.

shumkov avatar shumkov commented on September 26, 2024

Only you! :)

from rediska.

till avatar till commented on September 26, 2024

If ppl update to 5.3.4+ this should work: http://docs.php.net/manual/en/arrayaccess.offsetget.php

from rediska.

davidemarrone avatar davidemarrone commented on September 26, 2024

I still have this problem with PHP 5.3.14 it seems related to APC
http://stackoverflow.com/questions/7283604/php-apc-zend-classes-cannot-be-found
I didn't find any solution

from rediska.

till avatar till commented on September 26, 2024

Different issue – this is not a support forum. ;-)

I replied on the stackoverflow question.

from rediska.

davidemarrone avatar davidemarrone commented on September 26, 2024

the problem was exactly the same reported in this thread, anyway thank you very much for the solution!

from rediska.

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.