Add a testcase for PHP-609

Seems to be working fine.
Merged pull request #276