summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/debug.phpt
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-02-16 10:13:02 +0100
committerOndřej Surý <ondrej@sury.org>2011-02-16 10:13:02 +0100
commitfd5a0b31640419ca63d1ddeaffd6d3cf2a741814 (patch)
treebfd17d84c5181d7b98d7d66f56573f4fc897e31c /ext/oci8/tests/debug.phpt
parent01fcdff3849c3691d9aaeaab735846ab6d8895ca (diff)
downloadphp-upstream/5.3.5.tar.gz
Imported Upstream version 5.3.5upstream/5.3.5
Diffstat (limited to 'ext/oci8/tests/debug.phpt')
-rw-r--r--ext/oci8/tests/debug.phpt56
1 files changed, 5 insertions, 51 deletions
diff --git a/ext/oci8/tests/debug.phpt b/ext/oci8/tests/debug.phpt
index 49e3d4cfd..fe96e6e87 100644
--- a/ext/oci8/tests/debug.phpt
+++ b/ext/oci8/tests/debug.phpt
@@ -1,16 +1,7 @@
--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");
-}
-?>
+<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--FILE--
<?php
@@ -27,45 +18,8 @@ else {
echo "Done\n";
+oci_internal_debug(false);
+
?>
---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)
+--EXPECTREGEX--
+^OCI8 DEBUG: .*Done$