summaryrefslogtreecommitdiff
path: root/ext/sysvshm/tests/bug72858.phpt
blob: 793099f8930618c7ac4ae753f74648f741dc4fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #72858 shm_attach null dereference
--SKIPIF--
<?php
if (!extension_loaded("sysvshm")){ print 'skip'; }
if (4 < PHP_INT_SIZE) { print "skip 32-bit only"; }
if (substr(PHP_OS, 0, 3) != "WIN") { print "skip windows only"; }
?>
--FILE--
<?php

$v1=100;
$v2=0xffffffff / 4 + 0x1337;
shm_attach($v1,$v2);

?>
==DONE==
--EXPECTF--	
Warning: shm_attach(): failed for key 0x64: Not enough space in %s on line %d
==DONE==