---------------------------------------------------------------------
+--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2018 The PHP Group. All rights reserved.
---------------------------------------------------------------------
+--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
-
+
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
-
+
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.
-
+
4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"
-
+
5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
"This product includes PHP software, freely available from
<http://www.php.net/software/>".
-THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
-DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------
+--------------------------------------------------------------------
This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.
The PHP Group can be contacted via Email at group@php.net.
-For more information on the PHP Group and the PHP project,
+For more information on the PHP Group and the PHP project,
please see <http://www.php.net>.
PHP includes the Zend Engine, freely available at
OCI8_ORACLE_VERSION=8.1
elif test -f $OCI8_LCS_BASE.1.0; then
OCI8_ORACLE_VERSION=8.0
- elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
- if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
+ elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
+ if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
OCI8_ORACLE_VERSION=8.0
else
OCI8_ORACLE_VERSION=8.1
dnl independently instead of using a refactored PHP_INIT_DTRACE allows
dnl OCI8 to be DTraced on versions of PHP where core PHP DTrace support
dnl isn't available.
-dnl
+dnl
AC_DEFUN([OCI8_INIT_DTRACE],[
ac_srcdir=[]PHP_EXT_SRCDIR([oci8])/
ac_bdir=[]PHP_EXT_BUILDDIR([oci8])/
Use --with-oci8=instantclient,/path/to/instant/client/lib
to use an Oracle Instant Client installation])
-if test "$PHP_OCI8" != "no"; then
+if test "$PHP_OCI8" != "no"; then
if test -z "$PHP_OCI8"; then
dnl --with-oci8=$ORACLE_HOME where ORACLE_HOME isn't set (or is mistyped) will match this case
fi
dnl Check whether --enable-dtrace was set.
- dnl To use DTrace with a PECL install, extract the OCI8 archive, phpize it, and set
+ dnl To use DTrace with a PECL install, extract the OCI8 archive, phpize it, and set
dnl PHP_DTRACE=yes before running configure
AC_MSG_CHECKING([OCI8 DTrace support])
oci8_do_dtrace="`echo $PHP_OCI8 | cut -d, -f3`"
if test "$PHP_DTRACE" = "yes" -o "$oci8_do_dtrace" = "dtrace" ; then
- AC_MSG_RESULT([yes])
+ AC_MSG_RESULT([yes])
if test "$ext_shared" = "no"; then
AC_MSG_ERROR([For DTrace support OCI8 must be configured as a shared extension])
else
AC_MSG_CHECKING([checking if we're on a 64-bit platform])
if test "$ac_cv_sizeof_long_int" = "4"; then
AC_MSG_RESULT([no])
- PHP_OCI8_OH_LIBDIR=lib32
+ PHP_OCI8_OH_LIBDIR=lib32
PHP_OCI8_IC_LIBDIR_SUFFIX=""
else
AC_MSG_RESULT([yes])
#include "php_oci8.h"
#include "php_oci8_int.h"
-/* {{{ callback_fn()
+/* {{{ callback_fn()
OCI TAF callback function, calling userspace function */
sb4 callback_fn(void *svchp, void *envhp, void *fo_ctx, ub4 fo_type, ub4 fo_event)
{
if (!callback) {
/* Unregister callback */
if (Z_ISUNDEF(connection->taf_callback) || Z_ISNULL(connection->taf_callback)) {
- return 0; // Nothing to unregister
+ return 0; // Nothing to unregister
}
registered = 1;
}
if (callback) {
-#if PHP_MAJOR_VERSION > 7 || (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION >= 2)
+#if PHP_MAJOR_VERSION > 7 || (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION >= 2)
if (!zend_is_callable(callback, 0, 0)) {
callback_name = zend_get_callable_name(callback);
php_error_docref(NULL, E_WARNING, "function '%s' is not callable", ZSTR_VAL(callback_name));
}
/* }}} */
-/* {{{ php_oci_lob_calculate_buffer()
+/* {{{ php_oci_lob_calculate_buffer()
Work out the size for LOB buffering */
static inline int php_oci_lob_calculate_buffer(php_oci_descriptor *descriptor, zend_long read_length)
{
zend_string_release(zvtmp);
}
- /* Make sure the minimum of value_sz is 1 to avoid ORA-3149
+ /* Make sure the minimum of value_sz is 1 to avoid ORA-3149
* when both in/out parameters are bound with empty strings
*/
if (value_sz == 0)
</notes>
</release>
-<release>
+<release>
<version>
<release>2.1.5</release>
<api>2.1.5</api>
<license uri="http://www.php.net/license">PHP</license>
<notes>
This version is for PHP 7 only.
-Added TAF callback support (PR #2459, KoenigsKind)
+Added TAF callback support (PR #2459, KoenigsKind)
</notes>
-</release>
+</release>
<release>
<version>
Fixed bug #71148 (Bind reference overwritten on PHP 7)
</notes>
</release>
-
+
<release>
<version>
<release>2.1.2</release>
Fixed bug #71600 (oci_fetch_all segfaults when selecting more than 8 columns)
</notes>
</release>
-
+
<release>
<version>
<release>2.1.0</release>
<license uri="http://www.php.net/license">PHP</license>
<notes>
This version is for PHP 7 only.
-Updated driver name format.
+Updated driver name format.
</notes>
</release>
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>
-Added oci_bind_by_name() support for PL/SQL BOOLEAN type
+Added oci_bind_by_name() support for PL/SQL BOOLEAN type
Build change: Fix source variable definition for C89 compatibility
</notes>
</release>
<api>devel</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
- <notes>
+ <notes>
Fixed --enable-maintainer-zts mode.
Allow Implicit Result Set statement resources to inherit the parent's current prefetch count.
Allow OCI8 to be DTrace-enabled independently from core PHP.
<api>devel</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
- <notes>
+ <notes>
- NEW FUNCTIONALITY:
- Added Implicit Result Set support for Oracle Database 12c.
- Regularized code prototypes and fixed some in-line documentation
prototypes.
- - Fixed code folding.
+ - Fixed code folding.
</notes>
</release>
#define PHP_OCI_ERRBUF_LEN OCI_ERROR_MAXMSG_SIZE2
#else
#define PHP_OCI_ERRBUF_LEN OCI_ERROR_MAXMSG_SIZE
-#endif
+#endif
/* The mode parameter for oci_connect() is overloaded and accepts both
* privilege and external authentication flags OR'd together.
/* }}} */
/* {{{ php_oci_connection */
-typedef struct {
+typedef struct {
zend_resource *id; /* resource ID */
OCIEnv *env; /* private env handle */
ub2 charset; /* charset ID */
/* }}} */
/* {{{ php_oci_descriptor */
-typedef struct {
+typedef struct {
zend_resource *id;
zend_ulong index; /* descriptors hash table index */
php_oci_connection *connection; /* parent connection handle */
/* }}} */
/* {{{ php_oci_lob_ctx */
-typedef struct {
+typedef struct {
char **lob_data; /* address of pointer to LOB data */
ub4 *lob_len; /* address of LOB length variable (bytes) */
ub4 alloc_len;
/* }}} */
/* {{{ php_oci_collection */
-typedef struct {
+typedef struct {
zend_resource *id;
php_oci_connection *connection; /* parent connection handle */
OCIType *tdo; /* collection's type handle */
/* }}} */
/* {{{ php_oci_define */
-typedef struct {
+typedef struct {
zval val; /* zval used in define */
text *name; /* placeholder's name */
ub4 name_len; /* placeholder's name length */
/* }}} */
/* {{{ php_oci_statement */
-typedef struct {
+typedef struct {
zend_resource *id;
zend_resource *parent_stmtid; /* parent statement id */
struct php_oci_statement *impres_child_stmt;/* child of current Implicit Result Set statement handle */
/* }}} */
/* {{{ php_oci_bind */
-typedef struct {
+typedef struct {
OCIBind *bind; /* bind handle */
zval val; /* value */
dvoid *descriptor; /* used for binding of LOBS etc */
/* }}} */
/* {{{ php_oci_out_column */
-typedef struct {
+typedef struct {
php_oci_statement *statement; /* statement handle. used when fetching REFCURSORS */
php_oci_statement *nested_statement; /* statement handle. used when fetching REFCURSORS */
OCIDefine *oci_define; /* define handle */