PHP 8, sharding cluster, mongos and serverSelectionTryOnce

Hello,

I want to use mongos with PHP 8 for a cluster containing multiple shards (and containing zone) but I have an error: No suitable servers found (serverSelectionTryOnce set).

It’s working good with mongosh connected to mongos, working good when I connect Php directly to a sharded instance, but not working when I connect Php to mongos.

Is Php mongo driver capable to connect to mongos ? doc said “serverSelectionTryOnce” incompatible with mongos or multithreaded drivers, but I suppose I can’t change this value in the Php Driver.

PHP 8.1.7 (cli) (built: Jul  3 2022 01:49:07) (NTS) used with nginx
libmongoc bundled version => 1.20.0
libmongocrypt bundled version => 1.3.0

Thanks !