1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/ext/sysvshm/tests/bug72858.phpt
T
Máté Kocsis d1764ca330 Make error messages more consistent by fixing capitalization
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00

19 lines
406 B
PHP

--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);
?>
--EXPECTF--
Warning: shm_attach(): Failed for key 0x64: Not enough space in %s on line %d