summaryrefslogtreecommitdiff
path: root/Zend/tests/string_offset_int_min_max.phpt
blob: 008a55161c15a5f87cb5f3deb068859205cc51ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Accessing PHP_INT_MAX and PHP_INT_MIN as string offsets
--FILE--
<?php

$str = "";
var_dump($str[PHP_INT_MAX]);
var_dump($str[PHP_INT_MIN]);

?>
--EXPECTF--
Warning: Uninitialized string offset %d in %s on line %d
string(0) ""

Warning: Uninitialized string offset -%d in %s on line %d
string(0) ""