Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Fix GH-8253: pg_insert() fails for references
This commit is contained in:
Christoph M. Becker 2022-03-29 10:52:32 +02:00
commit 7e8dcda42c
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
3 changed files with 33 additions and 0 deletions

View file

@ -4584,6 +4584,7 @@ PHP_PGSQL_API zend_result php_pgsql_convert(PGconn *pg_link, const zend_string *
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(values), field, val) {
skip_field = 0;
ZVAL_DEREF(val);
ZVAL_NULL(&new_val);
/* TODO: Check when meta data can be broken and see if can use assertions instead */