From 9846ceeab66a219fefd6dcfb67e78892dd8fbb28 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 19 Nov 2005 21:36:06 +0000 Subject: [PATCH] fix PECL bug #5986 (connections use case sensitive hashed details) --- ext/oci8/oci8.c | 3 +++ ext/oci8/php_oci8_int.h | 1 + 2 files changed, 4 insertions(+) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 89ef83d844..952d5af172 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -944,6 +944,9 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char smart_str_append_unsigned_ex(&hashed_details, session_mode, 0); smart_str_0(&hashed_details); + /* make it lowercase */ + php_strtolower(hashed_details.c, hashed_details.len); + /* Initialize global handles if the weren't initialized before */ if (OCI_G(env) == NULL) { diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 7c57f8d9fe..29810aefc8 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -52,6 +52,7 @@ #endif /* }}} */ +#include "ext/standard/php_string.h" #include extern int le_connection; -- 2.50.1