[DCOM-128] RedisCache uses IGBINARY which is not always available Created: 20/Oct/12  Updated: 03/Dec/13  Resolved: 03/Dec/13

Status: Resolved
Project: Doctrine Common
Component/s: Caching
Affects Version/s: 2.3
Fix Version/s: 2.4
Security Level: All

Type: New Feature Priority: Minor
Reporter: Sander Marechal Assignee: Marco Pivetta
Resolution: Fixed Votes: 0
Labels: None


The RedisCache uses Redis::SERIALIZER_IGBINARY. See https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Cache/RedisCache.php line 47.

The problem is that the php Redis extension can be compiled without IGBINARY support. In that case, this code causes a fatal error because the constant does not exist.

The DotDeb package of php5-redis (often used on Debian systems) for example comes compiled without IGBINARY support.

The code should probably check if the constant exists. If not, the default to Redis::SERIALIZER_PHP

Comment by Peter Mitchell [ 24/Jun/13 ]

This appears like it will be fixed when 2.4 is released https://github.com/doctrine/cache/blob/master/lib/Doctrine/Common/Cache/RedisCache.php#L128

Comment by Marco Pivetta [ 03/Dec/13 ]

Already fixed in master

Generated at Tue Dec 01 18:50:30 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.