1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 10:03:18 +02:00

Fix for Bug #9272, as submitted by marc boeren (m.boeren@guidance.nl).

Applied by me, due to apparently a lack of cvs access to ext/odbc for him.
This commit is contained in:
Dan Kalowsky
2001-03-27 14:17:52 +00:00
parent 8c97f5c04d
commit 0d7729ed58

View File

@@ -2157,15 +2157,15 @@ PHP_FUNCTION(odbc_close)
int i;
int type;
int is_pconn = 0;
int found_resource_type = le_conn;
ODBCLS_FETCH();
if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
conn = (odbc_connection *) zend_fetch_resource(pv_conn, -1, "ODBC-Link", NULL, 1, le_conn);
if(!conn){
ZEND_FETCH_RESOURCE(conn, odbc_connection *, pv_conn, -1, "ODBC-Link", le_pconn);
conn = (odbc_connection *) zend_fetch_resource(pv_conn, -1, "ODBC-Link", found_resource_type, 2, le_conn, le_pconn);
if (found_resource_type==le_pconn) {
is_pconn = 1;
}