PHP-1225: Add support for the new listCollections command in 2.7.5.

To be more robust, I think this condition could read:

```
Z_TYPE_PP(collection_name) != IS_STRING ||
strchr(Z_STRVAL_PP(collection_name), '$')
```

This would skip any non-string values (just to be defensive) and strings with a `$` in them.