1--TEST-- 2Bug #72195 (pg_pconnect/pg_connect cause use-after-free) 3--EXTENSIONS-- 4pgsql 5--SKIPIF-- 6<?php include("skipif.inc"); ?> 7--FILE-- 8<?php 9$val = []; 10try { 11 pg_pconnect($var1, "2", "3", "4"); 12} catch (ArgumentCountError $e) { 13 echo $e->getMessage(), "\n"; 14} 15?> 16--EXPECTF-- 17Warning: Undefined variable $var1 in %s on line %d 18pg_pconnect() expects at most 2 arguments, 4 given 19