1--TEST--
2Bug #62922: Truncating entire string should result in string
3--FILE--
4<?php
5var_dump(substr("", 0));
6var_dump(substr("a", 1));
7var_dump(substr("ab", 2));
8?>
9--EXPECT--
10string(0) ""
11string(0) ""
12string(0) ""
13