mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add prefix for ext/odbc persistent resource hash
In order to make sure that it doesn't accidentally clash with other resource types
This commit is contained in:
@@ -2300,7 +2300,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||
}
|
||||
|
||||
char *hashed_details;
|
||||
size_t hashed_details_len = spprintf(&hashed_details, 0, "%d_%s_%s_%s_%s_%d", persistent, ODBC_TYPE, db, uid, pwd, cur_opt);
|
||||
size_t hashed_details_len = spprintf(&hashed_details, 0, "odbc_%d_%s_%s_%s_%s_%d", persistent, ODBC_TYPE, db, uid, pwd, cur_opt);
|
||||
|
||||
try_and_get_another_connection:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user