@@ -1173,35 +1173,6 @@ php_phongo_server_description_type_t php_phongo_server_description_type(mongoc_s
11731173 return PHONGO_SERVER_UNKNOWN ;
11741174}
11751175
1176- bool php_phongo_server_description_to_zval (zval * retval , mongoc_server_description_t * sd ) /* {{{ */
1177- {
1178- mongoc_host_list_t * host = mongoc_server_description_host (sd );
1179- const bson_t * hello_response = mongoc_server_description_hello_response (sd );
1180- 1181- array_init (retval );
1182- 1183- ADD_ASSOC_STRING (retval , "host" , host -> host );
1184- ADD_ASSOC_LONG_EX (retval , "port" , host -> port );
1185- ADD_ASSOC_LONG_EX (retval , "type" , php_phongo_server_description_type (sd ));
1186- 1187- {
1188- php_phongo_bson_state state ;
1189- 1190- PHONGO_BSON_INIT_DEBUG_STATE (state );
1191- 1192- if (!php_phongo_bson_to_zval_ex (bson_get_data (hello_response ), hello_response -> len , & state )) {
1193- zval_ptr_dtor (& state .zchild );
1194- return false;
1195- }
1196- 1197- ADD_ASSOC_ZVAL_EX (retval , "hello_response" , & state .zchild );
1198- }
1199- ADD_ASSOC_LONG_EX (retval , "last_update_time" , (zend_long ) mongoc_server_description_last_update_time (sd ));
1200- ADD_ASSOC_LONG_EX (retval , "round_trip_time" , (zend_long ) mongoc_server_description_round_trip_time (sd ));
1201- 1202- return true;
1203- } /* }}} */
1204- 12051176bool php_phongo_server_to_zval (zval * retval , mongoc_server_description_t * sd ) /* {{{ */
12061177{
12071178 mongoc_host_list_t * host = mongoc_server_description_host (sd );
0 commit comments