File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -2264,8 +2264,6 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
2264
2264
db_conn -> res = zend_register_resource (db_conn , le_pconn );
2265
2265
RETVAL_RES (db_conn -> res );
2266
2266
} else { /* non persistent */
2267
- zend_resource new_index_ptr ;
2268
-
2269
2267
if (ODBCG (max_links ) != -1 && ODBCG (num_links ) >= ODBCG (max_links )) {
2270
2268
php_error_docref (NULL , E_WARNING ,"Too many open connections (%ld)" ,ODBCG (num_links ));
2271
2269
RETURN_FALSE ;
@@ -2276,9 +2274,6 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
2276
2274
}
2277
2275
db_conn -> res = zend_register_resource (db_conn , le_conn );
2278
2276
RETVAL_RES (db_conn -> res );
2279
- new_index_ptr .ptr = (void * )(zend_uintptr_t )Z_RES_HANDLE_P (return_value );
2280
- new_index_ptr .type = le_index_ptr ;
2281
-
2282
2277
ODBCG (num_links )++ ;
2283
2278
}
2284
2279
}
You can’t perform that action at this time.
0 commit comments