Skip to content

Commit 80f22ab

Browse files
committed
test shm_attach /w PHP_INT_MAX
1 parent 36304a3 commit 80f22ab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ext/sysvshm/tests/bug72858.phpt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ if (substr(PHP_OS, 0, 3) != "WIN") { print "skip windows only"; }
88
--FILE--
99
<?php
1010

11-
$v1=100;
12-
$v2=0xffffffff / 4 + 0x1337;
13-
shm_attach($v1,$v2);
11+
$v1 = 100;
12+
$v2 = PHP_INT_MAX;
13+
shm_attach($v1, $v2);
1414

1515
?>
16-
==DONE==
1716
--EXPECTF--
18-
==DONE==
17+
Warning: shm_attach(): Failed for key 0x64: No error in %s on line %d

0 commit comments

Comments
 (0)