Fixed FR #67915 - Improve strrchr()

This addresses [FR 67915](https://bugs.php.net/bug.php?id=67915).

* Added optional third argument to strrchr() to select the part before the match
* Updated error test cases
* Added test cases for new behaviour