diff options
author | Christopher Jones <sixd@php.net> | 2010-08-07 00:28:09 +0000 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2010-08-07 00:28:09 +0000 |
commit | 05be95c0bee8c215d813ea71e000fa0b76abaf86 (patch) | |
tree | e1f53f5490f30a7c83e79ad929797559deb359e2 /tests/debug.phpt | |
download | php-git-oci8-1.4.3.tar.gz |
Tagging the 1.4.3 releaseoci8-1.4.3
Diffstat (limited to 'tests/debug.phpt')
-rw-r--r-- | tests/debug.phpt | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/tests/debug.phpt b/tests/debug.phpt new file mode 100644 index 0000000000..49e3d4cfd1 --- /dev/null +++ b/tests/debug.phpt @@ -0,0 +1,71 @@ +--TEST-- +oci_internal_debug() +--SKIPIF-- +<?php +if (!extension_loaded('oci8')) die("skip no oci8 extension"); +ob_start(); +phpinfo(INFO_MODULES); +$phpinfo = ob_get_clean(); +$iv = preg_match('/Oracle .*Version => (11\.2|12\.)/', $phpinfo); +if ($iv !== 1) { + die ("skip expected output only valid when using Oracle 11gR2+ client libraries"); +} +?> +--FILE-- +<?php + +require(dirname(__FILE__)."/details.inc"); + +oci_internal_debug(true); + +if (!empty($dbase)) { + oci_connect($user, $password, $dbase); +} +else { + oci_connect($user, $password); +} + +echo "Done\n"; + +?> +--EXPECTF-- +OCI8 DEBUG: OCINlsEnvironmentVariableGet at (%s:%d) +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: OCIHandleAlloc at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG: OCISessionPoolCreate at (%s:%d) +OCI8 DEBUG: OCIAttrSet at (%s:%d) +OCI8 DEBUG: OCIHandleFree 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: (numopen=0)(numbusy=0) at (%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) +Done +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) |