From: Christopher Jones Date: Mon, 14 Sep 2015 03:29:09 +0000 (+1000) Subject: Fix mem leak in PHP7 X-Git-Tag: php-7.1.0alpha1~1180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=145708b658d0a60b738dde1a942dea9032f2f54e;p=php Fix mem leak in PHP7 --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 9144d48baf..01b2414a9e 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2748,6 +2748,7 @@ void php_oci_fetch_row (INTERNAL_FUNCTION_PARAMETERS, int mode, int expected_arg placeholder = Z_REFVAL_P(array); else placeholder = array; + zval_dtor(placeholder); } else { placeholder = return_value; } diff --git a/ext/oci8/tests/bind_sqltnum.phpt b/ext/oci8/tests/bind_sqltnum.phpt index 93fc4809ec..3d29aeb4a8 100644 --- a/ext/oci8/tests/bind_sqltnum.phpt +++ b/ext/oci8/tests/bind_sqltnum.phpt @@ -3,6 +3,10 @@ Bind with SQLT_NUM --SKIPIF-- = 12)) { + die("skip works only with Oracle 12c or greater version of Oracle client libraries"); +} ?> --FILE-- array(1) { [0]=> - string(127) "-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + string(2) "-~" } }