Added an extra test case for PHP-637.

The code was working fine, but a very specific test case doesn't hurt of
course.