colinmollenhour / Cm_Cache_Backend_Redis

A Zend_Cache backend for Redis with full support for tags (works great with Magento)
Other
390 stars 142 forks source link

"save" produce PHP Notice if there is not free memory in Redis #150

Open kandy opened 4 years ago

kandy commented 4 years ago

Steps:


WIG:
  `PHP Notice:  Undefined offset: 5 in /app/vendor/colinmollenhour/credis/Client.php on line 963`
WIE:
   save will return false or exception
colinmollenhour commented 4 years ago

On master line 963 is a comment.. Are you using the latest version?

https://github.com/colinmollenhour/credis/blob/master/Client.php#L963

kandy commented 4 years ago

I test on version 1.10.6 of colinmollenhour/cache-backend-redis package On master, it will be https://github.com/colinmollenhour/credis/blob/master/Client.php#L991 line

colinmollenhour commented 4 years ago

Thanks. The answer is not obvious to me so this would require further investigation which I don't know when I'd be able to do. I'd be happy to review a PR if you can find the issue, or if you can at least provide a screenshot of a debugger at this step I might be able to help more.

Xon commented 4 years ago

What version of Redis?

kandy commented 4 years ago

@xon redis_version:5.0.7