File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ PHP NEWS
5151 . Fixed bug GH-9356 Incomplete validation of IPv6 Address fields in
5252 subjectAltNames (James Lucas, Jakub Zelenka).
5353
54+ - PGSQL:
55+ . Fixed intermittent segfault with pg_trace. (David Carlier)
56+
5457- Phar:
5558 . Fix cross-compilation check in phar generation for FreeBSD. (peter279k)
5659
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ static void pgsql_link_free(pgsql_link_handle *link)
172172 PQclear (res );
173173 }
174174 if (!link -> persistent ) {
175+ PQuntrace (link -> conn );
175176 PQfinish (link -> conn );
176177 }
177178 PGG (num_links )-- ;
Original file line number Diff line number Diff line change 1+ --TEST--
2+ pg_trace
3+ --EXTENSIONS--
4+ pgsql
5+ --SKIPIF--
6+ <?php include ("skipif.inc " ); ?>
7+ --FILE--
8+ <?php
9+
10+ include ('config.inc ' );
11+
12+ $ db = pg_connect ($ conn_str );
13+ $ tracefile = __DIR__ . '/trace.tmp ' ;
14+
15+ var_dump (pg_trace ($ tracefile , 'w ' , $ db ));
16+ $ res = pg_query ($ db , 'select 1 ' );
17+
18+ ?>
19+ --EXPECTF--
20+ bool(true)
You can’t perform that action at this time.
0 commit comments