Skip to content

Commit 421ca3c

Browse files
committed
PHPC-134: Add the internal results here too
1 parent 770c2b5 commit 421ca3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/MongoDB/WriteResult.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,14 @@ HashTable *php_phongo_writeresult_get_debug_info(zval *object, int *is_temp TSRM
391391
*is_temp = 1;
392392
array_init_size(&retval, 9);
393393

394+
{
395+
zval *result = NULL;
396+
397+
MAKE_STD_ZVAL(result);
398+
php_phongo_result_to_zval(result, &intern->result);
399+
add_assoc_zval_ex(&retval, ZEND_STRS("result"), result);
400+
}
401+
394402
add_assoc_long_ex(&retval, ZEND_STRS("nInserted"), intern->nInserted);
395403
add_assoc_long_ex(&retval, ZEND_STRS("nMatched"), intern->nMatched);
396404
add_assoc_long_ex(&retval, ZEND_STRS("nModified"), intern->nModified);

0 commit comments

Comments
 (0)