com php-src: fix fetching wrong resource: ext/odbc/php_odbc .c
| From: | Anatol Belski | Date: | Fri, 06 Mar 2015 20:02:29 +0000 |
| Subject: | com php-src: fix fetching wrong resource: ext/odbc/php_odbc .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85301@lists.php.net to get a copy of this message | ||
Commit: f1d1273f2b580d5328497f7d59e5c25e6259354e
Author: Anatol Belski <ab@php.net> Fri, 6 Mar 2015 21:02:29 +0100
Parents: 9d037d574cc359405c7a818c2235644633705999
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f1d1273f2b580d5328497f7d59e5c25e6259354e
Log:
fix fetching wrong resource
Changed paths:
M ext/odbc/php_odbc.c
Diff:
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 20511f8..8d594c1 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -3088,7 +3088,7 @@ PHP_FUNCTION(odbc_setoption)
}
break;
case 2: /* SQLSetStmtOption */
- if (!(conn = (odbc_connection *)zend_fetch_resource2(Z_RES_P(pv_handle), "ODBC-Link",
le_conn, le_pconn))) {
+ if ((result = (odbc_result *)zend_fetch_resource(Z_RES_P(pv_handle), "ODBC result",
le_result)) == NULL) {
RETURN_FALSE;
}