]> granicus.if.org Git - php/commitdiff
fix PECL bug #5986 (connections use case sensitive hashed details)
authorAntony Dovgal <tony2001@php.net>
Sat, 19 Nov 2005 21:36:06 +0000 (21:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 19 Nov 2005 21:36:06 +0000 (21:36 +0000)
ext/oci8/oci8.c
ext/oci8/php_oci8_int.h

index 89ef83d84475de08404297f9349a03e4bc6ca90a..952d5af17232ace50d858289826c90c9cc5fda76 100644 (file)
@@ -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) {
index 7c57f8d9fe908aca8cbe7e7715853ab2a8032375..29810aefc8f326be7c991bd92ce6eb454712638a 100644 (file)
@@ -52,6 +52,7 @@
 #endif
 /* }}} */
 
+#include "ext/standard/php_string.h"
 #include <oci.h>
 
 extern int le_connection;