summaryrefslogtreecommitdiff
path: root/ext/oci8/oci8_statement.c
diff options
context:
space:
mode:
authorChristopher Jones <christopher.jones@oracle.com>2015-11-07 02:24:17 +1100
committerAnatol Belski <ab@php.net>2015-11-08 09:20:33 +0100
commit9bc819d943de91f2ea3d08afd76abb63dc61b52c (patch)
tree0620127235b0d8e7d3f90c719b351a2533fad890 /ext/oci8/oci8_statement.c
parent3c8fac95b02dd879fd2b03283c57a109ebf160c9 (diff)
downloadphp-git-9bc819d943de91f2ea3d08afd76abb63dc61b52c.tar.gz
Fix bug 68298 (PHP OCI8 OCI int overflow) (Senthil)
Diffstat (limited to 'ext/oci8/oci8_statement.c')
-rw-r--r--ext/oci8/oci8_statement.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index a23ed2bbb1..4ec7d2964a 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -1149,8 +1149,13 @@ 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
+ bind_data = (ub8 *)&Z_LVAL_P(var);
+ value_sz = sizeof(ub8);
+#else
bind_data = (ub4 *)&Z_LVAL_P(var);
value_sz = sizeof(ub4);
+#endif
mode = OCI_DEFAULT;
break;