Merge branch 'PHP-8.1'

* PHP-8.1:
  Fix GH-8253: pg_insert() fails for references
This commit is contained in:
Christoph M. Becker 2022-03-29 10:54:32 +02:00
commit c9c5ee3f48
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
2 changed files with 32 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 */