mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-23 00:18:02 +02:00
PHPC-134: Add the internal results here too
This commit is contained in:
@@ -391,6 +391,14 @@ HashTable *php_phongo_writeresult_get_debug_info(zval *object, int *is_temp TSRM
|
||||
*is_temp = 1;
|
||||
array_init_size(&retval, 9);
|
||||
|
||||
{
|
||||
zval *result = NULL;
|
||||
|
||||
MAKE_STD_ZVAL(result);
|
||||
php_phongo_result_to_zval(result, &intern->result);
|
||||
add_assoc_zval_ex(&retval, ZEND_STRS("result"), result);
|
||||
}
|
||||
|
||||
add_assoc_long_ex(&retval, ZEND_STRS("nInserted"), intern->nInserted);
|
||||
add_assoc_long_ex(&retval, ZEND_STRS("nMatched"), intern->nMatched);
|
||||
add_assoc_long_ex(&retval, ZEND_STRS("nModified"), intern->nModified);
|
||||
|
||||
Reference in New Issue
Block a user