1--TEST--
2Bug #45166 (substr() )
3--FILE--
4<?php
5    echo substr('cd', -3) . "\n";
6?>
7--EXPECT--
8cd
9