Skip to content

Commit ba521ef

Browse files
committed
fix
1 parent 6821f2b commit ba521ef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/incrdecr_64.phpt

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ if (PHP_INT_SIZE < 8) {
1111
include dirname (__FILE__) . '/config.inc';
1212
$m = memc_get_instance ();
1313

14+
echo "Normal\n";
15+
$m->set('foo', 1);
16+
var_dump($m->get('foo'));
17+
1418
echo "Enormous offset 64-bit\n";
15-
$m->increment('foo', 0x7ff000000);
19+
$m->increment('foo', 0x100000000);
1620
var_dump($m->get('foo'));
1721

18-
$m->decrement('foo', 0x7f000000);
22+
$m->decrement('foo', 0x100000000);
1923
var_dump($m->get('foo'));
2024

2125
echo "Enormous offset 64-bit by key\n";
@@ -26,6 +30,8 @@ $m->decrementByKey('foo', 'foo', 0x10000000);
2630
var_dump($m->get('foo'));
2731

2832
--EXPECT--
33+
Normal
34+
int(1)
2935
Enormous offset 64-bit
3036
int(4294967296)
3137
int(1)

0 commit comments

Comments
 (0)