[feature/crypto] Fix tests for PHP version < 5.3.7

PHPBB3-xxxxx