Skip to content

Commit 3d497f8

Browse files
committed
Make tests portable across PHP 7.x versions
1 parent 338802b commit 3d497f8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ext/oci8/tests/bug51291_1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ array(4) {
167167

168168
Test 2 - Parse
169169

170-
Warning: oci_error() expects parameter 1 to be resource, boolean given in %sbug51291_1.php on line %d
170+
Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d
171171
bool(false)
172172
array(4) {
173173
["code"]=>
@@ -182,7 +182,7 @@ array(4) {
182182
NULL
183183
2nd call
184184

185-
Warning: oci_error() expects parameter 1 to be resource, boolean given in %sbug51291_1.php on line %d
185+
Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d
186186
bool(false)
187187
array(4) {
188188
["code"]=>

ext/oci8/tests/lob_002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ object(OCI-Lob)#%d (1) {
6262
}
6363
int(0)
6464

65-
Warning: OCI-Lob::write() expects parameter 2 to be integer, string given in %slob_002.php on line %d
65+
Warning: OCI-Lob::write() expects parameter 2 to be int%s string given in %slob_002.php on line %d
6666
NULL
6767
int(4)
6868
int(40000)
6969
int(40004)
7070

71-
Warning: OCI-Lob::seek() expects parameter 1 to be integer, string given in %slob_002.php on line %d
71+
Warning: OCI-Lob::seek() expects parameter 1 to be int%s string given in %slob_002.php on line %d
7272
NULL
7373
bool(false)
7474
int(40004)

ext/oci8/tests/lob_026.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ NULL
7373
bool(true)
7474
int(3)
7575

76-
Warning: oci_lob_seek() expects parameter 1 to be OCI-Lob, integer given in %s on line %d
76+
Warning: oci_lob_seek() expects parameter 1 to be OCI-Lob, int%sgiven in %s on line %d
7777
NULL
7878
bool(true)
7979
array(2) {

ext/oci8/tests/privileged_connect.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ Warning: oci_connect(): Privileged connect is disabled. Enable oci8.privileged_c
2121

2222
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
2323

24-
Warning: oci_connect() expects parameter 5 to be integer, string given in %s on line %d
24+
Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
2525
Done

ext/oci8/tests/privileged_connect1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ Warning: oci_connect(): ORA-%d: %s in %s on line %d
2323

2424
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
2525

26-
Warning: oci_connect() expects parameter 5 to be integer, string given in %s on line %d
26+
Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
2727
Done

0 commit comments

Comments
 (0)