File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ PHP NEWS
20
20
- PDO_sqlite:
21
21
. Fixed bug #63916 (PDO::PARAM_INT casts to 32bit int internally even
22
22
on 64bit builds in pdo_sqlite). (srgoogleguy, Lars)
23
+ . Fixed bug #52958 (Segfault in PDO_OCI on cleanup after running a long
24
+ testsuite) (hswong3i, Lars)
23
25
24
26
?? ??? 2012, PHP 5.4.11
25
27
Original file line number Diff line number Diff line change @@ -227,8 +227,10 @@ static int oci_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */
227
227
H -> server = NULL ;
228
228
}
229
229
230
- OCIHandleFree (H -> err , OCI_HTYPE_ERROR );
231
- H -> err = NULL ;
230
+ if (H -> err ) {
231
+ OCIHandleFree (H -> err , OCI_HTYPE_ERROR );
232
+ H -> err = NULL ;
233
+ }
232
234
233
235
if (H -> charset && H -> env ) {
234
236
OCIHandleFree (H -> env , OCI_HTYPE_ENV );
You can’t perform that action at this time.
0 commit comments