From 31d0d253a8bde0613ccffca9fa2d5328c913ef12 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Thu, 19 Jun 2008 19:56:11 +0000 Subject: [PATCH] Test updates and bundle 1.3.3 --- ext/oci8/README | 34 +++++++++++------------ ext/oci8/package2.xml | 48 ++++++++++++++++++++++++--------- ext/oci8/php_oci8.h | 2 +- ext/oci8/tests/bind_char_1.phpt | 10 ++++++- ext/oci8/tests/bind_char_2.phpt | 10 ++++++- ext/oci8/tests/bind_char_3.phpt | 10 ++++++- ext/oci8/tests/bind_char_4.phpt | 10 ++++++- ext/oci8/tests/bug27303.phpt | 10 ++++++- ext/oci8/tests/bug27303_2.phpt | 10 ++++++- ext/oci8/tests/bug27303_4.phpt | 10 ++++++- ext/oci8/tests/connect.inc | 34 ++++++++--------------- ext/oci8/tests/debug.phpt | 47 +++++++++++++++++++++++++------- ext/oci8/tests/details.inc | 12 +++++++-- 13 files changed, 174 insertions(+), 73 deletions(-) diff --git a/ext/oci8/README b/ext/oci8/README index cc369f833d..178e456286 100644 --- a/ext/oci8/README +++ b/ext/oci8/README @@ -169,12 +169,11 @@ directory will contain logs of any failures. 6. DRCP and FAN Support ----------------------- -The PHP 5.3 OCI8 Beta extension has support for the Oracle Database -Resident Connection Pool (DRCP) and Fast Application Notification -(FAN). +The PHP OCI8 extension has support for the Oracle Database Resident +Connection Pool (DRCP) and Fast Application Notification (FAN). -This release is for Beta testing only. Questions and issues can be -raised on the Oracle OTN forum (free registration required) +Questions and issues can be raised on the Oracle OTN forum (free +registration required): http://www.oracle.com/technology/forums/php.html @@ -184,9 +183,9 @@ The OCI8 extension will compile with Oracle libraries from version 9iR2 onwards. However, full functionality (e.g. DRCP support) is only available when Oracle 11g is used. -For other, general database functionality, the version of the Oracle -libraries used by PHP does not necessarily have to match the version -of the database. +For general database functionality the version of the Oracle libraries +used by PHP does not necessarily have to match the version of the +database. 6.2. Database Resident Connection Pooling (DRCP) @@ -329,16 +328,15 @@ restriction of Oracle Database 11g. 6.4.2 Closing Connections -With the PHP 5.3 OCI8 Beta extension, persistent connections can now -be closed by the user, allowing greater control over connection -resource usage. Persistent connections will now also be closed -automatically when there is no PHP variable referencing them, such as -at the end of scope of a PHP user function. This will rollback any -uncommitted transaction. These changes to persistent connections make -them behave similarly to non-persistent connections, simplifying the -interface, allowing for greater application consistency and -predictability. Use oci8.old_oci_close_semantics=1 to retain the -historical behavior. +With the PHP OCI8 extension, persistent connections can now be closed +by the user, allowing greater control over connection resource usage. +Persistent connections will now also be closed automatically when +there is no PHP variable referencing them, such as at the end of scope +of a PHP user function. This will rollback any uncommitted +transaction. These changes to persistent connections make them behave +similarly to non-persistent connections, simplifying the interface, +allowing for greater application consistency and predictability. Use +oci8.old_oci_close_semantics=1 to retain the historical behavior. 6.4.3 LOGON Triggers can be used to set session properties diff --git a/ext/oci8/package2.xml b/ext/oci8/package2.xml index b6c4cde7a8..25bf879248 100644 --- a/ext/oci8/package2.xml +++ b/ext/oci8/package2.xml @@ -33,24 +33,21 @@ http://pear.php.net/dtd/package-2.0.xsd"> yes - 2008-04-17 - + 2008-06-19 + - 1.3.2 - 1.3.2 + 1.3.3 + 1.3.3 - beta - beta + stable + stable PHP -Refine DRCP connection pooling functionality -Do scope-end release for oci_pconnect (oci8.old_oci_close_semantics=1 gives old behavior) -Fixed bug #44372 (compilation with Oracle 10gR1 libraries) -Fixed PECL bug #12431 (PEAR install using x86_64 RPM builds) -Allow builds with PHP 4.3.9 onwards +Changed OCI NLS initialization for consistency and technical correctness +Removed obsolete macros @@ -154,6 +151,14 @@ Allow builds with PHP 4.3.9 onwards + + + + + + + + @@ -204,7 +209,6 @@ Allow builds with PHP 4.3.9 onwards - @@ -264,6 +268,7 @@ Allow builds with PHP 4.3.9 onwards + @@ -328,6 +333,25 @@ Allow builds with PHP 4.3.9 onwards + + + 1.3.2 + 1.3.2 + + + beta + beta + + PHP + +Refine DRCP connection pooling functionality +Do scope-end release for oci_pconnect (oci8.old_oci_close_semantics=1 gives old behavior) +Fixed bug #44372 (compilation with Oracle 10gR1 libraries) +Fixed PECL bug #12431 (PEAR install using x86_64 RPM builds) +Allow builds with PHP 4.3.9 onwards + + + 1.3.1 diff --git a/ext/oci8/php_oci8.h b/ext/oci8/php_oci8.h index b3ac72e71a..69910e3fde 100644 --- a/ext/oci8/php_oci8.h +++ b/ext/oci8/php_oci8.h @@ -46,7 +46,7 @@ */ #undef PHP_OCI8_VERSION #endif -#define PHP_OCI8_VERSION "1.3.3-dev" +#define PHP_OCI8_VERSION "1.3.3" extern zend_module_entry oci8_module_entry; #define phpext_oci8_ptr &oci8_module_entry diff --git a/ext/oci8/tests/bind_char_1.phpt b/ext/oci8/tests/bind_char_1.phpt index fd76e60738..d2dddc9086 100644 --- a/ext/oci8/tests/bind_char_1.phpt +++ b/ext/oci8/tests/bind_char_1.phpt @@ -1,7 +1,15 @@ --TEST-- SELECT oci_bind_by_name with SQLT_AFC aka CHAR --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- diff --git a/ext/oci8/tests/debug.phpt b/ext/oci8/tests/debug.phpt index 2910ce3557..deed632eaf 100644 --- a/ext/oci8/tests/debug.phpt +++ b/ext/oci8/tests/debug.phpt @@ -1,11 +1,20 @@ --TEST-- oci_internal_debug() --SKIPIF-- - + 11/', $phpinfo); +if ($iv !== 1) { + die ("skip expected output only valid when using Oracle 11g client libraries"); +} +?> --FILE-- --EXPECTF-- OCI8 DEBUG: OCINlsEnvironmentVariableGet at (%s:%d) -OCI8 DEBUG L1: Got a cached connection: (%s) at (%s:%d) -Done +OCI8 DEBUG L1: Got NO cached connection at (%s:%d) +OCI8 DEBUG: OCIEnvNlsCreate at (%s:%d) +OCI8 DEBUG: OCIHandleAlloc at (%s:%d) +OCI8 DEBUG: OCIHandleAlloc at (%s:%d) +OCI8 DEBUG: OCISessionPoolCreate at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG L1: create_spool: (%s:%d) +OCI8 DEBUG L1: using shared pool: (%s:%d) +OCI8 DEBUG: OCIHandleAlloc at (%s:%d) +OCI8 DEBUG: OCIHandleAlloc at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG: OCIAttrGet at (%s:%d) +OCI8 DEBUG: OCIAttrGet at (%s:%d) +OCI8 DEBUG L1: (%s:%d) +OCI8 DEBUG: OCISessionGet at (%s:%d) +OCI8 DEBUG: OCIAttrGet at (%s:%d) +OCI8 DEBUG: OCIAttrGet at (%s:%d) +OCI8 DEBUG: OCIContextGetValue at (%s:%d) +OCI8 DEBUG: OCIContextGetValue at (%s:%d) +OCI8 DEBUG: OCIMemoryAlloc at (%s:%d) +OCI8 DEBUG: OCIContextSetValue at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG L1: New Non-Persistent Connection address: (%s) at (%s:%d) +OCI8 DEBUG L1: num_persistent=(%s:%d) OCI8 DEBUG: OCISessionRelease at (%s:%d) OCI8 DEBUG: OCIHandleFree at (%s:%d) OCI8 DEBUG: OCIHandleFree at (%s:%d) -OCI8 DEBUG: OCISessionPoolDestroy at (%s:%d) -OCI8 DEBUG: OCIHandleFree at (%s:%d) -OCI8 DEBUG: OCIHandleFree at (%s:%d) -OCI8 DEBUG: OCIHandleFree at (%s:%d) -OCI8 DEBUG: OCIHandleFree at (%s:%d) -OCI8 DEBUG: OCIHandleFree at (%s:%d) +Done diff --git a/ext/oci8/tests/details.inc b/ext/oci8/tests/details.inc index 226ab359de..9e8377c43c 100644 --- a/ext/oci8/tests/details.inc +++ b/ext/oci8/tests/details.inc @@ -33,9 +33,17 @@ if (false !== getenv('PHP_OCI8_TEST_DB')) { } else { $user = "system"; $password = "system"; - $dbase = "oracle"; - $oracle_on_localhost = FALSE; + $dbase = "localhost/XE"; + $oracle_on_localhost = TRUE; $test_drcp = FALSE; } +/* + * Common object names for scripts to use + */ + +$table_name = "tb".substr(str_replace(Array(".", "-"), "_", php_uname("n")), 0, 5); +$type_name = strtoupper("tp".substr(str_replace(Array(".", "-"), "_", php_uname("n")), 0, 5)); +$schema = ''; + ?> -- 2.40.0