--TEST-- Test ereg() function : usage variations - unexpected type for arg 3 --FILE-- --EXPECTF-- *** Testing ereg() : usage variations *** Error: 8 - Undefined variable: undefined_var, %s(61) Error: 8 - Undefined variable: unset_var, %s(64) Arg value 0 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 1 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 12345 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value -2345 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 10.5 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value -10.5 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 101234567000 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 1.07654321E-9 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 0.5 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 1 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value 1 Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value string Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value string Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Error: 4096 - Object of class stdClass could not be converted to string, %s(70) Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Arg value Error: 8192 - Function ereg() is deprecated, %s(71) int(6) array(2) { [0]=> string(6) "hello!" [1]=> string(2) "el" } Done