]> granicus.if.org Git - php/commitdiff
On second thoughts, keep this in sync with 5.6 for 71422
authorChristopher Jones <christopher.jones@oracle.com>
Thu, 14 Apr 2016 05:49:15 +0000 (15:49 +1000)
committerChristopher Jones <christopher.jones@oracle.com>
Thu, 14 Apr 2016 05:49:15 +0000 (15:49 +1000)
ext/oci8/oci8_statement.c

index 5fc21c2fbdc0571513d00bd26116f9fd9a17cd89..55983d3e9fbea751abb58d0af449758d2186e6ba 100644 (file)
@@ -1149,7 +1149,8 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
                                return 1;
                        }
                        convert_to_long(var);
-#if defined(OCI_MAJOR_VERSION) && OCI_MAJOR_VERSION > 10
+#if defined(OCI_MAJOR_VERSION) && (OCI_MAJOR_VERSION > 10) &&                  \
+       (defined(__x86_64__) || defined(__LP64__) || defined(_LP64) || defined(_WIN64)) 
                        bind_data = (ub8 *)&Z_LVAL_P(var);
                        value_sz = sizeof(ub8);
 #else