tony2001 Sat Jan 10 22:37:07 2009 UTC
Modified files:
/php-src/ext/ereg/tests split_error_001.phpt split_error_002.phpt
split_variation_001.phpt
split_variation_002.phpt
split_variation_003.phpt
spliti_error_001.phpt spliti_error_002.phpt
spliti_variation_001.phpt
spliti_variation_002.phpt
spliti_variation_003.phpt
Log:
fix tests
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/split_error_001.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/ereg/tests/split_error_001.phpt
diff -u php-src/ext/ereg/tests/split_error_001.phpt:1.1
php-src/ext/ereg/tests/split_error_001.phpt:1.2
--- php-src/ext/ereg/tests/split_error_001.phpt:1.1 Fri Apr 11 08:57:06 2008
+++ php-src/ext/ereg/tests/split_error_001.phpt Sat Jan 10 22:37:06 2009
@@ -31,11 +31,11 @@
-- 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
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/split_error_002.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/ereg/tests/split_error_002.phpt
diff -u php-src/ext/ereg/tests/split_error_002.phpt:1.1
php-src/ext/ereg/tests/split_error_002.phpt:1.2
--- php-src/ext/ereg/tests/split_error_002.phpt:1.1 Fri Apr 11 08:57:06 2008
+++ php-src/ext/ereg/tests/split_error_002.phpt Sat Jan 10 22:37:06 2009
@@ -40,49 +40,49 @@
--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
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/split_variation_001.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/ereg/tests/split_variation_001.phpt
diff -u php-src/ext/ereg/tests/split_variation_001.phpt:1.2
php-src/ext/ereg/tests/split_variation_001.phpt:1.3
--- php-src/ext/ereg/tests/split_variation_001.phpt:1.2 Tue May 27 18:16:00 2008
+++ php-src/ext/ereg/tests/split_variation_001.phpt Sat Jan 10 22:37:06 2009
@@ -81,8 +81,8 @@
?>
--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 @@
[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 @@
}
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 @@
}
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
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/split_variation_002.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/ereg/tests/split_variation_002.phpt
diff -u php-src/ext/ereg/tests/split_variation_002.phpt:1.2
php-src/ext/ereg/tests/split_variation_002.phpt:1.3
--- php-src/ext/ereg/tests/split_variation_002.phpt:1.2 Tue May 27 18:16:00 2008
+++ php-src/ext/ereg/tests/split_variation_002.phpt Sat Jan 10 22:37:06 2009
@@ -81,8 +81,8 @@
?>
--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 @@
[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 @@
[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) {
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/split_variation_003.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/ereg/tests/split_variation_003.phpt
diff -u php-src/ext/ereg/tests/split_variation_003.phpt:1.2
php-src/ext/ereg/tests/split_variation_003.phpt:1.3
--- php-src/ext/ereg/tests/split_variation_003.phpt:1.2 Tue Apr 22 15:31:54 2008
+++ php-src/ext/ereg/tests/split_variation_003.phpt Sat Jan 10 22:37:06 2009
@@ -112,41 +112,31 @@
[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 @@
}
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 @@
[0]=>
string(9) "1 2 3 4 5"
}
-Done
\ No newline at end of file
+Done
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/spliti_error_001.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/ereg/tests/spliti_error_001.phpt
diff -u php-src/ext/ereg/tests/spliti_error_001.phpt:1.1
php-src/ext/ereg/tests/spliti_error_001.phpt:1.2
--- php-src/ext/ereg/tests/spliti_error_001.phpt:1.1 Fri Apr 11 08:57:06 2008
+++ php-src/ext/ereg/tests/spliti_error_001.phpt Sat Jan 10 22:37:06 2009
@@ -31,11 +31,11 @@
-- 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
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/spliti_error_002.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/ereg/tests/spliti_error_002.phpt
diff -u php-src/ext/ereg/tests/spliti_error_002.phpt:1.1
php-src/ext/ereg/tests/spliti_error_002.phpt:1.2
--- php-src/ext/ereg/tests/spliti_error_002.phpt:1.1 Fri Apr 11 08:57:06 2008
+++ php-src/ext/ereg/tests/spliti_error_002.phpt Sat Jan 10 22:37:06 2009
@@ -40,49 +40,49 @@
--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
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/spliti_variation_001.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/ereg/tests/spliti_variation_001.phpt
diff -u php-src/ext/ereg/tests/spliti_variation_001.phpt:1.2
php-src/ext/ereg/tests/spliti_variation_001.phpt:1.3
--- php-src/ext/ereg/tests/spliti_variation_001.phpt:1.2 Tue May 27
18:16:00 2008
+++ php-src/ext/ereg/tests/spliti_variation_001.phpt Sat Jan 10 22:37:06 2009
@@ -81,8 +81,8 @@
?>
--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 @@
[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 @@
}
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 @@
}
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
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/spliti_variation_002.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/ereg/tests/spliti_variation_002.phpt
diff -u php-src/ext/ereg/tests/spliti_variation_002.phpt:1.2
php-src/ext/ereg/tests/spliti_variation_002.phpt:1.3
--- php-src/ext/ereg/tests/spliti_variation_002.phpt:1.2 Tue May 27
18:16:00 2008
+++ php-src/ext/ereg/tests/spliti_variation_002.phpt Sat Jan 10 22:37:06 2009
@@ -81,8 +81,8 @@
?>
--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 @@
[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 @@
[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) {
http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/tests/spliti_variation_003.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/ereg/tests/spliti_variation_003.phpt
diff -u php-src/ext/ereg/tests/spliti_variation_003.phpt:1.2
php-src/ext/ereg/tests/spliti_variation_003.phpt:1.3
--- php-src/ext/ereg/tests/spliti_variation_003.phpt:1.2 Tue Apr 22
15:31:54 2008
+++ php-src/ext/ereg/tests/spliti_variation_003.phpt Sat Jan 10 22:37:06 2009
@@ -112,41 +112,31 @@
[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 @@
}
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 @@
[0]=>
string(9) "1 2 3 4 5"
}
-Done
\ No newline at end of file
+Done
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php