]> granicus.if.org Git - php/commitdiff
Fix failures due to new deprecations
authorChristopher Jones <christopher.jones@oracle.com>
Mon, 15 Feb 2021 01:15:44 +0000 (12:15 +1100)
committerChristopher Jones <christopher.jones@oracle.com>
Mon, 15 Feb 2021 01:17:46 +0000 (12:17 +1100)
12 files changed:
ext/oci8/tests/bind_char_1.phpt
ext/oci8/tests/coll_010.phpt
ext/oci8/tests/coll_010_func.phpt
ext/oci8/tests/coll_017.phpt
ext/oci8/tests/coll_017_func.phpt
ext/oci8/tests/coll_019.phpt
ext/oci8/tests/conn_attr_4.phpt
ext/oci8/tests/edition_2.phpt
ext/oci8/tests/extauth_01.phpt
ext/oci8/tests/extauth_02.phpt
ext/oci8/tests/extauth_03.phpt
ext/oci8/tests/lob_null.phpt

index f405155980cb65da726ab823409b8f2e394c6619..93dcd96e3788efcf7725f855dd4e6b535b64e502 100644 (file)
@@ -87,17 +87,17 @@ if ($r)
     do_e_q($s);
 
 echo "Test 2.4: Type: AFC:  Length: strlen\n";
-$r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1), SQLT_AFC);
+$r = oci_bind_by_name($s, ":bv", $bv1, 0, SQLT_AFC);
 if ($r)
     do_e_q($s);
 
 echo "Test 2.5: Type: AFC.  Length: strlen-1\n";
-$r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)-1, SQLT_AFC);
+$r = oci_bind_by_name($s, ":bv", $bv1, -1, SQLT_AFC);
 if ($r)
     do_e_q($s);
 
 echo "Test 2.6: Type: AFC.  Length: strlen+1\n";
-$r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)+1, SQLT_AFC);
+$r = oci_bind_by_name($s, ":bv", $bv1, 1, SQLT_AFC);
 if ($r)
     do_e_q($s);
 
@@ -159,17 +159,17 @@ if ($r)
     do_e_q($s);
 
 echo "Test 4.4: Type: AFC:  Length: strlen\n";
-$r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1), SQLT_AFC);
+$r = oci_bind_by_name($s, ":bv", $bv1, 0, SQLT_AFC);
 if ($r)
     do_e_q($s);
 
 echo "Test 4.5: Type: AFC.  Length: strlen-1\n";
-$r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)-1, SQLT_AFC);
+$r = oci_bind_by_name($s, ":bv", $bv1, -1, SQLT_AFC);
 if ($r)
     do_e_q($s);
 
 echo "Test 4.6: Type: AFC.  Length: strlen+1\n";
-$r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)+1, SQLT_AFC);
+$r = oci_bind_by_name($s, ":bv", $bv1, +1, SQLT_AFC);
 if ($r)
     do_e_q($s);
 
index da0b278e07272c7b4d1fcb3f48118e275c45f478..005dcd54604d7af0a34d3e9e8e0f914a638ea5cc 100644 (file)
@@ -10,9 +10,9 @@ require(__DIR__.'/skipif.inc');
 
 require __DIR__."/connect.inc";
 
-$ora_sql = "DROP TYPE
-                        ".$type_name."
-           ";
+error_reporting(E_ALL ^ E_DEPRECATED);
+
+$ora_sql = "DROP TYPE ".$type_name;
 
 $statement = oci_parse($c,$ora_sql);
 @oci_execute($statement);
index f244ce16a8fac4dc324f70168089bbe17af918a5..3950dc7cb469cf68b5c3796aea7f7b908ef29894 100644 (file)
@@ -10,9 +10,9 @@ require(__DIR__.'/skipif.inc');
 
 require __DIR__."/connect.inc";
 
-$ora_sql = "DROP TYPE
-                        ".$type_name."
-           ";
+error_reporting(E_ALL ^ E_DEPRECATED);
+
+$ora_sql = "DROP TYPE ".$type_name;
 
 $statement = oci_parse($c,$ora_sql);
 @oci_execute($statement);
index 6701a930c329f3fde212b4829c0434575feb8d84..082713a7323005ea6d6b784582dc07bd011f0a6b 100644 (file)
@@ -10,9 +10,9 @@ require(__DIR__.'/skipif.inc');
 
 require __DIR__."/connect.inc";
 
-$ora_sql = "DROP TYPE
-                        ".$type_name."
-           ";
+error_reporting(E_ALL ^ E_DEPRECATED);
+
+$ora_sql = "DROP TYPE ".$type_name;
 
 $statement = oci_parse($c,$ora_sql);
 @oci_execute($statement);
index b1c403a16b199eccab528430dafa8c84c293a38f..8f4587d54cfee14851221ee1a7064f3ef14d3261 100644 (file)
@@ -10,9 +10,9 @@ require(__DIR__.'/skipif.inc');
 
 require __DIR__."/connect.inc";
 
-$ora_sql = "DROP TYPE
-                        ".$type_name."
-           ";
+error_reporting(E_ALL ^ E_DEPRECATED);
+
+$ora_sql = "DROP TYPE ".$type_name;
 
 $statement = oci_parse($c,$ora_sql);
 @oci_execute($statement);
index be79e98aab800c0cd817ba616db26b8247876cce..de6e18710202c3dc99581399cc544cf294d8718a 100644 (file)
@@ -8,6 +8,8 @@ require(__DIR__.'/skipif.inc');
 --FILE--
 <?php
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 require __DIR__."/connect.inc";
 
 $ora_sql = "DROP TYPE ".$type_name;
index e4e457194d2c91a1545e567cd2c9e0f34a05428a..9cf55f55f95b8b8ebbdb4ba1fcbcc484fedf083c 100644 (file)
@@ -21,6 +21,8 @@ if (!(isset($matches[0]) &&
 --FILE--
 <?php
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 $testuser     = 'testuser_attr_4';  // Used in conn_attr.inc
 $testpassword = 'testuser';
 
index 4aab1c36bca012851ac268b225d0f38fbc7b4c6a..7cfcaa8d180d7666e82fcefe21e7658dc6f04c60 100644 (file)
@@ -27,6 +27,8 @@ if (!(isset($matches[0]) &&
 --FILE--
 <?php
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 /* In 11.2, there can only be one child edition.  So this test will
  * fail to create the necessary editions if a child edition exists
  * already
index db23097d82d5ba522cea167081a3b4e4a1fb65f7..6b543922ec2fc77f773784fc7a60cc665af4ed1d 100644 (file)
@@ -12,6 +12,8 @@ oci8.privileged_connect=1
 --FILE--
 <?php
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 // Run Test
 
 echo "Test 1\n";
index c8c3dd67253392b931e25a481f1ce9eb55ba96ba..03911fda90853ee91b1e74873b1edaaa214bce3a 100644 (file)
@@ -11,6 +11,8 @@ oci8.privileged_connect=1
 --FILE--
 <?php
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 // Run Test
 
 echo "Test 1\n";
index 863f94499b4feea68366f9844a1f053a06c4c588..7aefc4726feafe4adcc55de3619a98f974621885 100644 (file)
@@ -11,6 +11,8 @@ oci8.privileged_connect=1
 --FILE--
 <?php
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 // Run Test
 
 echo "Test 1\n";
index 2543aeef81264e9029daa9cffbcdcd4b97f9d6ae..df9c83fd4795f364990c33efdd5fe7a119d6cdc1 100644 (file)
@@ -10,6 +10,8 @@ require(__DIR__.'/skipif.inc');
 
 require __DIR__.'/connect.inc';
 
+error_reporting(E_ALL ^ E_DEPRECATED);
+
 // Initialization
 
 $s = oci_parse($c, 'drop table lob_null_tab');