From: Antony Dovgal Date: Sat, 10 Jan 2009 22:37:06 +0000 (+0000) Subject: fix tests X-Git-Tag: php-5.4.0alpha1~191^2~4567 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2543ae54c384b86b2127c406c393a21c1f2ea13;p=php fix tests --- diff --git a/ext/ereg/tests/split_error_001.phpt b/ext/ereg/tests/split_error_001.phpt index ff8e6cbdd1..cd395f4c20 100644 --- a/ext/ereg/tests/split_error_001.phpt +++ b/ext/ereg/tests/split_error_001.phpt @@ -31,11 +31,11 @@ echo "Done"; -- Testing split() function with more than expected no. of arguments -- -Warning: Wrong parameter count for split() in %s on line 17 +Warning: split() expects at most 3 parameters, 4 given in %s on line %d NULL -- Testing split() function with less than expected no. of arguments -- -Warning: Wrong parameter count for split() in %s on line 22 +Warning: split() expects at least 2 parameters, 1 given in %s on line %d NULL -Done \ No newline at end of file +Done diff --git a/ext/ereg/tests/split_error_002.phpt b/ext/ereg/tests/split_error_002.phpt index fed988cc3c..94df15d9dc 100644 --- a/ext/ereg/tests/split_error_002.phpt +++ b/ext/ereg/tests/split_error_002.phpt @@ -40,49 +40,49 @@ echo "Done"; --EXPECTF-- *** Testing split() : error conditions *** -Warning: split(): REG_EMPTY in %s on line 16 +Warning: split(): REG_EMPTY in %s on line %d bool(false) -Warning: split(): REG_EPAREN in %s on line 17 +Warning: split(): REG_EPAREN in %s on line %d bool(false) -Warning: split(): REG_EBRACK in %s on line 18 +Warning: split(): REG_EBRACK in %s on line %d bool(false) -Warning: split(): REG_EPAREN in %s on line 19 +Warning: split(): REG_EPAREN in %s on line %d bool(false) -Warning: split(): REG_BADRPT in %s on line 20 +Warning: split(): REG_BADRPT in %s on line %d bool(false) -Warning: split(): REG_BADRPT in %s on line 21 +Warning: split(): REG_BADRPT in %s on line %d bool(false) -Warning: split(): REG_BADRPT in %s on line 22 +Warning: split(): REG_BADRPT in %s on line %d bool(false) -Warning: split(): REG_BADRPT in %s on line 23 -bool(false) +Warning: split() expects parameter 3 to be long, binary string given in %s on line %d +NULL -Warning: split(): REG_BADBR in %s on line 24 +Warning: split(): REG_BADBR in %s on line %d bool(false) -Warning: split(): REG_EMPTY in %s on line 25 +Warning: split(): REG_EMPTY in %s on line %d bool(false) -Warning: split(): REG_EMPTY in %s on line 26 +Warning: split(): REG_EMPTY in %s on line %d bool(false) -Warning: split(): REG_BADBR in %s on line 27 +Warning: split(): REG_BADBR in %s on line %d bool(false) -Warning: split(): REG_ERANGE in %s on line 28 +Warning: split(): REG_ERANGE in %s on line %d bool(false) -Warning: split(): REG_EESCAPE in %s on line 29 +Warning: split(): REG_EESCAPE in %s on line %d bool(false) -Warning: split(): REG_ERANGE in %s on line 30 -bool(false) +Warning: split() expects parameter 3 to be long, binary string given in %s on line %d +NULL string(8) "original" -Done \ No newline at end of file +Done diff --git a/ext/ereg/tests/split_variation_001.phpt b/ext/ereg/tests/split_variation_001.phpt index 397da8724c..8203d6c842 100644 --- a/ext/ereg/tests/split_variation_001.phpt +++ b/ext/ereg/tests/split_variation_001.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECTF-- *** Testing split() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) +Error: 8 - Undefined variable: undefined_var, %s(%d) +Error: 8 - Undefined variable: unset_var, %s(%d) Arg value 0 array(1) { @@ -143,63 +143,38 @@ array(1) { [0]=> string(16) "1 a 1 Array 1 c " } -Error: 8 - Array to string conversion, %s(73) +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} +Error: 2 - split() expects parameter 1 to be binary string, array given, %s(%d) +NULL Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Arg value 1 @@ -215,7 +190,7 @@ array(4) { } Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Arg value 1 @@ -231,31 +206,27 @@ array(4) { } Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) +Error: 4096 - Object of class stdClass could not be converted to string, %s(%d) Arg value -Error: 4096 - Object of class stdClass could not be converted to binary string, %s(74) -Error: 8 - Object of class stdClass to string conversion, %s(74) -array(1) { - [0]=> - string(16) "1 a 1 Array 1 c " -} +Error: 2 - split() expects parameter 1 to be binary string, object given, %s(%d) +NULL Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - split(): REG_EMPTY, %s(74) +Error: 2 - split(): REG_EMPTY, %s(%d) bool(false) Done diff --git a/ext/ereg/tests/split_variation_002.phpt b/ext/ereg/tests/split_variation_002.phpt index b40d58354d..e752e775ae 100644 --- a/ext/ereg/tests/split_variation_002.phpt +++ b/ext/ereg/tests/split_variation_002.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECTF-- *** Testing split() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) +Error: 8 - Undefined variable: undefined_var, %s(%d) +Error: 8 - Undefined variable: unset_var, %s(%d) Arg value 0 array(1) { @@ -139,66 +139,31 @@ array(1) { [0]=> string(3) "0.5" } -Error: 8 - Array to string conversion, %s(73) +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - split() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} +Error: 2 - split() expects parameter 2 to be binary string, array given, %s(%d) +NULL Arg value array(1) { @@ -247,17 +212,11 @@ array(1) { [0]=> string(0) "" } -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) +Error: 4096 - Object of class stdClass could not be converted to string, %s(%d) Arg value -Error: 4096 - Object of class stdClass could not be converted to binary string, %s(74) -Error: 8 - Object of class stdClass to string conversion, %s(74) -array(2) { - [0]=> - string(2) "Ob" - [1]=> - string(3) "ect" -} +Error: 2 - split() expects parameter 2 to be binary string, object given, %s(%d) +NULL Arg value array(1) { diff --git a/ext/ereg/tests/split_variation_003.phpt b/ext/ereg/tests/split_variation_003.phpt index aa8f9c7b0f..262c31f7cd 100644 --- a/ext/ereg/tests/split_variation_003.phpt +++ b/ext/ereg/tests/split_variation_003.phpt @@ -112,41 +112,31 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } -Error: 8 - Array to string conversion, %s(72) +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - split() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - split() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - split() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - split() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - split() expects parameter 3 to be long, array given, %s(%d) +NULL Arg value array(1) { @@ -185,36 +175,25 @@ array(1) { } Arg value -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - split() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL Arg value -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - split() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL Arg value string -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - split() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL Arg value string -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 4096 - Object of class stdClass could not be converted to string, %s(72) +Error: 2 - split() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL +Error: 4096 - Object of class stdClass could not be converted to string, %s(%d) Arg value -Error: 8 - Object of class stdClass could not be converted to int, %s(73) -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - split() expects parameter 3 to be long, object given, %s(%d) +NULL Arg value array(1) { @@ -227,4 +206,4 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } -Done \ No newline at end of file +Done diff --git a/ext/ereg/tests/spliti_error_001.phpt b/ext/ereg/tests/spliti_error_001.phpt index 44d2be6185..104364eec5 100644 --- a/ext/ereg/tests/spliti_error_001.phpt +++ b/ext/ereg/tests/spliti_error_001.phpt @@ -31,11 +31,11 @@ echo "Done"; -- Testing spliti() function with more than expected no. of arguments -- -Warning: Wrong parameter count for spliti() in %s on line 17 +Warning: spliti() expects at most 3 parameters, 4 given in %s on line %d NULL -- Testing spliti() function with less than expected no. of arguments -- -Warning: Wrong parameter count for spliti() in %s on line 22 +Warning: spliti() expects at least 2 parameters, 1 given in %s on line %d NULL -Done \ No newline at end of file +Done diff --git a/ext/ereg/tests/spliti_error_002.phpt b/ext/ereg/tests/spliti_error_002.phpt index 3dc3b2edcd..65b6f6b018 100644 --- a/ext/ereg/tests/spliti_error_002.phpt +++ b/ext/ereg/tests/spliti_error_002.phpt @@ -40,49 +40,49 @@ echo "Done"; --EXPECTF-- *** Testing spliti() : error conditions *** -Warning: spliti(): REG_EMPTY in %s on line 16 +Warning: spliti(): REG_EMPTY in %s on line %d bool(false) -Warning: spliti(): REG_EPAREN in %s on line 17 +Warning: spliti(): REG_EPAREN in %s on line %d bool(false) -Warning: spliti(): REG_EBRACK in %s on line 18 +Warning: spliti(): REG_EBRACK in %s on line %d bool(false) -Warning: spliti(): REG_EPAREN in %s on line 19 +Warning: spliti(): REG_EPAREN in %s on line %d bool(false) -Warning: spliti(): REG_BADRPT in %s on line 20 +Warning: spliti(): REG_BADRPT in %s on line %d bool(false) -Warning: spliti(): REG_BADRPT in %s on line 21 +Warning: spliti(): REG_BADRPT in %s on line %d bool(false) -Warning: spliti(): REG_BADRPT in %s on line 22 +Warning: spliti(): REG_BADRPT in %s on line %d bool(false) -Warning: spliti(): REG_BADRPT in %s on line 23 -bool(false) +Warning: spliti() expects parameter 3 to be long, binary string given in %s on line %d +NULL -Warning: spliti(): REG_BADBR in %s on line 24 +Warning: spliti(): REG_BADBR in %s on line %d bool(false) -Warning: spliti(): REG_EMPTY in %s on line 25 +Warning: spliti(): REG_EMPTY in %s on line %d bool(false) -Warning: spliti(): REG_EMPTY in %s on line 26 +Warning: spliti(): REG_EMPTY in %s on line %d bool(false) -Warning: spliti(): REG_BADBR in %s on line 27 +Warning: spliti(): REG_BADBR in %s on line %d bool(false) -Warning: spliti(): REG_ERANGE in %s on line 28 +Warning: spliti(): REG_ERANGE in %s on line %d bool(false) -Warning: spliti(): REG_EESCAPE in %s on line 29 +Warning: spliti(): REG_EESCAPE in %s on line %d bool(false) -Warning: spliti(): REG_ERANGE in %s on line 30 -bool(false) +Warning: spliti() expects parameter 3 to be long, binary string given in %s on line %d +NULL string(8) "original" -Done \ No newline at end of file +Done diff --git a/ext/ereg/tests/spliti_variation_001.phpt b/ext/ereg/tests/spliti_variation_001.phpt index a2d43f5836..e8f2b901e1 100644 --- a/ext/ereg/tests/spliti_variation_001.phpt +++ b/ext/ereg/tests/spliti_variation_001.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECTF-- *** Testing spliti() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) +Error: 8 - Undefined variable: undefined_var, %s(%d) +Error: 8 - Undefined variable: unset_var, %s(%d) Arg value 0 array(1) { @@ -143,63 +143,38 @@ array(1) { [0]=> string(16) "1 a 1 Array 1 c " } -Error: 8 - Array to string conversion, %s(73) +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 1 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(2) { - [0]=> - string(6) "1 a 1 " - [1]=> - string(5) " 1 c " -} +Error: 2 - spliti() expects parameter 1 to be binary string, array given, %s(%d) +NULL Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Arg value 1 @@ -215,7 +190,7 @@ array(4) { } Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Arg value 1 @@ -231,31 +206,27 @@ array(4) { } Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) +Error: 4096 - Object of class stdClass could not be converted to string, %s(%d) Arg value -Error: 4096 - Object of class stdClass could not be converted to binary string, %s(74) -Error: 8 - Object of class stdClass to string conversion, %s(74) -array(1) { - [0]=> - string(16) "1 a 1 Array 1 c " -} +Error: 2 - spliti() expects parameter 1 to be binary string, object given, %s(%d) +NULL Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Arg value -Error: 2 - spliti(): REG_EMPTY, %s(74) +Error: 2 - spliti(): REG_EMPTY, %s(%d) bool(false) Done diff --git a/ext/ereg/tests/spliti_variation_002.phpt b/ext/ereg/tests/spliti_variation_002.phpt index 82316164d9..8b6b2f92cc 100644 --- a/ext/ereg/tests/spliti_variation_002.phpt +++ b/ext/ereg/tests/spliti_variation_002.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECTF-- *** Testing spliti() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) +Error: 8 - Undefined variable: undefined_var, %s(%d) +Error: 8 - Undefined variable: unset_var, %s(%d) Arg value 0 array(1) { @@ -139,66 +139,31 @@ array(1) { [0]=> string(3) "0.5" } -Error: 8 - Array to string conversion, %s(73) +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} -Error: 8 - Array to string conversion, %s(73) +Error: 2 - spliti() expects parameter 2 to be binary string, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -Error: 8 - Array to string conversion, %s(74) -array(3) { - [0]=> - string(1) "A" - [1]=> - string(0) "" - [2]=> - string(2) "ay" -} +Error: 2 - spliti() expects parameter 2 to be binary string, array given, %s(%d) +NULL Arg value array(1) { @@ -247,19 +212,11 @@ array(1) { [0]=> string(0) "" } -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) +Error: 4096 - Object of class stdClass could not be converted to string, %s(%d) Arg value -Error: 4096 - Object of class stdClass could not be converted to binary string, %s(74) -Error: 8 - Object of class stdClass to string conversion, %s(74) -array(3) { - [0]=> - string(2) "Ob" - [1]=> - string(0) "" - [2]=> - string(2) "ct" -} +Error: 2 - spliti() expects parameter 2 to be binary string, object given, %s(%d) +NULL Arg value array(1) { diff --git a/ext/ereg/tests/spliti_variation_003.phpt b/ext/ereg/tests/spliti_variation_003.phpt index e8160cf086..03abfeaa68 100644 --- a/ext/ereg/tests/spliti_variation_003.phpt +++ b/ext/ereg/tests/spliti_variation_003.phpt @@ -112,41 +112,31 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } -Error: 8 - Array to string conversion, %s(72) +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - spliti() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - spliti() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - spliti() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 8 - Array to string conversion, %s(72) +Error: 2 - spliti() expects parameter 3 to be long, array given, %s(%d) +NULL +Error: 8 - Array to string conversion, %s(%d) Arg value Array -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - spliti() expects parameter 3 to be long, array given, %s(%d) +NULL Arg value array(1) { @@ -185,36 +175,25 @@ array(1) { } Arg value -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - spliti() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL Arg value -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - spliti() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL Arg value string -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - spliti() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL Arg value string -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} -Error: 4096 - Object of class stdClass could not be converted to string, %s(72) +Error: 2 - spliti() expects parameter 3 to be long, Unicode string given, %s(%d) +NULL +Error: 4096 - Object of class stdClass could not be converted to string, %s(%d) Arg value -Error: 8 - Object of class stdClass could not be converted to int, %s(73) -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} +Error: 2 - spliti() expects parameter 3 to be long, object given, %s(%d) +NULL Arg value array(1) { @@ -227,4 +206,4 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } -Done \ No newline at end of file +Done