PHP-1226: Add support for the new listIndexes command in 2.7.5

Some of this is also in #741 , which should be merged first.
Opportunity to use `ZEND_STRS()` here?