xref: /PHP-7.2/ext/pgsql/tests/bug72195.phpt (revision 4a142af3)
1--TEST--
2Bug #72195 (pg_pconnect/pg_connect cause use-after-free)
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7$val = [];
8$var1 = $val;
9printf("%x\n", count($val));
10@pg_pconnect($var1, "2", "3", "4");
11$var1 = "";
12tempnam(sys_get_temp_dir(), 'ABCDEFGHI');
13printf("%x\n", count($val));
14?>
15--EXPECT--
160
170
18