1
0
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:
Máté Kocsis
2024-05-15 09:16:46 +02:00
parent 446ff6a742
commit 43ac009c87

View File

@@ -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: