mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
It's a zend_array not Hashtable (fixed segfault)
This commit is contained in:
parent
ed554704f3
commit
09d2f4b195
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue