Closed (fixed)
Project:
Redis
Version:
7.x-1.0-alpha5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Aug 2011 at 12:46 UTC
Updated:
22 May 2014 at 22:07 UTC
Jump to comment: Most recent
In some cases when path is not exiting ie it should return 404 the key for that path 'cache_menu:menu_item:hash:serialized' , where hash is the hashed path returns an empty string. This confuses the output and throws error like:
Notice: Uninitialized string offset: 0 in menu_get_object() (line 956 of /home/vivek/projects/cse/work/iep/public_html/includes/menu.inc).
This can be fixed if the line number 27 in the file lib/Redis/Cache/Predis.php is changed from :
if (!isset($serialized)) {
to :
if (empty($serialized)) {
Comments
Comment #1
pounardIndeed, I can reproduce this bug. Thanks for reporting.
I might not fix the bug the way you said, because the "serialized" value test here serve another purposes. I will do some debugging.
Comment #2
pounardFixed in 7.x-1.0-alpha6, this release will appear shortly.