]> granicus.if.org Git - php/commitdiff
Oracle 11.2 (and beyond) compat changes
authorChristopher Jones <sixd@php.net>
Fri, 2 Oct 2009 22:39:28 +0000 (22:39 +0000)
committerChristopher Jones <sixd@php.net>
Fri, 2 Oct 2009 22:39:28 +0000 (22:39 +0000)
ext/oci8/tests/password_new.phpt
ext/oci8/tests/password_old.phpt

index e8642abca7cc15d8af26aace1f08d061031e25ae..ba6baa964b8c5b20c49aa0d74deec05af9f792db 100644 (file)
@@ -3,21 +3,21 @@ oci_password_change()
 --SKIPIF--
 <?php
 if (!extension_loaded('oci8')) die("skip no oci8 extension"); 
-require dirname(__FILE__)."/connect.inc";
+require(dirname(__FILE__)."/connect.inc");
 if (empty($dbase)) die ("skip requires database connection string be set");
 if ($test_drcp) die("skip password change not supported in DRCP Mode");
 
-// This test is known to fail with Oracle 10g client libraries
-// connecting to Oracle Database 11.1.0.6 (Oracle bug 6277160)
+// This test is known to fail with Oracle 10.2.0.4 client libraries
+// connecting to Oracle Database 11 (Oracle bug 6277160, fixed 10.2.0.5)
 $sv = oci_server_version($c);
-$sv = preg_match('/11.1/', $sv, $matches);
+$sv = preg_match('/Release (11|12)\./', $sv, $matches);
 if ($sv === 1) {
        ob_start();
        phpinfo(INFO_MODULES);
        $phpinfo = ob_get_clean();
        $iv = preg_match('/Oracle .*Version => 10/', $phpinfo);
        if ($iv === 1) {
-               die ("skip test known to fail using Oracle 10gR2 client libs connecting to Oracle 11.1 (6277160)");
+               die ("skip test known to fail using Oracle 10.2.0.4 client libs connecting to Oracle 11 (6277160)");
        }
 }
 ?>
index 157bdebcaa27d8cf992018b8acea20df7e71b98e..abcaeb1e56d3ce571526ffef364cc32f52def001 100644 (file)
@@ -3,21 +3,21 @@ ocipasswordchange()
 --SKIPIF--
 <?php
 if (!extension_loaded('oci8')) die("skip no oci8 extension"); 
-require dirname(__FILE__)."/connect.inc";
+require(dirname(__FILE__)."/connect.inc");
 if (empty($dbase)) die ("skip requires database connection string be set");
 if ($test_drcp) die("skip password change not supported in DRCP Mode");
 
-// This test is known to fail with Oracle 10g client libraries
-// connecting to Oracle Database 11.1.0.6 (Oracle bug 6277160)
+// This test is known to fail with Oracle 10.2.0.4 client libraries
+// connecting to Oracle Database 11 (Oracle bug 6277160, fixed 10.2.0.5)
 $sv = oci_server_version($c);
-$sv = preg_match('/11.1/', $sv, $matches);
+$sv = preg_match('/Release (11|12)\./', $sv, $matches);
 if ($sv === 1) {
        ob_start();
        phpinfo(INFO_MODULES);
        $phpinfo = ob_get_clean();
        $iv = preg_match('/Oracle .*Version => 10/', $phpinfo);
        if ($iv === 1) {
-               die ("skip test known to fail using Oracle 10gR2 client libs connecting to Oracle 11.1 (6277160)");
+               die ("skip test known to fail using Oracle 10.2.0.4 client libs connecting to Oracle 11 (6277160)");
        }
 }
 ?>