Skip to content

Commit 2b0cda8

Browse files
add compatibility for PHP 5.3
1 parent 8bc49f0 commit 2b0cda8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/EnumTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ public function testSerialize()
262262
public function testUnserialize()
263263
{
264264
/* @var $value EnumFixture */
265-
$value = unserialize(hex2bin(
265+
$value = unserialize(pack(
266+
'H*',
266267
'4f3a33303a224d79434c6162735c54657374735c456e756d5c456e756d46697874757265223a313a7b733a383a22002a0076616c7565223b733a333a22666f6f223b7d'
267268
));
268269

0 commit comments

Comments
 (0)