tony2001 Fri Feb 3 14:48:24 2006 UTC
Modified files:
/php-src/ext/oci8 oci8_statement.c
Log:
MF51: fix #36010 (Segfault when re-creating and re-executing statements with
bound parameters)
http://cvs.php.net/viewcvs.cgi/php-src/ext/oci8/oci8_statement.c?r1=1.15&r2=1.16&diff_format=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.15
php-src/ext/oci8/oci8_statement.c:1.16
--- php-src/ext/oci8/oci8_statement.c:1.15 Tue Jan 31 18:36:59 2006
+++ php-src/ext/oci8/oci8_statement.c Fri Feb 3 14:48:24 2006
@@ -25,7 +25,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8_statement.c,v 1.15 2006/01/31 18:36:59 tony2001 Exp $ */
+/* $Id: oci8_statement.c,v 1.16 2006/02/03 14:48:24 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
@@ -70,7 +70,7 @@
php_oci_error(connection->err, connection->errcode
TSRMLS_CC);
#if HAVE_OCI_STMT_PREPARE2
- PHP_OCI_CALL(OCIStmtRelease, (statement->stmt,
statement->err, NULL, 0, OCI_DEFAULT));
+ PHP_OCI_CALL(OCIStmtRelease, (statement->stmt,
statement->err, NULL, 0, OCI_STRLS_CACHE_DELETE));
PHP_OCI_CALL(OCIHandleFree,(statement->err,
OCI_HTYPE_ERROR));
#else
PHP_OCI_CALL(OCIHandleFree,(statement->stmt,
OCI_HTYPE_STMT));
@@ -578,7 +578,7 @@
if (statement->stmt) {
#if HAVE_OCI_STMT_PREPARE2
if (statement->last_query_len) { /* FIXME: magical */
- PHP_OCI_CALL(OCIStmtRelease, (statement->stmt,
statement->err, NULL, 0, OCI_DEFAULT));
+ PHP_OCI_CALL(OCIStmtRelease, (statement->stmt,
statement->err, NULL, 0, OCI_STRLS_CACHE_DELETE));
}
else {
PHP_OCI_CALL(OCIHandleFree, (statement->stmt,
OCI_HTYPE_STMT));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php