summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/bug72195.phpt
blob: 34735d31f4f292461c8fc75a95a7234b21af10e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #72195 (pg_pconnect/pg_connect cause use-after-free)
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
$val = [];
$var1 = $val;
printf("%x\n", count($val));
@pg_pconnect($var1, "2", "3", "4");
$var1 = "";
tempnam(sys_get_temp_dir(), 'ABCDEFGHI');
printf("%x\n", count($val));
?>
--EXPECT--
0
0