We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49944e4 + 3c91851 commit de9f64fCopy full SHA for de9f64f
ext/oci8/oci8.c
@@ -2351,7 +2351,6 @@ int php_oci_connection_release(php_oci_connection *connection)
2351
connection->svc = NULL;
2352
connection->server = NULL;
2353
connection->session = NULL;
2354
- connection->id = NULL;
2355
2356
connection->is_attached = connection->is_open = connection->rb_on_disconnect = connection->used_this_request = 0;
2357
connection->is_stub = 1;
@@ -2368,6 +2367,9 @@ int php_oci_connection_release(php_oci_connection *connection)
2368
2367
#endif /* HAVE_OCI8_DTRACE */
2369
}
2370
+ /* Always set id to null, so next time a new resource is being registered. */
2371
+ connection->id = NULL;
2372
+
2373
OCI_G(in_call) = in_call_save;
2374
return result;
2375
0 commit comments