File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ PHP NEWS
51
51
. Fixed bug GH-9356 Incomplete validation of IPv6 Address fields in
52
52
subjectAltNames (James Lucas, Jakub Zelenka).
53
53
54
+ - PGSQL:
55
+ . Fixed intermittent segfault with pg_trace. (David Carlier)
56
+
54
57
- Phar:
55
58
. Fix cross-compilation check in phar generation for FreeBSD. (peter279k)
56
59
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ static void pgsql_link_free(pgsql_link_handle *link)
172
172
PQclear (res );
173
173
}
174
174
if (!link -> persistent ) {
175
+ PQuntrace (link -> conn );
175
176
PQfinish (link -> conn );
176
177
}
177
178
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