Comments (11)
Maybe this is a problem with your PHP version?
from rediska.
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.
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.
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.
i think you have to look this php bug https://bugs.php.net/bug.php?id=34783
from rediska.
I think we should drop ArrayAccess
. Would anyone like to work on a pull request?
from rediska.
Only you! :)
from rediska.
If ppl update to 5.3.4+ this should work: http://docs.php.net/manual/en/arrayaccess.offsetget.php
from rediska.
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.
Different issue – this is not a support forum. ;-)
I replied on the stackoverflow question.
from rediska.
the problem was exactly the same reported in this thread, anyway thank you very much for the solution!
from rediska.
Related Issues (20)
- Variadic write commands support
- Replication and failover strategy for servers HOT 4
- Redis key delete when session expired or Garbase Collection in rediska HOT 3
- Add pipeline for keys, lists, sets, sorted sets and hash
- What is the purpose of a sorted set in session SaveHandler HOT 1
- Add support for installing via Composer
- Add Rediska to Packagist HOT 2
- SADD key member [member ...] Support
- unsubscribe error HOT 8
- Rediska_Serializer_Adapter_Json::unserialize returns same value that was passed in HOT 1
- Rediska getOptions method does not return servers
- Can't read from socket HOT 2
- Not allowed memory - for each with set HOT 1
- работа с Twemproxy
- symfony2 integration
- Redis command suport HOT 2
- Why you add Rediska::EOL after command?
- Got PHP notice " Undefined index: server1 in /vendor/geometria-lab/rediska/library/Rediska/Zend/Cache/Backend/Redis.php on line 673"
- Rediska_Serializer_Adapter_Json::unserialize does not respect decoding options.
- Catch Exception from SaveHandler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rediska.