@@ -401,6 +401,7 @@ zend_object_value php_phongo_manager_create_object(zend_class_entry *class_type
401
401
return retval ;
402
402
} /* }}} */
403
403
404
+ /*
404
405
static const char *phongo_cluster_mode_tostring(mongoc_cluster_mode_t mode)
405
406
{
406
407
switch (mode) {
@@ -431,6 +432,7 @@ static const char *phongo_cluster_state_tostring(mongoc_cluster_state_t state)
431
432
432
433
return "broken";
433
434
}
435
+ */
434
436
435
437
static void add_next_index_node (zval * array , mongoc_cluster_node_t * node )
436
438
{
@@ -441,6 +443,7 @@ static void add_next_index_node(zval *array, mongoc_cluster_node_t *node)
441
443
442
444
MAKE_STD_ZVAL (data );
443
445
array_init (data );
446
+ /*FIXME: What data to dump ?
444
447
add_assoc_long_ex(data, ZEND_STRS("ping_avg_msec"), node->ping_avg_msec);
445
448
add_assoc_long_ex(data, ZEND_STRS("stamp"), node->stamp);
446
449
add_assoc_bool_ex(data, ZEND_STRS("primary"), node->primary);
@@ -458,6 +461,7 @@ static void add_next_index_node(zval *array, mongoc_cluster_node_t *node)
458
461
bson_to_zval(bson_get_data(&node->tags), node->tags.len, &state);
459
462
add_assoc_zval_ex(data, ZEND_STRS("tags"), state.zchild);
460
463
add_assoc_string_ex(data, ZEND_STRS("host_and_port"), node->host.host_and_port, 0);
464
+ */
461
465
/* TODO: Should this contain the actual stream too? we have the mongoc_stream_t... */
462
466
463
467
add_next_index_zval (array , data );
@@ -482,6 +486,7 @@ HashTable *php_phongo_manager_get_debug_info(zval *object, int *is_temp TSRMLS_D
482
486
zval * cluster = NULL ;
483
487
MAKE_STD_ZVAL (cluster );
484
488
array_init (cluster );
489
+ /* FIXME: What data to dump ?
485
490
add_assoc_string_ex(cluster, ZEND_STRS("mode"), (char *)phongo_cluster_mode_tostring(intern->client->cluster.mode), 0);
486
491
add_assoc_string_ex(cluster, ZEND_STRS("state"), (char *)phongo_cluster_state_tostring(intern->client->cluster.state), 0);
487
492
add_assoc_long_ex(cluster, ZEND_STRS("request_id"), intern->client->cluster.request_id);
@@ -527,6 +532,7 @@ HashTable *php_phongo_manager_get_debug_info(zval *object, int *is_temp TSRMLS_D
527
532
} else {
528
533
add_assoc_null_ex(cluster, ZEND_STRS("replSet"));
529
534
}
535
+ */
530
536
531
537
add_assoc_zval_ex (retval , ZEND_STRS ("cluster" ), cluster );
532
538
}
0 commit comments