Fix Zend strrpos compatibility

Fixes issue #1564

Added test to match Zends current output, doesn't fix any failing Zend tests.