summaryrefslogtreecommitdiff
path: root/Zend/tests/string_offset_int_min_max.phpt
blob: b8bd4bcd6bb3e5c322205ca325ab964c0f4e7251 (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--
Notice: Uninitialized string offset: %d in %s on line %d
string(0) ""

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