]> granicus.if.org Git - php/commitdiff
OCI8: Fix alloc function and DLL generation
authorChristopher Jones <sixd@php.net>
Sat, 28 Sep 2013 00:00:41 +0000 (17:00 -0700)
committerChristopher Jones <sixd@php.net>
Sat, 28 Sep 2013 00:00:41 +0000 (17:00 -0700)
ext/oci8/oci8.c
ext/oci8/oci8_interface.c
ext/oci8/package.xml

index f04114d4d67cffea4cdc2ed3b7f0229c2caa5016..6723c22019ccf4aef5404d245813a6b60c325d38 100644 (file)
@@ -151,7 +151,7 @@ static sword php_oci_ping_init(php_oci_connection *connection, OCIError *errh TS
 /* }}} */
 
 /* {{{ dynamically loadable module stuff */
-#if defined(COMPILE_DL_OCI8) || defined(COMPILE_DL_OCI8_11G)
+#if defined(COMPILE_DL_OCI8) || defined(COMPILE_DL_OCI8_11G) || defined(COMPILE_DL_OCI8_12C)
 ZEND_GET_MODULE(oci8)
 #endif /* COMPILE_DL */
 /* }}} */
index 3fad90d9c7c84da3139b014042247af16fc865f4..0f17f935f114b45b475f293e9df1655b5888c66c 100644 (file)
@@ -1788,7 +1788,7 @@ PHP_FUNCTION(oci_set_client_identifier)
 
        if (client_id) {
                /* this long winded copy allows compatibility with older PHP versions */
-               connection->client_id = (char *)safe_emalloc(client_id_len+1, sizeof(char), connection->is_persistent);
+               connection->client_id = (char *)pemalloc(client_id_len+1, connection->is_persistent);
                memcpy(connection->client_id, client_id, client_id_len);
                connection->client_id[client_id_len] = '\0';
        } else {
index 24ba635fef6dccafa3997bba83d409bba313a4cd..cd6bb04c0bd420b964e50ff9d9a9542a523385f9 100644 (file)
@@ -44,8 +44,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
  <time>12:00:00</time>
 
   <version>
-   <release>2.0.3</release>
-   <api>2.0.3</api>
+   <release>2.0.4</release>
+   <api>2.0.4</api>
   </version>
   <stability>
    <release>devel</release>
@@ -53,9 +53,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
   </stability>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>
-Add the oci_set_client_identifier() value and statement structure pointer to several DTrace probes.
-Use 'phpoci' as the DTrace provider name since uniqueness is required by the Linux fasttrap module.
-Update Windows builds to create only php_oci8_12c.dll.
+Fix persistent memory usage with --enable-dtrace
+Export get_module() for Windows php_oci8_12c.dll
   </notes>
  <contents>
   <dir name="/">
@@ -454,6 +453,23 @@ Update Windows builds to create only php_oci8_12c.dll.
  </extsrcrelease>
  <changelog>
 
+<release>
+  <version>
+   <release>2.0.3</release>
+   <api>2.0.3</api>
+  </version>
+  <stability>
+   <release>devel</release>
+   <api>devel</api>
+  </stability>
+  <license uri="http://www.php.net/license">PHP</license>
+  <notes>
+Add the oci_set_client_identifier() value and statement structure pointer to several DTrace probes.
+Use 'phpoci' as the DTrace provider name since uniqueness is required by the Linux fasttrap module.
+Update Windows builds to create only php_oci8_12c.dll.
+  </notes>
+</release>
+
 <release>
   <version>
    <release>2.0.2</release>