Php mongo uses aggregate to aggregate local reports of errors. is it normal on the server?

  question

1. Local mongo Database Version图片描述

2. server mongo version
图片描述

3. Local PHP Version
图片描述
4. Server php Version
图片描述
3. When the same version of the same code uses aggregate aggregation, a local error is reported:
127.0.0.1:27017: The ‘cursor’ option is required, except for aggregation explain
It is true that everything is normal on the server.
4. The code is as follows:

$this->_m    = new Mongo('mongodb://127.0.0.1:27017');
 $db = $this->_m->selectDB("qdgame");
 $collection_user = $db->selectCollection("user");  //user table
 $option = array(
 Array ('$ match' = > array ('_ id' = > array ('$ in' = > $ ids)),//query criteria
 Array ('$ group' = > array ('_ id' = > null),//grouped by field.
 Gold' = > array ('$ sum' = >' $ gold'),//sum fields
 Ruby' = > array ('$ sum' = >' $ ruby'),//summed fields
 Coupon' = > array ('$ sum' = >' $ Coupon'),//sum field
 );
 $users_info = $collection_user->aggregate($option);

Who is the great god to give some advice on what this is like, is it a version problem?

The problem has been solved, but the problem with mongodb version is not the problem with php version. I use mongo3.5.9 locally and mongo3.2.7 on the server, because cursors must be added above the new version of mongo3.5, and cursors are not required below version 3.5.
Parameter 2 of aggregate () is the cursor option, and the initial batch size of batchSize<int > is 0.

$this->_m    = new Mongo('mongodb://127.0.0.1:27017');
 $db = $this->_m->selectDB("qdgame");
 $collection_user = $db->selectCollection("user");  //user table
 $option = array(
 Array ('$ match' = > array ('_ id' = > array ('$ in' = > $ ids)),//query criteria
 Array ('$ group' = > array ('_ id' = > null),//grouped by field.
 Gold' = > array ('$ sum' = >' $ gold'),//sum fields
 Ruby' = > array ('$ sum' = >' $ ruby'),//summed fields
 Coupon' = > array ('$ sum' = >' $ Coupon'),//sum field
 );
 $users_info = $collection_user->aggregate($option,[ "cursor" => [ "batchSize" => 0 ] ]);