It's a zend_array not Hashtable (fixed segfault)

This commit is contained in:
Xinchen Hui 2014-05-19 14:49:28 +08:00
parent ed554704f3
commit 09d2f4b195

View file

@ -2764,7 +2764,8 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type,
ZVAL_COPY_VALUE(&dataset, return_value); ZVAL_COPY_VALUE(&dataset, return_value);
object_and_properties_init(return_value, ce, NULL); object_and_properties_init(return_value, ce, NULL);
zend_merge_properties(return_value, Z_ARRVAL(dataset), 1 TSRMLS_CC); zend_merge_properties(return_value, Z_ARRVAL(dataset), 0 TSRMLS_CC);
zval_ptr_dtor(&dataset);
if (ce->constructor) { if (ce->constructor) {
fci.size = sizeof(fci); fci.size = sizeof(fci);