]> granicus.if.org Git - php/commitdiff
OCI8 build change: Fix source variable definition for C89 compatibility
authorChristopher Jones <sixd@php.net>
Wed, 6 Nov 2013 18:37:22 +0000 (10:37 -0800)
committerChristopher Jones <sixd@php.net>
Thu, 12 Dec 2013 23:22:55 +0000 (15:22 -0800)
ext/oci8/oci8.c
ext/oci8/package.xml
ext/oci8/php_oci8.h

index f8abacf3e6c6a7398c2be67c61f1cbce777fd50d..1e505f13e9978a47cce189bee8401b0c02373141 100644 (file)
@@ -2201,6 +2201,9 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char
 static int php_oci_connection_ping(php_oci_connection *connection TSRMLS_DC)
 {
        sword errstatus;
+#if (!((OCI_MAJOR_VERSION > 10) || ((OCI_MAJOR_VERSION == 10) && (OCI_MINOR_VERSION >= 2))))
+       char version[256];
+#endif
 
        OCI_G(errcode) = 0;             /* assume ping is successful */
 
@@ -2212,7 +2215,6 @@ static int php_oci_connection_ping(php_oci_connection *connection TSRMLS_DC)
 #if ((OCI_MAJOR_VERSION > 10) || ((OCI_MAJOR_VERSION == 10) && (OCI_MINOR_VERSION >= 2)))      /* OCIPing available 10.2 onwards */
        PHP_OCI_CALL_RETURN(errstatus, OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT));
 #else
-       char version[256];
        /* use good old OCIServerVersion() */
        PHP_OCI_CALL_RETURN(errstatus, OCIServerVersion, (connection->svc, OCI_G(err), (text *)version, sizeof(version), OCI_HTYPE_SVCCTX));
 #endif
index 7be825b895b395265dfd36079b3edcb0956c2d7d..8e55b9abd5c3ccfa88566c1153423981de27c51e 100644 (file)
@@ -49,8 +49,8 @@ libraries are available.
  <time>12:00:00</time>
 
   <version>
-   <release>2.0.6</release>
-   <api>2.0.6</api>
+   <release>2.0.7</release>
+   <api>2.0.7</api>
   </version>
   <stability>
    <release>stable</release>
@@ -58,8 +58,7 @@ libraries are available.
   </stability>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>
-Added a LICENSE file to make it easier for PECL binary distributions
-to conform with the license.
+    Build change: Fix source variable definition for C89 compatibility
   </notes>
  <contents>
   <dir name="/">
@@ -458,6 +457,22 @@ to conform with the license.
  </extsrcrelease>
  <changelog>
 
+<release>
+ <version>
+  <release>2.0.6</release>
+  <api>2.0.6</api>
+ </version>
+ <stability>
+  <release>stable</release>
+  <api>stable</api>
+ </stability>
+ <license uri="http://www.php.net/license">PHP</license>
+ <notes>
+Added a LICENSE file to make it easier for PECL binary distributions
+to conform with the license.
+ </notes>
+</release>
+
 <release>
  <version>
   <release>2.0.5</release>
index 751041554982f24e18797f698e63360da47e521c..86c5abfa8989b9a0dd3a890f77555ae63bc8eca7 100644 (file)
@@ -45,7 +45,7 @@
  */
 #undef PHP_OCI8_VERSION
 #endif
-#define PHP_OCI8_VERSION "2.0.6"
+#define PHP_OCI8_VERSION "2.0.7-dev"
 
 extern zend_module_entry oci8_module_entry;
 #define phpext_oci8_ptr &oci8_module_entry