diff options
author | George Peter Banyard <girgias@php.net> | 2020-05-20 15:41:18 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-05-20 16:29:53 +0200 |
commit | a43f100fdaa47bd158360e46cfa61189e636137e (patch) | |
tree | 30e5010273d3aa2838f5d043152a021f63abc6c7 /ext/pdo_oci/oci_driver.c | |
parent | c932cc841ab1bd80dbb1465f29d58302c95e8c78 (diff) | |
download | php-git-a43f100fdaa47bd158360e46cfa61189e636137e.tar.gz |
Fix [-Wundef] warning in PDO OCI extension
Diffstat (limited to 'ext/pdo_oci/oci_driver.c')
-rw-r--r-- | ext/pdo_oci/oci_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index 3d9267ba85..3cb2cab56d 100644 --- a/ext/pdo_oci/oci_driver.c +++ b/ext/pdo_oci/oci_driver.c @@ -247,7 +247,7 @@ static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, size_t nsql_len = 0; int ret; -#if HAVE_OCISTMTFETCH2 +#ifdef HAVE_OCISTMTFETCH2 S->exec_type = pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, PDO_CURSOR_FWDONLY) == PDO_CURSOR_SCROLL ? OCI_STMT_SCROLLABLE_READONLY : OCI_DEFAULT; @@ -727,7 +727,7 @@ static int pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ * H->prefetch = PDO_OCI_PREFETCH_DEFAULT; /* allocate an environment */ -#if HAVE_OCIENVNLSCREATE +#ifdef HAVE_OCIENVNLSCREATE if (vars[0].optval) { H->charset = OCINlsCharSetNameToId(pdo_oci_Env, (const oratext *)vars[0].optval); if (!H->charset) { |