xref: /PHP-7.0/ext/pgsql/tests/bug72195.phpt (revision 3c0341e6)
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('/tmp', 'ABCDEFGHI');
13printf("%x\n", count($val));
14?>
15--EXPECT--
160
170
18