summaryrefslogtreecommitdiff
path: root/ext/pdo_oci
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2007-12-11 06:57:39 (GMT)
committerChristopher Jones <sixd@php.net>2007-12-11 06:57:39 (GMT)
commit922d1fce296a14c970670a9325cccd409ba5df22 (patch)
tree8a4c21808d7c5a31ed2d007da4e9c03bc715df28 /ext/pdo_oci
parent02ecdf0821d48e9fcb91131869ca176275c3afcd (diff)
downloadphp-922d1fce296a14c970670a9325cccd409ba5df22.tar.gz
Sync with 5.2
Diffstat (limited to 'ext/pdo_oci')
-rwxr-xr-xext/pdo_oci/oci_driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c
index 379ab03..ca44282 100755
--- a/ext/pdo_oci/oci_driver.c
+++ b/ext/pdo_oci/oci_driver.c
@@ -494,9 +494,12 @@ static int oci_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_valu
OCIClientVersion(&major, &minor, &update, &patch, &port_update);
slprintf(verstr, sizeof(verstr), "%d.%d.%d.%d.%d", major, minor, update, patch, port_update);
ZVAL_STRING(return_value, verstr, 1);
-#else
+#elif PHP_PDO_OCI_CLIENT_VERSION
/* Compile time client version */
ZVAL_STRING(return_value, PHP_PDO_OCI_CLIENT_VERSION, 1);
+#else
+ return FALSE;
+
#endif /* Check for OCIClientVersion() support */
return TRUE;