From: Antony Dovgal Date: Sat, 19 Nov 2005 21:36:06 +0000 (+0000) Subject: fix PECL bug #5986 (connections use case sensitive hashed details) X-Git-Tag: RELEASE_2_0_2~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9846ceeab66a219fefd6dcfb67e78892dd8fbb28;p=php fix PECL bug #5986 (connections use case sensitive hashed details) --- 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;