diff options
| author | Christopher Jones <sixd@php.net> | 2008-03-25 02:00:32 +0000 |
|---|---|---|
| committer | Christopher Jones <sixd@php.net> | 2008-03-25 02:00:32 +0000 |
| commit | ceb2193b7caf90a3246b13123dd044b511fdc05a (patch) | |
| tree | fd23343e2a51c6c2cd7be763b01f640f628326d2 /ext/oci8/oci8_interface.c | |
| parent | 16f6918e0f698623d3de984e44c9ff5d281e2225 (diff) | |
| download | php-git-ceb2193b7caf90a3246b13123dd044b511fdc05a.tar.gz | |
rename PHP_OCI8_VERSION in preparation for peclversioning RFC. Remove obsolete HAVE_OCI8_ATTR_STATEMENT macro
Diffstat (limited to 'ext/oci8/oci8_interface.c')
| -rw-r--r-- | ext/oci8/oci8_interface.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c index 40efb9ce0c..be343584d8 100644 --- a/ext/oci8/oci8_interface.c +++ b/ext/oci8/oci8_interface.c @@ -1598,10 +1598,8 @@ PHP_FUNCTION(oci_error) sb4 errcode = 0; sword error = OCI_SUCCESS; dvoid *errh = NULL; -#ifdef HAVE_OCI8_ATTR_STATEMENT ub2 error_offset = 0; text *sqltext = NULL; -#endif if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|r", &arg) == FAILURE) { return; @@ -1614,11 +1612,9 @@ PHP_FUNCTION(oci_error) errh = statement->err; error = statement->errcode; -#ifdef HAVE_OCI8_ATTR_STATEMENT if (php_oci_fetch_sqltext_offset(statement, &sqltext, &error_offset TSRMLS_CC)) { RETURN_FALSE; } -#endif goto go_out; } @@ -1656,10 +1652,8 @@ go_out: array_init(return_value); add_assoc_long(return_value, "code", errcode); add_assoc_string(return_value, "message", (char*) errbuf, 0); -#ifdef HAVE_OCI8_ATTR_STATEMENT add_assoc_long(return_value, "offset", error_offset); add_assoc_string(return_value, "sqltext", sqltext ? (char *) sqltext : "", 1); -#endif } else { RETURN_FALSE; } |
