1--TEST-- 2pg_insert() fails for references 3--SKIPIF-- 4<?php 5include("skipif.inc"); 6?> 7--FILE-- 8<?php 9include "config.inc"; 10 11function fee(&$a) {} 12$a = ["bar" => "testing"]; 13fee($a["bar"]); 14 15$db = pg_connect($conn_str); 16pg_query($db, "DROP TABLE IF EXISTS gh8253"); 17pg_query($db, "CREATE TABLE gh8253 (bar text);"); 18pg_insert($db, "gh8253", $a); 19$res = pg_query($db, "SELECT * FROM gh8253"); 20var_dump(pg_fetch_all($res)); 21?> 22--EXPECT-- 23array(1) { 24 [0]=> 25 array(1) { 26 ["bar"]=> 27 string(7) "testing" 28 } 29} 30