1--TEST--
2substr() with PHP_INT_MIN offset or length
3--FILE--
4<?php
5var_dump(substr('x', PHP_INT_MIN));
6var_dump(substr('x', 0, PHP_INT_MIN));
7?>
8--EXPECT--
9string(1) "x"
10string(0) ""
11