echo "Done\n";
?>
--EXPECTF--
-TypeError: define() expects argument #1 ($constant_name) to be of type string, array given
+TypeError: define(): Argument #1 ($constant_name) must be of type string, array given
Notice: Constant TRUE already defined in %s on line %d
bool(false)
Warning: get_class() called without object from outside a class in %s on line %d
bool(false)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
string(3) "foo"
string(4) "foo2"
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
Done
--EXPECTF--
int(2)
int(10)
-{closure}() expects argument #1 ($x) to be of type int, string given, called in %s on line %d
+{closure}(): Argument #1 ($x) must be of type int, string given, called in %s on line %d
array(3) {
[0]=>
int(20)
[2]=>
int(30)
}
-{closure}() expects argument #2 ($args) to be of type ?int, string given, called in %s on line %d
+{closure}(): Argument #2 ($args) must be of type ?int, string given, called in %s on line %d
?>
--EXPECTF--
Warning: Undefined variable: nonesuchvar in %s on line %d
-array_walk() expects argument #2 ($funcname) to be a valid callback, first array member is not a valid class name or object
+array_walk(): Argument #2 ($funcname) must be a valid callback, first array member is not a valid class name or object
echo "Done\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: test() expects argument #1 ($object) to be of type OtherClassName, ClassName given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: test(): Argument #1 ($object) must be of type OtherClassName, ClassName given, called in %s:%d
Stack trace:
#0 %s(%d): test(Object(ClassName))
#1 {main}
ok
ok
-Fatal error: Uncaught TypeError: foo\test5() expects argument #1 ($bar) to be of type bar, foo\bar given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo\test5(): Argument #1 ($bar) must be of type bar, foo\bar given, called in %s:%d
Stack trace:
#0 %s(%d): foo\test5(Object(foo\bar))
#1 {main}
$foo->bar($foo); // Ok!
$foo->bar(new \stdclass); // Error, ok!
--EXPECTF--
-Fatal error: Uncaught TypeError: foobar\foo::bar() expects argument #1 ($a) to be of type foobar\foo, stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php:5
+Fatal error: Uncaught TypeError: foobar\foo::bar(): Argument #1 ($a) must be of type foobar\foo, stdClass given, called in %s:%d
Stack trace:
#0 %s(%d): foobar\foo->bar(Object(stdClass))
#1 {main}
ok
__callstatic:
string(3) "www"
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot access self:: when no class scope is active
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access self:: when no class scope is active
__call:
string(1) "y"
ok
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'bar' does not have a method 'www'
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot access self:: when no class scope is active
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'bar' does not have a method 'www'
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access self:: when no class scope is active
--EXPECT--
string(27) "A::func2: This should work!"
string(27) "A::func3: This should work!"
-call_user_func_array() expects argument #1 ($function) to be a valid callback, cannot access private method A::func22()
-call_user_func_array() expects argument #1 ($function) to be a valid callback, class 'A' does not have a method 'inexistent'
+call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method A::func22()
+call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'A' does not have a method 'inexistent'
--EXPECT--
string(27) "B::func2: This should work!"
string(27) "B::func3: This should work!"
-call_user_func_array() expects argument #1 ($function) to be a valid callback, class 'B' does not have a method 'inexistent'
+call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'B' does not have a method 'inexistent'
call_user_func_array(function(&$a) {}, $args);
echo strval("okey");
--EXPECTF--
-Warning: {closure}() expects argument #1 ($a) to be passed by reference, value given in %s on line %d
+Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d
okey
int(1)
}
-Fatal error: Uncaught TypeError: a() expects argument #1 ($a) to be of type array, null given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: a(): Argument #1 ($a) must be of type array, null given, called in %s:%d
Stack trace:
#0 %s(%d): a(NULL)
#1 {main}
}
?>
--EXPECT--
-array_map() expects argument #1 ($callback) to be a valid callback, function '%n' not found or invalid function name
-array_map() expects argument #1 ($callback) to be a valid callback, function '%n %i' not found or invalid function name
-array_map() expects argument #1 ($callback) to be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '%n' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '%n %i' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name
}
?>
--EXPECT--
-array_map() expects argument #1 ($callback) to be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
};
?>
--EXPECTF--
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
object(class@anonymous)#1 (0) {
}
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
object(class@anonymous)#1 (0) {
}
};
?>
--EXPECTF--
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
int(0)
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
int(0)
float(NAN)
bool(true)
-Fatal error: Uncaught TypeError: takes_int() expects argument #1 ($int) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($int) must be of type int, float given, called in %s:%d
Stack trace:
#0 %s(9): takes_int(NAN)
#1 {main}
call_user_func(function (array &$ref) {var_dump("xxx");}, 'not_an_array_variable');
?>
--EXPECTF--
-Fatal error: Uncaught Exception: Foo\{closure}() expects argument #1 ($ref) to be passed by reference, value given in %s:%d
+Fatal error: Uncaught Exception: Foo\{closure}(): Argument #1 ($ref) must be passed by reference, value given in %s:%d
Stack trace:
#0 [internal function]: Foo\{closure}(%s)
#1 %sbug74164.php(%d): call_user_func(%s)
?>
--EXPECT--
string(6) "foobar"
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot access private method testing\foo::priv()
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot access protected method testing\foo::prot()
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access private method testing\foo::priv()
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access protected method testing\foo::prot()
?>
--EXPECTF--
string(3) "foo"
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'foo' not found
-call_user_func() expects argument #1 ($function) to be a valid callback, class '' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'foo' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class '' not found
Warning: Undefined variable: foo in %s on line %d
-call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
+call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
Warning: Undefined variable: foo in %s on line %d
-call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
+call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
?>
--EXPECTF--
-Warning: Foo\bar() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: Foo\bar(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
int(42)
-Warning: Foo\bar() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: Foo\bar(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
int(42)
Warning: Trying to access array offset on value of type null in %s on line %d
-Warning: foo() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: foo(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
array(0) {
}
?>
--EXPECTF--
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d
-Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d
-Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d
-Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d
-Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
?>
--EXPECTF--
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
bool(true)
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
bool(true)
}
?>
--EXPECT--
-call_user_func_array() expects argument #2 ($args) to be of type array, null given
+call_user_func_array(): Argument #2 ($args) must be of type array, null given
Warning: Undefined variable: y in %s on line %d
Exception: Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expected
-Fatal error: Uncaught TypeError: test() expects argument #1 ($a) to be of type Closure, stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: test(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s:%d
Stack trace:
#0 %s(%d): test(Object(stdClass))
#1 {main}
echo "Exception: " . $e->getMessage() . "\n";
}
--EXPECTF--
-Exception: {closure}() expects argument #1 ($a) to be of type A, B given, called in %s on line %d
-Exception: {closure}() expects argument #1 ($a) to be of type A, B given
-Exception: {closure}() expects argument #1 ($a) to be of type A, B given
+Exception: {closure}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d
+Exception: {closure}(): Argument #1 ($a) must be of type A, B given
+Exception: {closure}(): Argument #1 ($a) must be of type A, B given
Stack trace:
#0 {main}
-TypeError: foo() expects argument #1 ($x) to be of type callable, string given, called in %s on line %d and defined in %s:%d
+TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
Stack trace:
#0 %s(%d): foo('C::foo')
#1 {main}
echo "Done\n";
?>
--EXPECTF--
-Warning: set_exception_handler() expects argument #1 ($exception_handler) to be a valid callback in %s on line %d
+Warning: set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback in %s on line %d
-Warning: set_exception_handler() expects argument #1 ($exception_handler) to be a valid callback in %s on line %d
+Warning: set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback in %s on line %d
Done
ArgumentCountError
Too few arguments to function bat(), 1 passed in %s and exactly 2 expected
TypeError
-bat() expects argument #1 ($foo) to be of type int, string given, called in %s on line %d
+bat(): Argument #1 ($foo) must be of type int, string given, called in %s on line %d
TypeError
-bat() expects argument #2 ($bar) to be of type string, int given, called in %s on line %d
+bat(): Argument #2 ($bar) must be of type string, int given, called in %s on line %d
}
--EXPECTF--
-foo() expects argument #2 ($bar) to be of type int, array given, called in %s on line %d
-foo() expects argument #4 ($bar) to be of type int, array given, called in %s on line %d
+foo(): Argument #2 ($bar) must be of type int, array given, called in %s on line %d
+foo(): Argument #4 ($bar) must be of type int, array given, called in %s on line %d
gen(42);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: gen() expects argument #1 ($a) to be of type array, int given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: gen(): Argument #1 ($a) must be of type array, int given, called in %s:%d
Stack trace:
#0 %sgenerator_with_type_check.php(3): gen(42)
#1 {main}
}
?>
--EXPECTF--
-gen() expects argument #1 ($a) to be of type array, int given, called in %s on line %d
-gen() expects argument #1 ($a) to be of type array, int given, called in %s on line %d
+gen(): Argument #1 ($a) must be of type array, int given, called in %s on line %d
+gen(): Argument #1 ($a) must be of type array, int given, called in %s on line %d
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Generator::throw() expects argument #1 ($exception) to be of type Throwable, object given in %s:%d
+Fatal error: Uncaught TypeError: Generator::throw(): Argument #1 ($exception) must be of type Throwable, object given in %s:%d
Stack trace:
#0 %s(%d): Generator->throw(Object(stdClass))
#1 {main}
}
?>
--EXPECT--
-call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
+call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
--EXPECTF--
NULL
-Fatal error: Uncaught TypeError: foo\bar::__construct() expects argument #1 ($x) to be of type ?array, object given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?array, object given, called in %s:%d
Stack trace:
#0 %s(%d): foo\bar->__construct(Object(stdClass))
#1 {main}
}
NULL
-Fatal error: Uncaught TypeError: foo\bar::__construct() expects argument #1 ($x) to be of type ?foo\foo, stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?foo\foo, stdClass given, called in %s:%d
Stack trace:
#0 %s(%d): foo\bar->__construct(Object(stdClass))
#1 {main}
$one->a(new One());
$one->a(123);
--EXPECTF--
-Fatal error: Uncaught TypeError: One::a() expects argument #1 ($obj) to be of type object, int given, called in %s:%d
+Fatal error: Uncaught TypeError: One::a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
Stack trace:
#0 %s(9): One->a(123)
#1 {main}
a(new A());
a(123);
--EXPECTF--
-Fatal error: Uncaught TypeError: a() expects argument #1 ($obj) to be of type object, int given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
Stack trace:
#0 %s(7): a(123)
#1 {main}
object(baz)#%d (0) {
}
-Fatal error: Uncaught TypeError: foo::testFoo() expects argument #1 ($obj) to be of type foo, stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo::testFoo(): Argument #1 ($obj) must be of type foo, stdClass given, called in %s:%d
Stack trace:
#0 %s(%d): foo->testFoo(Object(stdClass))
#1 {main}
?>
--EXPECTF--
Return value of C::test1() must be of type int, string returned
-C::test2() expects argument #1 ($arg) to be of type int, string given, called in %s on line %d
-C::test3() expects argument #1 ($arg) to be of type int, string given, called in %s on line %d
+C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
+C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
--EXPECTF--
3
-Fatal error: Uncaught TypeError: foo() expects argument #1 ($a) to be of type array, int given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo(): Argument #1 ($a) must be of type array, int given, called in %s:%d
Stack trace:
#0 %s(%d): foo(123)
#1 {main}
string(3) "foo"
}
-Fatal error: Uncaught TypeError: foo() expects argument #1 ($bar) to be of type callable, array given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type callable, array given, called in %s:%d
Stack trace:
#0 %s(%d): foo(Array)
#1 {main}
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: takes_int() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($x) must be of type int, float given, called in %s:%d
Stack trace:
#0 %s(%d): takes_int(1)
#1 %s(%d): require('%s')
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: foo() expects argument #1 ($ex) to be of type bar, null given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo(): Argument #1 ($ex) must be of type bar, null given, called in %s:%d
Stack trace:
#0 %s(%d): foo(NULL)
#1 {main}
?>
--EXPECT--
*** Trying Ord With Integer
-*** Caught ord() expects argument #1 ($character) to be of type string, int given
+*** Caught ord(): Argument #1 ($character) must be of type string, int given
*** Trying Array Map With Invalid Callback
-*** Caught array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
+*** Caught array_map(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
*** Trying Strlen With Float
-*** Caught strlen() expects argument #1 ($str) to be of type string, float given
+*** Caught strlen(): Argument #1 ($str) must be of type string, float given
int(3)
}
}
-test() expects argument #1 ($iterable) to be of type iterable, int given, called in %s on line %d
+test(): Argument #1 ($iterable) must be of type iterable, int given, called in %s on line %d
int(1)
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying int(%d)
int(%d)
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying bool(true)
int(1)
int(0)
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
Testing 'float' type:
float(1)
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying int(%d)
float(%s)
float(0)
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
Testing 'string' type:
string(0) ""
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
string(6) "foobar"
*** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
Testing 'bool' type:
bool(false)
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
Done
Testing string add val
string(14) "this is a test"
Testing int with default null constant
-int_val_default_null() expects argument #1 ($a) to be of type int, null given, called in %s on line %d
+int_val_default_null(): Argument #1 ($a) must be of type int, null given, called in %s on line %d
Testing int with null null constant
-int_val_default_null() expects argument #1 ($a) to be of type int, null given, called in %s on line %d
+int_val_default_null(): Argument #1 ($a) must be of type int, null given, called in %s on line %d
Testing nullable int with default null constant
NULL
Testing nullable int with null null constant
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: int_val() expects argument #1 ($a) to be of type int, string given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: int_val(): Argument #1 ($a) must be of type int, string given, called in %s:%d
Stack trace:
#0 %s(%d): int_val()
#1 {main}
?>
--EXPECTF--
Testing int:
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
Testing float:
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
Testing string:
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
Testing bool:
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
Testing int nullable:
NULL
Testing float nullable:
int(1)
*** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying float(1)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying int(2147483647)
int(2147483647)
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
Testing 'float' type:
float(1)
*** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying float(1)
float(1)
float(1.5)
*** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying int(2147483647)
float(2147483647)
float(NAN)
*** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
Testing 'string' type:
*** Trying int(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
*** Trying string(1) "1"
string(1) "1"
*** Trying float(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying string(2) "1a"
string(2) "1a"
string(0) ""
*** Trying int(2147483647)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
Testing 'bool' type:
*** Trying int(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
*** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying float(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying int(2147483647)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying bool(true)
bool(true)
bool(false)
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
Done
int(1)
*** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying float(1)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying int(9223372036854775807)
int(9223372036854775807)
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
Testing 'float' type:
float(1)
*** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying float(1)
float(1)
float(1.5)
*** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying int(9223372036854775807)
float(9.223372036854776E+18)
float(NAN)
*** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
Testing 'string' type:
*** Trying int(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
*** Trying string(1) "1"
string(1) "1"
*** Trying float(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying string(2) "1a"
string(2) "1a"
string(0) ""
*** Trying int(9223372036854775807)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
Testing 'bool' type:
*** Trying int(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
*** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying float(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying int(9223372036854775807)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying bool(true)
bool(true)
bool(false)
*** Trying NULL
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
Done
int(1)
*** Trying float value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
*** Trying string value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
*** Trying true value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
*** Trying false value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
*** Trying null value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
*** Trying array value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
*** Trying object value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
*** Trying resource value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
Testing 'float' type:
float(1)
*** Trying string value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
*** Trying true value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
*** Trying false value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
*** Trying null value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
*** Trying array value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
*** Trying object value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
*** Trying resource value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
Testing 'string' type:
*** Trying integer value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
*** Trying float value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
*** Trying string value
string(1) "1"
*** Trying true value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
*** Trying false value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
*** Trying null value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
*** Trying array value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
*** Trying object value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
*** Trying resource value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
Testing 'bool' type:
*** Trying integer value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
*** Trying float value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
*** Trying string value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
*** Trying true value
bool(true)
bool(false)
*** Trying null value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
*** Trying array value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
*** Trying object value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
*** Trying resource value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
Done
function_declared_in_weak_mode(1.0);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: function_declared_in_weak_mode() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: function_declared_in_weak_mode(): Argument #1 ($x) must be of type int, float given, called in %s:%d
Stack trace:
#0 %s(%d): function_declared_in_weak_mode(1)
#1 {main}
function_declared_in_weak_mode(1.0);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: function_declared_in_weak_mode() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: function_declared_in_weak_mode(): Argument #1 ($x) must be of type int, float given, called in %s:%d
Stack trace:
#0 %s(%d): function_declared_in_weak_mode(1)
#1 {main}
int(42)
int(42)
Cannot assign stdClass to property Test::$prop of type X|Y|Z|int
-Test::method() expects argument #1 ($arg) to be of type X|Y|Z|int, stdClass given, called in %s on line %d
+Test::method(): Argument #1 ($arg) must be of type X|Y|Z|int, stdClass given, called in %s on line %d
object(X)#4 (0) {
}
object(X)#6 (0) {
} catch (TypeError $e) {
$msg = $e->getMessage();
$msg = strstr($msg, ', called in', true);
- $msg = str_replace('{closure}() expects argument #1', 'Argument ...', $msg);
+ $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
echo $msg;
}
echo "\n";
42 => 42
42.0 => 42.0
INF => INF
-"42" => Argument ... ($arg) to be of type int|float, string given
-"42.0" => Argument ... ($arg) to be of type int|float, string given
-"42x" => Argument ... ($arg) to be of type int|float, string given
-"x" => Argument ... ($arg) to be of type int|float, string given
-"" => Argument ... ($arg) to be of type int|float, string given
-true => Argument ... ($arg) to be of type int|float, bool given
-false => Argument ... ($arg) to be of type int|float, bool given
-null => Argument ... ($arg) to be of type int|float, null given
-[] => Argument ... ($arg) to be of type int|float, array given
-new stdClass => Argument ... ($arg) to be of type int|float, object given
-new WithToString => Argument ... ($arg) to be of type int|float, object given
+"42" => Argument ... must be of type int|float, string given
+"42.0" => Argument ... must be of type int|float, string given
+"42x" => Argument ... must be of type int|float, string given
+"x" => Argument ... must be of type int|float, string given
+"" => Argument ... must be of type int|float, string given
+true => Argument ... must be of type int|float, bool given
+false => Argument ... must be of type int|float, bool given
+null => Argument ... must be of type int|float, null given
+[] => Argument ... must be of type int|float, array given
+new stdClass => Argument ... must be of type int|float, object given
+new WithToString => Argument ... must be of type int|float, object given
Type int|float|false:
42 => 42
42.0 => 42.0
INF => INF
-"42" => Argument ... ($arg) to be of type int|float|false, string given
-"42.0" => Argument ... ($arg) to be of type int|float|false, string given
-"42x" => Argument ... ($arg) to be of type int|float|false, string given
-"x" => Argument ... ($arg) to be of type int|float|false, string given
-"" => Argument ... ($arg) to be of type int|float|false, string given
-true => Argument ... ($arg) to be of type int|float|false, bool given
+"42" => Argument ... must be of type int|float|false, string given
+"42.0" => Argument ... must be of type int|float|false, string given
+"42x" => Argument ... must be of type int|float|false, string given
+"x" => Argument ... must be of type int|float|false, string given
+"" => Argument ... must be of type int|float|false, string given
+true => Argument ... must be of type int|float|false, bool given
false => false
-null => Argument ... ($arg) to be of type int|float|false, null given
-[] => Argument ... ($arg) to be of type int|float|false, array given
-new stdClass => Argument ... ($arg) to be of type int|float|false, object given
-new WithToString => Argument ... ($arg) to be of type int|float|false, object given
+null => Argument ... must be of type int|float|false, null given
+[] => Argument ... must be of type int|float|false, array given
+new stdClass => Argument ... must be of type int|float|false, object given
+new WithToString => Argument ... must be of type int|float|false, object given
Type int|float|bool:
42 => 42
42.0 => 42.0
INF => INF
-"42" => Argument ... ($arg) to be of type int|float|bool, string given
-"42.0" => Argument ... ($arg) to be of type int|float|bool, string given
-"42x" => Argument ... ($arg) to be of type int|float|bool, string given
-"x" => Argument ... ($arg) to be of type int|float|bool, string given
-"" => Argument ... ($arg) to be of type int|float|bool, string given
+"42" => Argument ... must be of type int|float|bool, string given
+"42.0" => Argument ... must be of type int|float|bool, string given
+"42x" => Argument ... must be of type int|float|bool, string given
+"x" => Argument ... must be of type int|float|bool, string given
+"" => Argument ... must be of type int|float|bool, string given
true => true
false => false
-null => Argument ... ($arg) to be of type int|float|bool, null given
-[] => Argument ... ($arg) to be of type int|float|bool, array given
-new stdClass => Argument ... ($arg) to be of type int|float|bool, object given
-new WithToString => Argument ... ($arg) to be of type int|float|bool, object given
+null => Argument ... must be of type int|float|bool, null given
+[] => Argument ... must be of type int|float|bool, array given
+new stdClass => Argument ... must be of type int|float|bool, object given
+new WithToString => Argument ... must be of type int|float|bool, object given
Type int|bool:
42 => 42
-42.0 => Argument ... ($arg) to be of type int|bool, float given
-INF => Argument ... ($arg) to be of type int|bool, float given
-"42" => Argument ... ($arg) to be of type int|bool, string given
-"42.0" => Argument ... ($arg) to be of type int|bool, string given
-"42x" => Argument ... ($arg) to be of type int|bool, string given
-"x" => Argument ... ($arg) to be of type int|bool, string given
-"" => Argument ... ($arg) to be of type int|bool, string given
+42.0 => Argument ... must be of type int|bool, float given
+INF => Argument ... must be of type int|bool, float given
+"42" => Argument ... must be of type int|bool, string given
+"42.0" => Argument ... must be of type int|bool, string given
+"42x" => Argument ... must be of type int|bool, string given
+"x" => Argument ... must be of type int|bool, string given
+"" => Argument ... must be of type int|bool, string given
true => true
false => false
-null => Argument ... ($arg) to be of type int|bool, null given
-[] => Argument ... ($arg) to be of type int|bool, array given
-new stdClass => Argument ... ($arg) to be of type int|bool, object given
-new WithToString => Argument ... ($arg) to be of type int|bool, object given
+null => Argument ... must be of type int|bool, null given
+[] => Argument ... must be of type int|bool, array given
+new stdClass => Argument ... must be of type int|bool, object given
+new WithToString => Argument ... must be of type int|bool, object given
Type int|string|null:
42 => 42
-42.0 => Argument ... ($arg) to be of type string|int|null, float given
-INF => Argument ... ($arg) to be of type string|int|null, float given
+42.0 => Argument ... must be of type string|int|null, float given
+INF => Argument ... must be of type string|int|null, float given
"42" => "42"
"42.0" => "42.0"
"42x" => "42x"
"x" => "x"
"" => ""
-true => Argument ... ($arg) to be of type string|int|null, bool given
-false => Argument ... ($arg) to be of type string|int|null, bool given
+true => Argument ... must be of type string|int|null, bool given
+false => Argument ... must be of type string|int|null, bool given
null => null
-[] => Argument ... ($arg) to be of type string|int|null, array given
-new stdClass => Argument ... ($arg) to be of type string|int|null, object given
-new WithToString => Argument ... ($arg) to be of type string|int|null, object given
+[] => Argument ... must be of type string|int|null, array given
+new stdClass => Argument ... must be of type string|int|null, object given
+new WithToString => Argument ... must be of type string|int|null, object given
Type string|bool:
-42 => Argument ... ($arg) to be of type string|bool, int given
-42.0 => Argument ... ($arg) to be of type string|bool, float given
-INF => Argument ... ($arg) to be of type string|bool, float given
+42 => Argument ... must be of type string|bool, int given
+42.0 => Argument ... must be of type string|bool, float given
+INF => Argument ... must be of type string|bool, float given
"42" => "42"
"42.0" => "42.0"
"42x" => "42x"
"" => ""
true => true
false => false
-null => Argument ... ($arg) to be of type string|bool, null given
-[] => Argument ... ($arg) to be of type string|bool, array given
-new stdClass => Argument ... ($arg) to be of type string|bool, object given
-new WithToString => Argument ... ($arg) to be of type string|bool, object given
+null => Argument ... must be of type string|bool, null given
+[] => Argument ... must be of type string|bool, array given
+new stdClass => Argument ... must be of type string|bool, object given
+new WithToString => Argument ... must be of type string|bool, object given
Type float|array:
42 => 42.0
42.0 => 42.0
INF => INF
-"42" => Argument ... ($arg) to be of type array|float, string given
-"42.0" => Argument ... ($arg) to be of type array|float, string given
-"42x" => Argument ... ($arg) to be of type array|float, string given
-"x" => Argument ... ($arg) to be of type array|float, string given
-"" => Argument ... ($arg) to be of type array|float, string given
-true => Argument ... ($arg) to be of type array|float, bool given
-false => Argument ... ($arg) to be of type array|float, bool given
-null => Argument ... ($arg) to be of type array|float, null given
+"42" => Argument ... must be of type array|float, string given
+"42.0" => Argument ... must be of type array|float, string given
+"42x" => Argument ... must be of type array|float, string given
+"x" => Argument ... must be of type array|float, string given
+"" => Argument ... must be of type array|float, string given
+true => Argument ... must be of type array|float, bool given
+false => Argument ... must be of type array|float, bool given
+null => Argument ... must be of type array|float, null given
[] => []
-new stdClass => Argument ... ($arg) to be of type array|float, object given
-new WithToString => Argument ... ($arg) to be of type array|float, object given
+new stdClass => Argument ... must be of type array|float, object given
+new WithToString => Argument ... must be of type array|float, object given
Type string|array:
-42 => Argument ... ($arg) to be of type array|string, int given
-42.0 => Argument ... ($arg) to be of type array|string, float given
-INF => Argument ... ($arg) to be of type array|string, float given
+42 => Argument ... must be of type array|string, int given
+42.0 => Argument ... must be of type array|string, float given
+INF => Argument ... must be of type array|string, float given
"42" => "42"
"42.0" => "42.0"
"42x" => "42x"
"x" => "x"
"" => ""
-true => Argument ... ($arg) to be of type array|string, bool given
-false => Argument ... ($arg) to be of type array|string, bool given
-null => Argument ... ($arg) to be of type array|string, null given
+true => Argument ... must be of type array|string, bool given
+false => Argument ... must be of type array|string, bool given
+null => Argument ... must be of type array|string, null given
[] => []
-new stdClass => Argument ... ($arg) to be of type array|string, object given
-new WithToString => Argument ... ($arg) to be of type array|string, object given
+new stdClass => Argument ... must be of type array|string, object given
+new WithToString => Argument ... must be of type array|string, object given
Type bool|array:
-42 => Argument ... ($arg) to be of type array|bool, int given
-42.0 => Argument ... ($arg) to be of type array|bool, float given
-INF => Argument ... ($arg) to be of type array|bool, float given
-"42" => Argument ... ($arg) to be of type array|bool, string given
-"42.0" => Argument ... ($arg) to be of type array|bool, string given
-"42x" => Argument ... ($arg) to be of type array|bool, string given
-"x" => Argument ... ($arg) to be of type array|bool, string given
-"" => Argument ... ($arg) to be of type array|bool, string given
+42 => Argument ... must be of type array|bool, int given
+42.0 => Argument ... must be of type array|bool, float given
+INF => Argument ... must be of type array|bool, float given
+"42" => Argument ... must be of type array|bool, string given
+"42.0" => Argument ... must be of type array|bool, string given
+"42x" => Argument ... must be of type array|bool, string given
+"x" => Argument ... must be of type array|bool, string given
+"" => Argument ... must be of type array|bool, string given
true => true
false => false
-null => Argument ... ($arg) to be of type array|bool, null given
+null => Argument ... must be of type array|bool, null given
[] => []
-new stdClass => Argument ... ($arg) to be of type array|bool, object given
-new WithToString => Argument ... ($arg) to be of type array|bool, object given
+new stdClass => Argument ... must be of type array|bool, object given
+new WithToString => Argument ... must be of type array|bool, object given
} catch (TypeError $e) {
$msg = $e->getMessage();
$msg = strstr($msg, ', called in', true);
- $msg = str_replace('{closure}() expects argument #1', 'Argument ...', $msg);
+ $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
echo $msg;
}
echo "\n";
"42" => 42
"42.0" => 42.0
"42x" => 42 (A non well formed numeric value encountered)
-"x" => Argument ... ($arg) to be of type int|float, string given
-"" => Argument ... ($arg) to be of type int|float, string given
+"x" => Argument ... must be of type int|float, string given
+"" => Argument ... must be of type int|float, string given
true => 1
false => 0
-null => Argument ... ($arg) to be of type int|float, null given
-[] => Argument ... ($arg) to be of type int|float, array given
-new stdClass => Argument ... ($arg) to be of type int|float, object given
-new WithToString => Argument ... ($arg) to be of type int|float, object given
+null => Argument ... must be of type int|float, null given
+[] => Argument ... must be of type int|float, array given
+new stdClass => Argument ... must be of type int|float, object given
+new WithToString => Argument ... must be of type int|float, object given
Type int|float|false:
42 => 42
"42" => 42
"42.0" => 42.0
"42x" => 42 (A non well formed numeric value encountered)
-"x" => Argument ... ($arg) to be of type int|float|false, string given
-"" => Argument ... ($arg) to be of type int|float|false, string given
+"x" => Argument ... must be of type int|float|false, string given
+"" => Argument ... must be of type int|float|false, string given
true => 1
false => false
-null => Argument ... ($arg) to be of type int|float|false, null given
-[] => Argument ... ($arg) to be of type int|float|false, array given
-new stdClass => Argument ... ($arg) to be of type int|float|false, object given
-new WithToString => Argument ... ($arg) to be of type int|float|false, object given
+null => Argument ... must be of type int|float|false, null given
+[] => Argument ... must be of type int|float|false, array given
+new stdClass => Argument ... must be of type int|float|false, object given
+new WithToString => Argument ... must be of type int|float|false, object given
Type int|float|bool:
42 => 42
"" => false
true => true
false => false
-null => Argument ... ($arg) to be of type int|float|bool, null given
-[] => Argument ... ($arg) to be of type int|float|bool, array given
-new stdClass => Argument ... ($arg) to be of type int|float|bool, object given
-new WithToString => Argument ... ($arg) to be of type int|float|bool, object given
+null => Argument ... must be of type int|float|bool, null given
+[] => Argument ... must be of type int|float|bool, array given
+new stdClass => Argument ... must be of type int|float|bool, object given
+new WithToString => Argument ... must be of type int|float|bool, object given
Type int|bool:
42 => 42
"" => false
true => true
false => false
-null => Argument ... ($arg) to be of type int|bool, null given
-[] => Argument ... ($arg) to be of type int|bool, array given
-new stdClass => Argument ... ($arg) to be of type int|bool, object given
-new WithToString => Argument ... ($arg) to be of type int|bool, object given
+null => Argument ... must be of type int|bool, null given
+[] => Argument ... must be of type int|bool, array given
+new stdClass => Argument ... must be of type int|bool, object given
+new WithToString => Argument ... must be of type int|bool, object given
Type int|string|null:
42 => 42
true => 1
false => 0
null => null
-[] => Argument ... ($arg) to be of type string|int|null, array given
-new stdClass => Argument ... ($arg) to be of type string|int|null, object given
+[] => Argument ... must be of type string|int|null, array given
+new stdClass => Argument ... must be of type string|int|null, object given
new WithToString => "__toString()"
Type string|bool:
"" => ""
true => true
false => false
-null => Argument ... ($arg) to be of type string|bool, null given
-[] => Argument ... ($arg) to be of type string|bool, array given
-new stdClass => Argument ... ($arg) to be of type string|bool, object given
+null => Argument ... must be of type string|bool, null given
+[] => Argument ... must be of type string|bool, array given
+new stdClass => Argument ... must be of type string|bool, object given
new WithToString => "__toString()"
Type float|array:
"42" => 42.0
"42.0" => 42.0
"42x" => 42.0 (A non well formed numeric value encountered)
-"x" => Argument ... ($arg) to be of type array|float, string given
-"" => Argument ... ($arg) to be of type array|float, string given
+"x" => Argument ... must be of type array|float, string given
+"" => Argument ... must be of type array|float, string given
true => 1.0
false => 0.0
-null => Argument ... ($arg) to be of type array|float, null given
+null => Argument ... must be of type array|float, null given
[] => []
-new stdClass => Argument ... ($arg) to be of type array|float, object given
-new WithToString => Argument ... ($arg) to be of type array|float, object given
+new stdClass => Argument ... must be of type array|float, object given
+new WithToString => Argument ... must be of type array|float, object given
Type string|array:
42 => "42"
"" => ""
true => "1"
false => ""
-null => Argument ... ($arg) to be of type array|string, null given
+null => Argument ... must be of type array|string, null given
[] => []
-new stdClass => Argument ... ($arg) to be of type array|string, object given
+new stdClass => Argument ... must be of type array|string, object given
new WithToString => "__toString()"
Type bool|array:
"" => false
true => true
false => false
-null => Argument ... ($arg) to be of type array|bool, null given
+null => Argument ... must be of type array|bool, null given
[] => []
-new stdClass => Argument ... ($arg) to be of type array|bool, object given
-new WithToString => Argument ... ($arg) to be of type array|bool, object given
+new stdClass => Argument ... must be of type array|bool, object given
+new WithToString => Argument ... must be of type array|bool, object given
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: takes_int() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($x) must be of type int, float given, called in %s:%d
Stack trace:
#0 %s(%d): takes_int(1)
#1 %s(%d): require('%s')
?>
--EXPECTF--
-TypeError: unloadedClass() expects argument #1 ($param) to be of type ?I\Dont\Exist, stdClass given, called in %s on line %d and defined in %s:%d
+TypeError: unloadedClass(): Argument #1 ($param) must be of type ?I\Dont\Exist, stdClass given, called in %s:%d
Stack trace:
#0 %s(8): unloadedClass(Object(stdClass))
#1 {main}
-TypeError: loadedClass() expects argument #1 ($param) to be of type ?RealClass, stdClass given, called in %s on line %d and defined in %s:%d
+TypeError: loadedClass(): Argument #1 ($param) must be of type ?RealClass, stdClass given, called in %s:%d
Stack trace:
#0 %s(20): loadedClass(Object(stdClass))
#1 {main}
-TypeError: loadedInterface() expects argument #1 ($param) to be of type ?RealInterface, stdClass given, called in %s on line %d and defined in %s:%d
+TypeError: loadedInterface(): Argument #1 ($param) must be of type ?RealInterface, stdClass given, called in %s:%d
Stack trace:
#0 %s(26): loadedInterface(Object(stdClass))
#1 {main}
-TypeError: unloadedClass() expects argument #1 ($param) to be of type ?I\Dont\Exist, int given, called in %s on line %d and defined in %s:%d
+TypeError: unloadedClass(): Argument #1 ($param) must be of type ?I\Dont\Exist, int given, called in %s:%d
Stack trace:
#0 %s(32): unloadedClass(1)
#1 {main}
-TypeError: loadedClass() expects argument #1 ($param) to be of type ?RealClass, int given, called in %s on line %d and defined in %s:%d
+TypeError: loadedClass(): Argument #1 ($param) must be of type ?RealClass, int given, called in %s:%d
Stack trace:
#0 %s(38): loadedClass(1)
#1 {main}
-TypeError: loadedInterface() expects argument #1 ($param) to be of type ?RealInterface, int given, called in %s on line %d and defined in %s:%d
+TypeError: loadedInterface(): Argument #1 ($param) must be of type ?RealInterface, int given, called in %s:%d
Stack trace:
#0 %s(44): loadedInterface(1)
#1 {main}
-TypeError: callableF() expects argument #1 ($param) to be of type ?callable, int given, called in %s on line %d and defined in %s:%d
+TypeError: callableF(): Argument #1 ($param) must be of type ?callable, int given, called in %s:%d
Stack trace:
#0 %s(52): callableF(1)
#1 {main}
-TypeError: iterableF() expects argument #1 ($param) to be of type ?iterable, int given, called in %s on line %d and defined in %s:%d
+TypeError: iterableF(): Argument #1 ($param) must be of type ?iterable, int given, called in %s:%d
Stack trace:
#0 %s(60): iterableF(1)
#1 {main}
-TypeError: intF() expects argument #1 ($param) to be of type ?int, object given, called in %s on line %d and defined in %s:%d
+TypeError: intF(): Argument #1 ($param) must be of type ?int, object given, called in %s:%d
Stack trace:
#0 %s(68): intF(Object(stdClass))
#1 {main}
}
}
-Fatal error: Uncaught TypeError: test() expects argument #3 ($args) to be of type array, int given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: test(): Argument #3 ($args) must be of type array, int given, called in %s:%d
Stack trace:
#0 %s(%d): test(Array, Array, 2)
#1 {main}
?>
--EXPECTF--
-string(%d) "test() expects argument #3 ($args) to be of type array, int given, called in %s on line %d"
+string(%d) "test(): Argument #3 ($args) must be of type array, int given, called in %s on line %d"
return;
}
- zend_argument_type_error(num, "to be %s, %s given", expected_error[expected_type], zend_zval_type_name(arg));
+ zend_argument_type_error(num, "must be %s, %s given", expected_error[expected_type], zend_zval_type_name(arg));
}
/* }}} */
return;
}
- zend_argument_type_error(num, "to be of type %s, %s given", name, zend_zval_type_name(arg));
+ zend_argument_type_error(num, "must be of type %s, %s given", name, zend_zval_type_name(arg));
}
/* }}} */
return;
}
- zend_argument_type_error(num, "to be a valid callback, %s", error);
+ zend_argument_type_error(num, "must be a valid callback, %s", error);
efree(error);
}
/* }}} */
zend_vspprintf(&message, 0, format, va);
va_end(va);
- zend_throw_error(error_ce, "%s%s%s() expects argument #%d%s%s%s %s",
- class_name, space, get_active_function_name(), arg_num,
- arg_name ? " ($" : "", arg_name ? arg_name : "", arg_name ? ")" : "", message
+ zend_throw_error(error_ce, "%s%s%s(): Argument #%d%s%s%s %s",
+ class_name, space, get_active_function_name(),
+ arg_num, arg_name ? " ($" : "", arg_name ? arg_name : "", arg_name ? ")" : "",
+ message
);
efree(message);
}
*pce = zend_lookup_class(Z_STR_P(arg));
if (ce_base) {
if ((!*pce || !instanceof_function(*pce, ce_base))) {
- zend_argument_type_error(num, "to be a class name derived from %s, '%s' given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
+ zend_argument_type_error(num, "must be a class name derived from %s, '%s' given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
*pce = NULL;
return 0;
}
}
if (!*pce) {
- zend_argument_type_error(num, "to be a valid class name, '%s' given", Z_STRVAL_P(arg));
+ zend_argument_type_error(num, "must be a valid class name, '%s' given", Z_STRVAL_P(arg));
return 0;
}
return 1;
}
if (!(flags & ZEND_PARSE_PARAMS_QUIET) && (*expected_type || error)) {
if (error) {
- zend_argument_type_error(arg_num, "to be %s", error);
+ zend_argument_type_error(arg_num, "must be %s", error);
efree(error);
} else {
- zend_argument_type_error(arg_num, "to be of type %s, %s given", expected_type, zend_zval_type_name(arg));
+ zend_argument_type_error(arg_num, "must be of type %s, %s given", expected_type, zend_zval_type_name(arg));
}
} else if (error) {
efree(error);
if (Z_TYPE_P(error_handler) != IS_NULL) { /* NULL == unset */
if (!zend_is_callable(error_handler, 0, NULL)) {
zend_string *error_handler_name = zend_get_callable_name(error_handler);
- zend_error(E_WARNING, "%s() expects argument #1 ($error_handler) to be a valid callback", get_active_function_name());
+ zend_error(E_WARNING, "%s(): Argument #1 ($error_handler) must be a valid callback", get_active_function_name());
zend_string_release_ex(error_handler_name, 0);
return;
}
if (Z_TYPE_P(exception_handler) != IS_NULL) { /* NULL == unset */
if (!zend_is_callable(exception_handler, 0, NULL)) {
zend_string *exception_handler_name = zend_get_callable_name(exception_handler);
- zend_error(E_WARNING, "%s() expects argument #1 ($exception_handler) to be a valid callback", get_active_function_name());
+ zend_error(E_WARNING, "%s(): Argument #1 ($exception_handler) must be a valid callback", get_active_function_name());
zend_string_release_ex(exception_handler_name, 0);
return;
}
if (zf->common.type == ZEND_USER_FUNCTION) {
if (ptr && ptr->func && ZEND_USER_CODE(ptr->func->common.type)) {
- zend_type_error("%s%s%s() expects argument #%d ($%s) to be of type %s, %s given, called in %s on line %d",
- fclass, fsep, fname, arg_num, ZSTR_VAL(arg_info->name), ZSTR_VAL(need_msg), given_msg,
- ZSTR_VAL(ptr->func->op_array.filename), ptr->opline->lineno);
+ zend_type_error("%s%s%s(): Argument #%d ($%s) must be of type %s, %s given, called in %s on line %d",
+ fclass, fsep, fname,
+ arg_num, ZSTR_VAL(arg_info->name),
+ ZSTR_VAL(need_msg), given_msg,
+ ZSTR_VAL(ptr->func->op_array.filename), ptr->opline->lineno
+ );
} else {
- zend_type_error("%s%s%s() expects argument #%d ($%s) to be of type %s, %s given",
- fclass, fsep, fname, arg_num, ZSTR_VAL(arg_info->name), ZSTR_VAL(need_msg), given_msg);
+ zend_type_error("%s%s%s(): Argument #%d ($%s) must be of type %s, %s given",
+ fclass, fsep, fname, arg_num, ZSTR_VAL(arg_info->name), ZSTR_VAL(need_msg), given_msg
+ );
}
} else {
- zend_type_error("%s%s%s() expects argument #%d ($%s) to be of type %s, %s given",
- fclass, fsep, fname, arg_num, ((zend_internal_arg_info*) arg_info)->name, ZSTR_VAL(need_msg), given_msg);
+ zend_type_error("%s%s%s(): Argument #%d ($%s) must be of type %s, %s given",
+ fclass, fsep, fname, arg_num, ((zend_internal_arg_info*) arg_info)->name, ZSTR_VAL(need_msg), given_msg
+ );
}
zend_string_release(need_msg);
{
const char *arg_name = get_function_arg_name(func, arg_num);
- zend_error(E_WARNING, "%s%s%s() expects argument #%d%s%s%s to be passed by reference, value given",
+ zend_error(E_WARNING, "%s%s%s(): Argument #%d%s%s%s must be passed by reference, value given",
func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
func->common.scope ? "::" : "",
ZSTR_VAL(func->common.function_name),
ZVAL_UNDEFINED_OP2();
}
if (!EG(exception)) {
- zend_type_error("array_key_exists() expects argument #2 ($array) to be of type array, %s given",
- zend_get_type_by_const(Z_TYPE_P(subject)));
+ zend_type_error("array_key_exists(): Argument #2 ($array) must be of type array, %s given",
+ zend_get_type_by_const(Z_TYPE_P(subject))
+ );
}
}
const char *arg_name = get_function_arg_name(func, i + 1);
zend_error(E_WARNING,
- "%s%s%s() expects argument #%d%s%s%s to be passed by reference, value given",
+ "%s%s%s(): Argument #%d%s%s%s must be passed by reference, value given",
func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
func->common.scope ? "::" : "",
ZSTR_VAL(func->common.function_name),
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s(): Argument #1 ($function) must be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
FREE_OP2();
HANDLE_EXCEPTION();
ZEND_VM_C_GOTO(send_array);
}
}
- zend_type_error("call_user_func_array() expects argument #2 ($args) to be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
+ zend_type_error("call_user_func_array(): Argument #2 ($args) must be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
FREE_UNFETCHED_OP2();
FREE_OP1();
HANDLE_EXCEPTION();
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
if (OP1_TYPE == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class(): Argument #1 ($object) must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
goto send_array;
}
}
- zend_type_error("call_user_func_array() expects argument #2 ($args) to be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
+ zend_type_error("call_user_func_array(): Argument #2 ($args) must be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
FREE_UNFETCHED_OP(opline->op2_type, opline->op2.var);
FREE_OP(opline->op1_type, opline->op1.var);
HANDLE_EXCEPTION();
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s(): Argument #1 ($function) must be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
HANDLE_EXCEPTION();
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s(): Argument #1 ($function) must be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
if (IS_CONST == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class(): Argument #1 ($object) must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s(): Argument #1 ($function) must be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
HANDLE_EXCEPTION();
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class(): Argument #1 ($object) must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
if (IS_UNUSED == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects argument 1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("Argument 1 ($object) passed to get_class() must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class(): Argument #1 ($object) must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
?>
--EXPECTF--
*** curl_setopt() call with incorrect parameters
-curl_setopt() expects argument #2 ($option) to be of type int, string given
+curl_setopt(): Argument #2 ($option) must be of type int, string given
Warning: curl_setopt(): Invalid curl configuration option in %scurl_setopt_error.php on line %d
}
int(0)
-Fatal error: Uncaught TypeError: timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given in %s:%d
+Fatal error: Uncaught TypeError: timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, object given in %s:%d
Stack trace:
#0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone))
#1 {main}
}
--EXPECT--
3600
-DateTimeZone::getOffset() expects argument #1 ($datetime) to be of type DateTimeInterface, int given
+DateTimeZone::getOffset(): Argument #1 ($datetime) must be of type DateTimeInterface, int given
["timezone"]=>
string(13) "Europe/London"
}
-DateTimeImmutable::createFromMutable() expects argument #1 ($object) to be of type DateTime, object given
+DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, object given
string(13) "Europe/London"
}
bool(true)
-DateTime::createFromImmutable() expects argument #1 ($object) to be of type DateTimeImmutable, object given
+DateTime::createFromImmutable(): Argument #1 ($object) must be of type DateTimeImmutable, object given
}
?>
--EXPECT--
-mktime() expects argument #6 ($year) to be of type int, float given
+mktime(): Argument #6 ($year) must be of type int, float given
string(32) "5138-11-16 09:46:40 100000000000"
bool(false)
string(12) "100000000000"
-DateTime::setTimestamp() expects argument #1 ($timestamp) to be of type int, float given
+DateTime::setTimestamp(): Argument #1 ($timestamp) must be of type int, float given
string(32) "5138-11-16 09:46:40 100000000000"
bool(false)
string(10) "1215752192"
}
?>
--EXPECT--
-strtotime() expects argument #2 ($now) to be of type int, object given
+strtotime(): Argument #2 ($now) must be of type int, object given
int(0)
}
}
-microtime() expects argument #1 ($get_as_float) to be of type bool, array given
+microtime(): Argument #1 ($get_as_float) must be of type bool, array given
--> bad arg: object(stdClass)#%d (0) {
}
-microtime() expects argument #1 ($get_as_float) to be of type bool, object given
+microtime(): Argument #1 ($get_as_float) must be of type bool, object given
--> bad arg: int(1)
float(%s)
*** Testing timezone_offset_get() : error conditions ***
-- Testing timezone_offset_get() function with an invalid values for $object argument --
-string(92) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given"
+string(87) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, object given"
-string(89) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, int given"
+string(84) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, int given"
-string(90) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, null given"
+string(85) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, null given"
-- Testing timezone_offset_get() function with an invalid values for $datetime argument --
-string(99) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, object given"
+string(94) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, object given"
-string(96) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, int given"
+string(91) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, int given"
-string(97) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, null given"
+string(92) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, null given"
--EXPECTF--
bool(true)
bool(false)
-TypeError: FFI::isNull() expects argument #1 ($ptr) to be of type FFI\CData, null given
+TypeError: FFI::isNull(): Argument #1 ($ptr) must be of type FFI\CData, null given
FFI\Exception: Cannot instantiate FFI\CData of zero size
?>
--EXPECTF--
-finfo_open() expects argument #2 ($arg) to be a valid path, string given
+finfo_open(): Argument #2 ($arg) must be a valid path, string given
resource(%d) of type (file_info)
resource(%d) of type (file_info)
Notice: finfo_open(): Warning: using regular magic file `%smagic' in %sfinfo_open_error.php on line %d
resource(6) of type (file_info)
-finfo_open() expects argument #1 ($options) to be of type int, string given
-finfo::__construct() expects argument #1 ($options) to be of type int, string given
+finfo_open(): Argument #1 ($options) must be of type int, string given
+finfo::__construct(): Argument #1 ($options) must be of type int, string given
}
?>
--EXPECT--
-imagegd() expects argument #2 ($to) to be a valid path, string given
+imagegd(): Argument #2 ($to) must be a valid path, string given
}
?>
--EXPECT--
-imagegd() expects argument #2 ($to) to be a valid path, string given
+imagegd(): Argument #2 ($to) must be a valid path, string given
}
?>
--EXPECTF--
-imagexbm() expects argument #2 ($filename) to be a valid path, string given
+imagexbm(): Argument #2 ($filename) must be a valid path, string given
string(7) "1000000"
string(7) "1000000"
string(30) "238462734628347239571822592658"
-gmp_clrbit() expects argument #1 ($a) to be of type GMP, array given
+gmp_clrbit(): Argument #1 ($a) must be of type GMP, array given
Done
string(1) "0"
string(14) "10240000000000"
string(14) "10240000000000"
-gmp_pow() expects argument #2 ($exp) to be of type int, array given
+gmp_pow(): Argument #2 ($exp) must be of type int, array given
Warning: gmp_pow(): Unable to convert variable to GMP - wrong type in %s on line %d
bool(false)
string(12) "100008388608"
string(12) "100000000000"
string(12) "100000000008"
-gmp_setbit() expects argument #1 ($a) to be of type GMP, string given
-gmp_setbit() expects argument #1 ($a) to be of type GMP, array given
+gmp_setbit(): Argument #1 ($a) must be of type GMP, string given
+gmp_setbit(): Argument #1 ($a) must be of type GMP, array given
Done
Warning: imap_num_recent() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_num_recent() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_num_recent(): Argument #1 must be of type resource, string given in %s on line %d
-Warning: imap_num_recent() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_num_recent(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: imap_gc() Expects exactly 2 parameters, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_gc() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_gc(): Argument #1 must be of type resource, string given in %s on line %d
-Warning: imap_gc() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_gc(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: imap_gc(): Invalid value for the flags parameter in %s on line %d
Warning: imap_headers() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_headers() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_headers(): Argument #1 must be of type resource, string given in %s on line %d
-Warning: imap_headers() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_headers(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: imap_num_msg() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_num_msg() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_num_msg(): Argument #1 must be of type resource, string given in %s on line %d
-Warning: imap_num_msg() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_num_msg(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: imap_expunge() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_expunge() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_expunge(): Argument #1 must be of type resource, string given in %s on line %d
-Warning: imap_expunge() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_expunge(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: imap_ping() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_ping() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_ping(): Argument #1 must be of type resource, string given in %s on line %d
-Warning: imap_ping() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_ping(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: imap_timeout() expects at least 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_timeout() expects argument #1 to be of type int, %s given in %s on line %d
+Warning: imap_timeout(): Argument #1 must be of type int, %s given in %s on line %d
GET values:
int(%d)
int(%d)
Exception: IntlRuleBasedBreakIterator::__construct() expects at most 2 parameters, 3 given in %s on line %d
-Exception: IntlRuleBasedBreakIterator::__construct() expects argument #2 ($areCompiled) to be of type bool, array given in %s on line %d
+Exception: IntlRuleBasedBreakIterator::__construct(): Argument #2 ($areCompiled) must be of type bool, array given in %s on line %d
Exception: IntlRuleBasedBreakIterator::__construct(): rbbi_create_instance: unable to create instance from compiled rules in %s on line %d
?>
--EXPECT--
-NumberFormatter::format() expects argument #1 ($value) to be of type number, string given
+NumberFormatter::format(): Argument #1 ($value) must be of type number, string given
string(1) "1"
string(1) "0"
-NumberFormatter::format() expects argument #1 ($value) to be of type number, object given
+NumberFormatter::format(): Argument #1 ($value) must be of type number, object given
var_dump(intlcal_add(1, 2, 3));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_add() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_add(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_add(1, 2, 3)
#1 {main}
error: 0, IntlCalendar::before() expects exactly 1 parameter, 0 given
-error: 0, IntlCalendar::after() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::after(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, IntlCalendar::before() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::before(): Argument #1 ($calendar) must be of type IntlCalendar, int given
error: 0, IntlCalendar::after() expects exactly 1 parameter, 2 given
Warning: intlcal_clear(): intlcal_clear: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_clear() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_clear(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_clear(1, 2)
#1 {main}
--EXPECT--
error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
-error: 0, IntlCalendar::equals() expects argument #1 ($calendar) to be of type IntlCalendar, object given
+error: 0, IntlCalendar::equals(): Argument #1 ($calendar) must be of type IntlCalendar, object given
error: 0, IntlCalendar::equals() expects exactly 1 parameter, 2 given
-error: 0, intlcal_equals() expects argument #2 ($calendar) to be of type IntlCalendar, array given
+error: 0, intlcal_equals(): Argument #2 ($calendar) must be of type IntlCalendar, array given
-error: 0, intlcal_equals() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given
+error: 0, intlcal_equals(): Argument #1 ($calendarObject) must be of type IntlCalendar, int given
bool(false)
intlcal_field_difference() expects exactly 3 parameters, 4 given
-Fatal error: Uncaught TypeError: intlcal_field_difference() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_field_difference(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_field_difference(1, 0, 1)
#1 {main}
Warning: IntlCalendar::getDayOfWeekType(): intlcal_get_day_of_week_type: invalid day of week in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_day_of_week_type(1, 1)
#1 {main}
var_dump(intlcal_get_error_code(null));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_error_code() expects argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_error_code(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_error_code(NULL)
#1 {main}
var_dump(intlcal_get_error_message(null));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_error_message() expects argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_error_message(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_error_message(NULL)
#1 {main}
var_dump(intlcal_get_first_day_of_week(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_first_day_of_week(1)
#1 {main}
var_dump(intlcal_get_minimal_days_in_first_week(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_minimal_days_in_first_week(1)
#1 {main}
var_dump(intlcal_get_skipped_wall_time_option(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_skipped_wall_time_option(1)
#1 {main}
var_dump(intlcal_get_time_zone(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_time_zone() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_time_zone(1)
#1 {main}
var_dump(intlcal_get_time(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_time(1)
#1 {main}
var_dump(intlcal_get_type(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_type() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_type(1)
#1 {main}
Warning: IntlCalendar::getWeekendTransition(): intlcal_get_weekend_transition: invalid day of week in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_get_weekend_transition() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_weekend_transition(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_weekend_transition(1, 1)
#1 {main}
Warning: intlcal_get_minimum(): intlcal_get_minimum: invalid field in %s on line %d
bool(false)
-error: 0, intlcal_get_least_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_least_maximum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, intlcal_get_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_maximum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, intlcal_get_greatest_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_greatest_minimum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, intlcal_get_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_minimum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
bool(false)
error: 2, intlcal_get_actual_minimum(): intlcal_get_actual_minimum: invalid field
bool(false)
-error: 0, intlcal_get() expects argument #2 ($field) to be of type int, string given
+error: 0, intlcal_get(): Argument #2 ($field) must be of type int, string given
-error: 0, intlcal_get_actual_maximum() expects argument #2 ($field) to be of type int, string given
+error: 0, intlcal_get_actual_maximum(): Argument #2 ($field) must be of type int, string given
-error: 0, intlcal_get_actual_minimum() expects argument #2 ($field) to be of type int, string given
+error: 0, intlcal_get_actual_minimum(): Argument #2 ($field) must be of type int, string given
error: 0, intlcal_get() expects exactly 2 parameters, 1 given
var_dump(intlcal_in_daylight_time(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_in_daylight_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_in_daylight_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_in_daylight_time(1)
#1 {main}
echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
}
--EXPECT--
-error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given
-error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
error: 0, intlcal_is_equivalent_to() expects exactly 2 parameters, 1 given
-error: 0, intlcal_is_equivalent_to() expects argument #2 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_is_equivalent_to(): Argument #2 ($calendar) must be of type IntlCalendar, int given
-error: 0, intlcal_is_equivalent_to() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given
+error: 0, intlcal_is_equivalent_to(): Argument #1 ($calendarObject) must be of type IntlCalendar, int given
var_dump(intlcal_is_lenient(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_is_lenient() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_is_lenient(1)
#1 {main}
Warning: IntlCalendar::isSet(): intlcal_is_set: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_is_set() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_is_set(1, 2)
#1 {main}
var_dump(intlcal_is_weekend(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_is_weekend() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_weekend(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_is_weekend(1)
#1 {main}
Warning: IntlCalendar::roll(): intlcal_roll: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_roll() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_roll(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_roll(1, 2, 3)
#1 {main}
Warning: intlcal_set_first_day_of_week(): intlcal_set_first_day_of_week: invalid day of week in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_first_day_of_week(1, 2)
#1 {main}
var_dump(intlcal_set_lenient(1, false));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_set_lenient() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_lenient(1, false)
#1 {main}
Warning: intlcal_set_minimal_days_in_first_week(): intlcal_set_minimal_days_in_first_week: invalid number of days; must be between 1 and 7 in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_minimal_days_in_first_week(1, 2)
#1 {main}
Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: invalid option in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_repeated_wall_time_option(1, 1)
#1 {main}
error: 0, intlcal_set_time_zone() expects exactly 2 parameters, 3 given
-error: 0, intlcal_set_time_zone() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_set_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given
Warning: intlcal_set(): intlcal_set: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set(1, 2, 3)
#1 {main}
Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d
string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
-Fatal error: Uncaught TypeError: intlcal_to_date_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_to_date_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_to_date_time(3)
#1 {main}
'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR'
'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR'
-TypeError: NumberFormatter::__construct() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: NumberFormatter::__construct(): Argument #1 ($locale) must be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: NumberFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: NumberFormatter::create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: numfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: numfmt_create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
'U_ZERO_ERROR'
IntlException: Constructor failed in %s on line %d
Too many arguments
No variant with 4 arguments (excluding trailing NULLs)
No variant with 4 arguments (excluding trailing NULLs)
-IntlGregorianCalendar::__construct() expects argument #6 to be of type int, array given
+IntlGregorianCalendar::__construct(): Argument #6 must be of type int, array given
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change(): Argument #1 ($calendar) must be of type IntlGregorianCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlgregcal_get_gregorian_change(1)
#1 {main}
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intlgregcal_is_leap_year() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlgregcal_is_leap_year(): Argument #1 ($calendar) must be of type IntlGregorianCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlgregcal_is_leap_year(1, 2)
#1 {main}
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
-TypeError: MessageFormatter::__construct() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: MessageFormatter::__construct(): Argument #1 ($locale) must be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: MessageFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: MessageFormatter::create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: msgfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: msgfmt_create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
'U_ZERO_ERROR'
IntlException: Constructor failed in %s on line %d
var_dump(intltz_get_dst_savings(null));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_dst_savings() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_dst_savings(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_dst_savings(NULL)
#1 {main}
Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: wrong display type in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intltz_get_display_name() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_display_name(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_display_name(NULL, 1, false, 'pt_PT')
#1 {main}
var_dump(intltz_get_error_code(null));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_error_code() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_error_code(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_error_code(NULL)
#1 {main}
var_dump(intltz_get_error_message(null));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_error_message() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_error_message(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_error_message(NULL)
#1 {main}
intltz_get_id(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_id() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_id(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_id(NULL)
#1 {main}
Warning: IntlTimeZone::getOffset(): intltz_get_offset: error obtaining offset in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intltz_get_offset() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_offset(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_offset(NULL, %d, false, NULL, NULL)
#1 {main}
intltz_get_raw_offset(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_raw_offset() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_raw_offset(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_raw_offset(NULL)
#1 {main}
}
--EXPECT--
int(0)
-string(106) "IntlTimeZone::hasSameRules() expects argument #1 ($otherTimeZone) to be of type IntlTimeZone, string given"
+string(101) "IntlTimeZone::hasSameRules(): Argument #1 ($otherTimeZone) must be of type IntlTimeZone, string given"
int(0)
-string(88) "intltz_has_same_rules() expects argument #1 ($tz) to be of type IntlTimeZone, null given"
+string(83) "intltz_has_same_rules(): Argument #1 ($tz) must be of type IntlTimeZone, null given"
Warning: IntlTimeZone::toDateTimeZone(): intltz_to_date_time_zone: DateTimeZone constructor threw exception in %s on line %d
string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
-Fatal error: Uncaught TypeError: intltz_to_date_time_zone() expects argument #1 ($tz) to be of type IntlTimeZone, int given in %s:%d
+Fatal error: Uncaught TypeError: intltz_to_date_time_zone(): Argument #1 ($tz) must be of type IntlTimeZone, int given in %s:%d
Stack trace:
#0 %s(%d): intltz_to_date_time_zone(1)
#1 {main}
intltz_use_daylight_time(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_use_daylight_time() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_use_daylight_time(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_use_daylight_time(NULL)
#1 {main}
transliterator_create_inverse("jj");
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_create_inverse() expects argument #1 ($orig_trans) to be of type Transliterator, string given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_create_inverse(): Argument #1 ($orig_trans) must be of type Transliterator, string given in %s:%d
Stack trace:
#0 %s(%d): transliterator_create_inverse('jj')
#1 {main}
echo transliterator_get_error_code(array()), "\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_get_error_code() expects argument #1 ($trans) to be of type Transliterator, array given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_get_error_code(): Argument #1 ($trans) must be of type Transliterator, array given in %s:%d
Stack trace:
#0 %s(%d): transliterator_get_error_code(Array)
#1 {main}
echo transliterator_get_error_message(array()), "\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_get_error_message() expects argument #1 ($trans) to be of type Transliterator, array given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_get_error_message(): Argument #1 ($trans) must be of type Transliterator, array given in %s:%d
Stack trace:
#0 %s(%d): transliterator_get_error_message(Array)
#1 {main}
?>
--EXPECT--
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, null given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, null given
bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, string given
bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, int given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, int given
bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, object given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, object given
bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, array given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, array given
bool(true)
NULL
bool(true)
echo "okey";
?>
--EXPECT--
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, string given
okey
array(0) {
}
}
-mb_ereg() expects argument #1 ($pattern) to be of type string, array given
+mb_ereg(): Argument #1 ($pattern) must be of type string, array given
array(3) {
[0]=>
array(0) {
[2]=>
&string(0) ""
}
-mb_ereg() expects argument #2 ($string) to be of type string, array given
+mb_ereg(): Argument #2 ($string) must be of type string, array given
array(3) {
[0]=>
int(1)
--EXPECTF--
Warning: Wrong parameter count for mysqli_warning::mysqli_warning() in %s on line %d
-Warning: mysqli_warning::mysqli_warning() expects argument #1 to be of type object, null given in %s on line %d
+Warning: mysqli_warning::mysqli_warning(): Argument #1 must be of type object, null given in %s on line %d
Warning: Wrong parameter count for mysqli_warning::mysqli_warning() in %s on line %d
print "done!";
?>
--EXPECTF--
-Warning: mysqli_embedded_connect() expects argument #1 to be of type mysqli, null given in %s on line %d
+Warning: mysqli_embedded_connect(): Argument #1 must be of type mysqli, null given in %s on line %d
done!
NULL
NULL
mysqli_result object is already closed
-[0] mysqli_fetch_object() expects argument #3 ($params) to be of type array, string given in %s on line %d
+[0] mysqli_fetch_object(): Argument #3 ($params) must be of type array, string given in %s on line %d
Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d
?>
--EXPECTF--
mysqli object is not fully initialized
-[0] mysqli_result::fetch_object() expects argument #1 ($class_name) to be of type string, object given in %s on line %d
+[0] mysqli_result::fetch_object(): Argument #1 ($class_name) must be of type string, object given in %s on line %d
[0] mysqli_result::fetch_object() expects at most 2 parameters, 3 given in %s on line %d
-[0] mysqli_result::fetch_object() expects argument #2 ($params) to be of type array, null given in %s on line %d
+[0] mysqli_result::fetch_object(): Argument #2 ($params) must be of type array, null given in %s on line %d
Exception: Too few arguments to function mysqli_fetch_object_construct::__construct(), 1 passed and exactly 2 expected
NULL
NULL
Test 2 - Parse
-Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d
+Warning: oci_error(): Argument #1 must be of type resource, bool%sgiven in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
NULL
2nd call
-Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d
+Warning: oci_error(): Argument #1 must be of type resource, bool%sgiven in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
Invalid Connection resource
-Warning: oci_set_action() expects argument #1 to be of type resource, null given in %s on line %d
+Warning: oci_set_action(): Argument #1 must be of type resource, null given in %s on line %d
NULL
Invalid Connection resource 2
-Warning: oci_set_client_info() expects argument #1 to be of type resource, %s given in %s on line %d
+Warning: oci_set_client_info(): Argument #1 must be of type resource, %s given in %s on line %d
NULL
Invalid Value
-Warning: oci_set_action() expects argument #2 to be of type %s, resource given in %s on line %d
+Warning: oci_set_action(): Argument #2 must be of type %s, resource given in %s on line %d
NULL
Set Values multiple times
}
int(0)
-Warning: OCI-Lob::write() expects argument #2 to be of type int%s string given in %slob_002.php on line %d
+Warning: OCI-Lob::write(): Argument #2 must be of type int%s string given in %slob_002.php on line %d
NULL
int(4)
int(40000)
int(40004)
-Warning: OCI-Lob::seek() expects argument #1 to be of type int%s string given in %slob_002.php on line %d
+Warning: OCI-Lob::seek(): Argument #1 must be of type int%s string given in %slob_002.php on line %d
NULL
bool(false)
int(40004)
Warning: oci_free_descriptor(): %s is not a valid oci8 descriptor resource in %s on line %d
bool(false)
-Warning: oci_free_descriptor() expects argument #1 to be of type OCI-Lob, object given in %s on line %d
+Warning: oci_free_descriptor(): Argument #1 must be of type OCI-Lob, object given in %s on line %d
NULL
Warning: oci_free_descriptor(): Unable to find descriptor property in %s on line %d
bool(true)
int(3)
-Warning: oci_lob_seek() expects argument #1 to be of type OCI-Lob, int%sgiven in %s on line %d
+Warning: oci_lob_seek(): Argument #1 must be of type OCI-Lob, int%sgiven in %s on line %d
NULL
bool(true)
array(2) {
--EXPECTF--
Test 1: Import
-Warning: OCI-Lob::savefile() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI-Lob::savefile(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
NULL
Test 2: Export
-Warning: OCI-Lob::export() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI-Lob::export(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
NULL
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
-Warning: oci_connect() expects argument #5 to be of type int%s string given in %s on line %d
+Warning: oci_connect(): Argument #5 must be of type int%s string given in %s on line %d
Done
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
-Warning: oci_connect() expects argument #5 to be of type int%s string given in %s on line %d
+Warning: oci_connect(): Argument #5 must be of type int%s string given in %s on line %d
Done
?>
--EXPECTF--
-Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d
+Warning: odbc_exec(): Argument #3 must be of type int, string given in %s on line %d
Warning: odbc_exec(): SQL error: %s in %s on line %d
-Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d
+Warning: odbc_exec(): Argument #3 must be of type int, string given in %s on line %d
Warning: odbc_exec(): SQL error: %s in %s on line %d
?>
--EXPECT--
bool(true)
-openssl_csr_export() expects argument #1 ($csr) to be of type resource, string given
+openssl_csr_export(): Argument #1 ($csr) must be of type resource, string given
openssl_csr_export(): supplied resource is not a valid OpenSSL X.509 CSR resource
bool(true)
JViHkCA9x6m8RJXAFvqmgLlWlUzbDv/cRrDfjWjR
-----END CERTIFICATE REQUEST-----
"
-openssl_csr_export_to_file() expects argument #1 ($csr) to be of type resource, string given
+openssl_csr_export_to_file(): Argument #1 ($csr) must be of type resource, string given
openssl_csr_export_to_file(): supplied resource is not a valid OpenSSL X.509 CSR resource
bool(true)
}
?>
--EXPECT--
-openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given
-openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given
-openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given
+openssl_pkey_get_details(): Argument #1 ($key) must be of type resource, bool given
+openssl_pkey_get_details(): Argument #1 ($key) must be of type resource, bool given
+openssl_pkey_get_details(): Argument #1 ($key) must be of type resource, bool given
bool(false)
Arg value is Array
-preg_grep() expects argument #1 ($regex) to be of type string, array given
+preg_grep(): Argument #1 ($regex) must be of type string, array given
Arg value is /[a-zA-Z]/
array(2) {
[2]=>
string(4) "test"
}
-preg_grep() expects argument #1 ($regex) to be of type string, object given
+preg_grep(): Argument #1 ($regex) must be of type string, object given
Done
NULL
Arg value is Array
-preg_match_all() expects argument #1 ($pattern) to be of type string, array given
+preg_match_all(): Argument #1 ($pattern) must be of type string, array given
NULL
Arg value is /[a-zA-Z]/
string(1) "t"
}
}
-preg_match_all() expects argument #1 ($pattern) to be of type string, object given
+preg_match_all(): Argument #1 ($pattern) must be of type string, object given
NULL
*** Testing preg_match_all() : error conditions ***
Arg value is: Array
-preg_match_all() expects argument #2 ($subject) to be of type string, array given
+preg_match_all(): Argument #2 ($subject) must be of type string, array given
NULL
Arg value is: test
bool(false)
Arg value is Array
-preg_match() expects argument #1 ($pattern) to be of type string, array given
+preg_match(): Argument #1 ($pattern) must be of type string, array given
Arg value is /[a-zA-Z]/
int(1)
-preg_match() expects argument #1 ($pattern) to be of type string, object given
+preg_match(): Argument #1 ($pattern) must be of type string, object given
int(1)
Arg value is: Array
-preg_match() expects argument #2 ($subject) to be of type string, array given
-preg_match() expects argument #2 ($subject) to be of type string, object given
+preg_match(): Argument #2 ($subject) must be of type string, array given
+preg_match(): Argument #2 ($subject) must be of type string, object given
Done
bool(false)
Arg value is Array
-preg_split() expects argument #1 ($pattern) to be of type string, array given
+preg_split(): Argument #1 ($pattern) must be of type string, array given
Arg value is /[a-zA-Z]/
array(3) {
[2]=>
string(4) " 5 6"
}
-preg_split() expects argument #1 ($pattern) to be of type string, object given
+preg_split(): Argument #1 ($pattern) must be of type string, object given
if (false !== ($tmp = @$stmt->getColumnMeta(-1)))
printf("[004] Expecting false got %s\n", var_export($tmp, true));
- // Warning: PDOStatement::getColumnMeta() expects argument #1 to be of type int, array given in
+ // Warning: PDOStatement::getColumnMeta(): Argument #1 must be of type int, array given in
if (false !== ($tmp = @$stmt->getColumnMeta(array())))
printf("[005] Expecting false got %s\n", var_export($tmp, true));
}
?>
--EXPECTF--
-Phar::mungServer() expects argument #1 ($munglist) to be of type array, string given
-Phar::createDefaultStub() expects argument #1 ($index) to be a valid path, array given
-Phar::loadPhar() expects argument #1 ($filename) to be a valid path, array given
-Phar::canCompress() expects argument #1 ($method) to be of type int, string given
-Phar::__construct() expects argument #1 ($filename) to be a valid path, array given
-Phar::convertToExecutable() expects argument #1 ($format) to be of type int, array given
-Phar::convertToData() expects argument #1 ($format) to be of type int, array given
-PharData::delete() expects argument #1 ($entry) to be a valid path, array given
+Phar::mungServer(): Argument #1 ($munglist) must be of type array, string given
+Phar::createDefaultStub(): Argument #1 ($index) must be a valid path, array given
+Phar::loadPhar(): Argument #1 ($filename) must be a valid path, array given
+Phar::canCompress(): Argument #1 ($method) must be of type int, string given
+Phar::__construct(): Argument #1 ($filename) must be a valid path, array given
+Phar::convertToExecutable(): Argument #1 ($format) must be of type int, array given
+Phar::convertToData(): Argument #1 ($format) must be of type int, array given
+PharData::delete(): Argument #1 ($entry) must be a valid path, array given
Cannot write out phar archive, phar is read-only
Entry oops does not exist and cannot be deleted
%sfrontcontroller10.phar
Cannot write out phar archive, phar is read-only
A Phar alias cannot be set in a plain tar archive
-Phar::setAlias() expects argument #1 ($alias) to be of type string, array given
+Phar::setAlias(): Argument #1 ($alias) must be of type string, array given
Cannot change stub, phar is read-only
A Phar stub cannot be set in a plain tar archive
-Phar::setStub() expects argument #1 ($newstub) to be of type string, array given
+Phar::setStub(): Argument #1 ($newstub) must be of type string, array given
A Phar stub cannot be set in a plain tar archive
-Phar::setDefaultStub() expects argument #1 ($index) to be of type string, array given
+Phar::setDefaultStub(): Argument #1 ($index) must be of type string, array given
Cannot change stub: phar.readonly=1
Cannot set signature algorithm, phar is read-only
-Phar::compress() expects argument #1 ($compression_type) to be of type int, array given
+Phar::compress(): Argument #1 ($compression_type) must be of type int, array given
Cannot compress phar archive, phar is read-only
-Phar::compressFiles() expects argument #1 ($compression_type) to be of type int, array given
+Phar::compressFiles(): Argument #1 ($compression_type) must be of type int, array given
Phar is readonly, cannot change compression
Phar::copy() expects exactly 2 parameters, 1 given
Cannot copy "a" to "b", phar is read-only
-Phar::offsetExists() expects argument #1 ($entry) to be a valid path, array given
-Phar::offsetGet() expects argument #1 ($entry) to be a valid path, array given
+Phar::offsetExists(): Argument #1 ($entry) must be a valid path, array given
+Phar::offsetGet(): Argument #1 ($entry) must be a valid path, array given
Phar::offsetSet() expects exactly 2 parameters, 1 given
-PharData::offsetUnset() expects argument #1 ($entry) to be a valid path, array given
+PharData::offsetUnset(): Argument #1 ($entry) must be a valid path, array given
Write operations disabled by the php.ini setting phar.readonly
-Phar::addEmptyDir() expects argument #1 ($dirname) to be a valid path, array given
-Phar::addFile() expects argument #1 ($filename) to be a valid path, array given
+Phar::addEmptyDir(): Argument #1 ($dirname) must be a valid path, array given
+Phar::addFile(): Argument #1 ($filename) must be a valid path, array given
Phar::addFromString() expects exactly 2 parameters, 1 given
Write operations disabled by the php.ini setting phar.readonly
Phar::setMetadata() expects exactly 1 parameter, 2 given
CAUGHT: Cannot create any files in magic ".phar" directory
CAUGHT: Cannot create any files in magic ".phar" directory
CAUGHT: Cannot create any files in magic ".phar" directory
-CAUGHT: Phar::addFromString() expects argument #1 ($localname) to be a valid path, string given
+CAUGHT: Phar::addFromString(): Argument #1 ($localname) must be a valid path, string given
11:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
12:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
13:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
-Exception: Phar::offsetSet() expects argument #1 ($entry) to be a valid path, string given
+Exception: Phar::offsetSet(): Argument #1 ($entry) must be a valid path, string given
<?php rmdir(__DIR__ . '/poo'); ?>
<?php unlink(__DIR__ . '/fgc_edgecases.txt'); ?>
--EXPECTF--
-file_get_contents() expects argument #1 ($filename) to be a valid path, array given
+file_get_contents(): Argument #1 ($filename) must be a valid path, array given
blah
<?php
echo file_get_contents("foo/" . basename(__FILE__));
<?php rmdir(__DIR__ . '/poo'); ?>
<?php unlink(__DIR__ . '/fopen_edgecases2.txt'); ?>
--EXPECTF--
-fopen() expects argument #1 ($filename) to be a valid path, array given
+fopen(): Argument #1 ($filename) must be a valid path, array given
blah
test
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
<?php rmdir(__DIR__ . '/poo');
--EXPECTF--
-opendir() expects argument #1 ($path) to be a valid path, array given
+opendir(): Argument #1 ($path) must be a valid path, array given
.
..
foo
string(3) "hi2"
bool(false)
Invalid argument, expected a filename (string) or array of filenames
-Phar::extractTo() expects argument #1 ($pathto) to be a valid path, array given
+Phar::extractTo(): Argument #1 ($pathto) must be a valid path, array given
Invalid argument, extraction path must be non-zero length
Unable to use path "%soops" for extraction, it is a file, must be a directory
Invalid argument, array of filenames to extract contains non-string value
__halt_compiler();
?>
--EXPECTF--
-SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'SplFileInfo' given
+SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, 'SplFileInfo' given
MyFile::__construct(phar://%s/a.php)
a.php
MyFile::__construct(phar://%s/b/c.php)
Unknown phar archive ""
Unknown phar archive "%sphar_unlinkarchive.phar"
Unknown phar archive "%sphar_unlinkarchive.phar.tar": internal corruption of phar "%sphar_unlinkarchive.phar.tar" (truncated entry)
-Phar::unlinkArchive() expects argument #1 ($archive) to be a valid path, array given
+Phar::unlinkArchive(): Argument #1 ($archive) must be a valid path, array given
bool(false)
string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
phar archive "%sphar_unlinkarchive.phar" has open file handles or objects. fclose() all file handles, and unset() all objects prior to calling unlinkArchive()
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?>
--EXPECTF--
Cannot open phar file 'phar://%spharfileinfo_construct.phar/oops': internal corruption of phar "%spharfileinfo_construct.phar" (truncated entry)
-PharFileInfo::__construct() expects argument #1 ($filename) to be a valid path, array given
+PharFileInfo::__construct(): Argument #1 ($filename) must be a valid path, array given
Cannot access phar file entry '%s' in archive '%s'
Cannot call constructor twice
'%s' is not a valid phar archive URL (must have at least phar://filename.phar)
Method 1 does not exist
Method 1.5 does not exist
Method 1 does not exist
-ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, array given
-ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, object given
+ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, array given
+ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, object given
Property 1 does not exist
Property 1.5 does not exist
Property 1 does not exist
-ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, array given
-ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, object given
+ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, array given
+ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, object given
ReflectionClass::getStaticPropertyValue() expects at least 1 parameter, 0 given
Class C does not have a property named
string(3) "def"
-ReflectionClass::getStaticPropertyValue() expects argument #1 ($name) to be of type string, array given
+ReflectionClass::getStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs() expects argument #1 ($args) to be of type array, string given in %s:%d
+Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs(): Argument #1 ($args) must be of type array, string given in %s:%d
Stack trace:
#0 %s(%d): ReflectionClass->newInstanceArgs('x')
#1 {main}
ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 1 given
Class C does not have a property named
Class C does not have a property named 1.5
-ReflectionClass::setStaticPropertyValue() expects argument #1 ($name) to be of type string, array given
+ReflectionClass::setStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
--EXPECTF--
Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
-Ok - ReflectionExtension::__construct() expects argument #1 ($name) to be of type string, array given
+Ok - ReflectionExtension::__construct(): Argument #1 ($name) must be of type string, array given
?>
--EXPECT--
-Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type string, array given
+Ok - ReflectionFunction::__construct(): Argument #1 ($name) must be of type string, array given
Function nonExistentFunction() does not exist
Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 0 given
Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 2 given
-Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type string, array given
+Ok - ReflectionFunction::__construct(): Argument #1 ($name) must be of type string, array given
?>
--EXPECT--
-string(90) "ReflectionMethod::invokeArgs() expects argument #2 ($args) to be of type array, bool given"
+string(85) "ReflectionMethod::invokeArgs(): Argument #2 ($args) must be of type array, bool given"
Static method:
ReflectionMethod::invoke() expects at least 1 parameter, 0 given
-ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given
+ReflectionMethod::invoke(): Argument #1 ($object) must be of type object, bool given
Called staticMethod()
Exception: Using $this when not in object context
NULL
?>
--EXPECT--
invoke() on a non-object:
-string(89) "ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given"
+string(84) "ReflectionMethod::invoke(): Argument #1 ($object) must be of type object, bool given"
invoke() on a non-instance:
string(72) "Given object is not an instance of the class this method was declared in"
?>
--EXPECTF--
Call to private ReflectionReference::__construct() from invalid context
-ReflectionReference::fromArrayElement() expects argument #1 ($array) to be of type array, object given
+ReflectionReference::fromArrayElement(): Argument #1 ($array) must be of type array, object given
Key must be array or string
Array key not found
Serialization of 'ReflectionReference' is not allowed
--EXPECTF--
string(9) "x.changed"
-Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d
+Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line %d
string(10) "x.original"
-Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d
+Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line %d
string(10) "x.original"
Done
}
?>
--EXPECT--
-ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, string given
-ReflectionMethod::invokeArgs() expects argument #1 ($object) to be of type object, string given
+ReflectionMethod::invoke(): Argument #1 ($object) must be of type object, string given
+ReflectionMethod::invokeArgs(): Argument #1 ($object) must be of type object, string given
--EXPECT--
*** Testing session_set_save_handler() function: interface wrong ***
bool(true)
-session_set_save_handler() expects argument #1 ($open) to be of type SessionHandlerInterface, object given
+session_set_save_handler(): Argument #1 ($open) must be of type SessionHandlerInterface, object given
good handler writing
?>
--EXPECTF--
SNMP::__construct() expects at least 3 parameters, 2 given
-SNMP::__construct() expects argument #4 to be of type int, string given
-SNMP::__construct() expects argument #5 to be of type int, string given
+SNMP::__construct(): Argument #4 must be of type int, string given
+SNMP::__construct(): Argument #5 must be of type int, string given
Unknown SNMP protocol version
Exception handling
--EXPECTF--
object(TypeError)#%d (%d) {
["message":protected]=>
- string(%d) "SoapClient::__construct() expects argument #2 ($options) to be of type array, null given"
+ string(%d) "SoapClient::__construct(): Argument #2 ($options) must be of type array, null given"
["string":"Error":private]=>
string(0) ""
["code":protected]=>
$hash = do_crypto_shorthash($m, $key);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: sodium_crypto_shorthash() expects argument #1 ($string) to be of type string, int given in %s:%d
+Fatal error: Uncaught TypeError: sodium_crypto_shorthash(): Argument #1 ($string) must be of type string, int given in %s:%d
Stack trace:
#0 %s(%d): sodium_crypto_shorthash()
#1 %s(%d): do_crypto_shorthash()
--EXPECT--
CallbackFilterIterator::__construct() expects exactly 2 parameters, 0 given
CallbackFilterIterator::__construct() expects exactly 2 parameters, 1 given
-CallbackFilterIterator::__construct() expects argument #2 ($callback) to be a valid callback, no array or string given
-CallbackFilterIterator::__construct() expects argument #2 ($callback) to be a valid callback, array must have exactly two members
+CallbackFilterIterator::__construct(): Argument #2 ($callback) must be a valid callback, no array or string given
+CallbackFilterIterator::__construct(): Argument #2 ($callback) must be a valid callback, array must have exactly two members
some message
?>
--EXPECT--
-SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'stdClass' given
+SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, 'stdClass' given
?>
--EXPECT--
-SplFileInfo::setInfoClass() expects argument #1 ($class_name) to be a class name derived from SplFileInfo, 'stdClass' given
+SplFileInfo::setInfoClass(): Argument #1 ($class_name) must be a class name derived from SplFileInfo, 'stdClass' given
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, array given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, array given
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given
}
?>
--EXPECT--
-SplTempFileObject::__construct() expects argument #1 ($max_memory) to be of type int, string given
+SplTempFileObject::__construct(): Argument #1 ($max_memory) must be of type int, string given
?>
--EXPECT--
Bad iterator type:
-ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'Exception' given(6)
+ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'Exception' given(6)
Non-existent class:
-ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClassName' given(13)
+ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'nonExistentClassName' given(13)
int(4)
}
}
-asort() expects argument #2 ($sort_flags) to be of type int, string given
+asort(): Argument #2 ($sort_flags) must be of type int, string given
object(ArrayObject)#%d (1) {
["storage":"ArrayObject":private]=>
array(3) {
int(3)
}
}
-ksort() expects argument #2 ($sort_flags) to be of type int, string given
+ksort(): Argument #2 ($sort_flags) must be of type int, string given
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
array(4) {
?>
--EXPECT--
-string(135) "ArrayObject::setIteratorClass() expects argument #1 ($iteratorClass) to be a class name derived from Iterator, 'nonExistentClass' given"
-string(127) "ArrayObject::setIteratorClass() expects argument #1 ($iteratorClass) to be a class name derived from Iterator, 'stdClass' given"
-string(131) "ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClass' given"
-string(123) "ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'stdClass' given"
+string(130) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, 'nonExistentClass' given"
+string(122) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, 'stdClass' given"
+string(126) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'nonExistentClass' given"
+string(118) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'stdClass' given"
$dir = new DirectoryIterator("\x00/abc");
$dir->isFile();
--EXPECTF--
-Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct(): Argument #1 ($path) must be a valid path, string given in %s:%d
Stack trace:
#0 %s(%d): DirectoryIterator->__construct('\x00/abc')
#1 {main}
?>
--EXPECT--
-string(95) "SplFileObject::__construct() expects argument #2 ($open_mode) to be of type string, array given"
+string(90) "SplFileObject::__construct(): Argument #2 ($open_mode) must be of type string, array given"
new SplFileInfo("bad\0good");
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects argument #1 ($file_name) to be a valid path, string given in %s:%d
-Stack trace:%A
+Fatal error: Uncaught TypeError: SplFileInfo::__construct(): Argument #1 ($file_name) must be a valid path, string given in %s:%d
+Stack trace:
+#0 %s(%d): SplFileInfo->__construct('bad\x00good')
+#1 {main}
+ thrown in %s on line %d
}
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct(): Argument #1 ($path) must be a valid path, string given in %s:%d
Stack trace:
#0 %s(%d): DirectoryIterator->__construct('%s')
#1 {main}
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
}
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
echo "Done\n";
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
Done
?>
--EXPECTF--
-Error AppendIterator::append() expects argument #1 ($iterator) to be of type Iterator, array given in %s on line %d
+Error AppendIterator::append(): Argument #1 ($iterator) must be of type Iterator, array given in %s on line %d
object(ArrayIterator)#%d (1) {
%s"storage"%s"ArrayIterator":private]=>
array(2) {
===1===
object(stdClass)#%d (0) {
}
-CachingIterator::offsetExists() expects argument #1 ($index) to be of type string, object given
-CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given
+CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, object given
+CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, object given
===2===
object(MyFoo)#%d (0) {
}
===1===
object(stdClass)#1 (0) {
}
-CachingIterator::offsetExists() expects argument #1 ($index) to be of type string, object given
-CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given
+CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, object given
+CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, object given
===2===
object(MyFoo)#2 (0) {
}
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: iterator_count() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d
+Fatal error: Uncaught TypeError: iterator_count(): Argument #1 ($iterator) must be of type Traversable, string given in %s:%d
Stack trace:
#0 %s(%d): iterator_count('1')
#1 {main}
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: iterator_to_array() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d
+Fatal error: Uncaught TypeError: iterator_to_array(): Argument #1 ($iterator) must be of type Traversable, string given in %s:%d
Stack trace:
#0 %s(%d): iterator_to_array('test', 'test')
#1 {main}
}
?>
--EXPECT--
-RecursiveCachingIterator::__construct() expects argument #1 ($iterator) to be of type RecursiveIterator, object given
+RecursiveCachingIterator::__construct(): Argument #1 ($iterator) must be of type RecursiveIterator, object given
int(6)
int(4)
===ERRORS===
-iterator_apply() expects argument #3 ($args) to be of type array, int given
-iterator_apply() expects argument #2 ($function) to be a valid callback, function 'non_existing_function' not found or invalid function name
+iterator_apply(): Argument #3 ($args) must be of type array, int given
+iterator_apply(): Argument #2 ($function) must be a valid callback, function 'non_existing_function' not found or invalid function name
iterator_apply() expects at most 3 parameters, 4 given
option = PHP_STREAM_META_GROUP_NAME;
value = Z_STRVAL_P(group);
} else {
- zend_type_error("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group));
+ zend_type_error("chgrp(): Argument #2 ($group) must be of type string|int, %s given", zend_zval_type_name(group));
RETURN_THROWS();
}
if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) {
RETURN_FALSE;
}
} else {
- zend_type_error("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group));
+ zend_type_error("chgrp(): Argument #2 ($group) must be of type string|int, %s given", zend_zval_type_name(group));
RETURN_THROWS();
}
if (pieces == NULL) {
if (arg1_array == NULL) {
- zend_type_error("%s() expects argument #1 ($pieces) to be of type array, string given", get_active_function_name());
+ zend_type_error("%s(): Argument #1 ($pieces) must be of type array, string given", get_active_function_name());
RETURN_THROWS();
}
pieces = arg1_array;
} else {
if (arg1_str == NULL) {
- zend_type_error("%s() expects argument #1 ($glue) to be of type string, array given", get_active_function_name());
+ zend_type_error("%s(): Argument #1 ($glue) must be of type string, array given", get_active_function_name());
RETURN_THROWS();
}
}
echo "end\n";
?>
--EXPECT--
-array_change_key_case() expects argument #2 ($case) to be of type int, string given
+array_change_key_case(): Argument #2 ($case) must be of type int, string given
array(4) {
["ONE"]=>
int(1)
*** Testing array_diff_uassoc() : error conditions ***
-- Testing array_diff_uassoc() function with more than expected no. of arguments --
-array_diff_uassoc() expects argument #4 to be a valid callback, array must have exactly two members
-array_diff_uassoc() expects argument #6 to be a valid callback, array must have exactly two members
+array_diff_uassoc(): Argument #4 must be a valid callback, array must have exactly two members
+array_diff_uassoc(): Argument #6 must be a valid callback, array must have exactly two members
-- Testing array_diff_uassoc() function with less than expected no. of arguments --
At least 3 parameters are required, 2 given
?>
--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
-array_diff_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
-array_diff_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
+array_diff_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
+array_diff_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
[6]=>
NULL
}
-array_filter() expects argument #2 ($callback) to be a valid callback, function 'echo' not found or invalid function name
-array_filter() expects argument #2 ($callback) to be a valid callback, function 'exit' not found or invalid function name
+array_filter(): Argument #2 ($callback) must be a valid callback, function 'echo' not found or invalid function name
+array_filter(): Argument #2 ($callback) must be a valid callback, function 'exit' not found or invalid function name
Done
}
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_ukey() : usage variation ***
-array_intersect_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
-array_intersect_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
+array_intersect_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
+array_intersect_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
Illegal offset type
*** Testing operation on objects ***
-array_key_exists() expects argument #2 ($array) to be of type array, object given
+array_key_exists(): Argument #2 ($array) must be of type array, object given
Done
-- simple class with private variable and method --
SimpleClassPri::add
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method SimpleClassPri::add()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access private method SimpleClassPri::add()
-- simple class with protected variable and method --
SimpleClassPro::mul
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method SimpleClassPro::mul()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access protected method SimpleClassPro::mul()
-- class without members --
EmptyClass
-array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
+array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
-- abstract class --
ChildClass::emptyFunction
int(4)
}
StaticClass::cube
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method StaticClass::cube()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access private method StaticClass::cube()
StaticClass::retVal
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method StaticClass::retVal()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access protected method StaticClass::retVal()
-- class implementing an interface --
InterClass::square
array(2) {
--EXPECT--
*** Testing array_map() : with non-existent class and method ***
-- with non-existent class --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'non-existent' not found
+array_map(): Argument #1 ($callback) must be a valid callback, class 'non-existent' not found
-- with existent class and non-existent method --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
+array_map(): Argument #1 ($callback) must be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
Done
int(7)
}
-- accessing child method from parent class --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map(): Argument #1 ($callback) must be a valid callback, class 'ParentClass' does not have a method 'staticChild'
-- accessing parent method using child class object --
array(3) {
[0]=>
int(7)
}
-- accessing child method using parent class object --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map(): Argument #1 ($callback) must be a valid callback, class 'ParentClass' does not have a method 'staticChild'
Done
-- with built-in function 'pow' and one parameter --
pow() expects exactly 2 parameters, 1 given
-- with language construct --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'echo' not found or invalid function name
Done
int(2)
}
-- with empty string --
-array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
-- with empty array --
-array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
+array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
Done
?>
--EXPECT--
*** Testing array_map() : non existent 'callback' function ***
-array_map() expects argument #1 ($callback) to be a valid callback, function 'non_existent' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'non_existent' not found or invalid function name
Done
--EXPECT--
*** Testing array_map() : non-permmited built-in functions ***
-- Iteration 1 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'echo' not found or invalid function name
-- Iteration 2 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'array' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'array' not found or invalid function name
-- Iteration 3 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'empty' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'empty' not found or invalid function name
-- Iteration 4 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'eval' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'eval' not found or invalid function name
-- Iteration 5 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'exit' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'exit' not found or invalid function name
-- Iteration 6 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'isset' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'isset' not found or invalid function name
-- Iteration 7 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'list' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'list' not found or invalid function name
-- Iteration 8 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'print' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'print' not found or invalid function name
Done
*** Testing array_map() : unexpected values for 'callback' argument ***
-- Iteration 1 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 2 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 3 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 4 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 5 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 6 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 7 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 8 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 9 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 10 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 11 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 12 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 13 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 14 --
-array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
-- Iteration 15 --
-array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
-- Iteration 16 --
-array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
+array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
-- Iteration 17 --
-array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
+array_map(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
-- Iteration 18 --
-array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
+array_map(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
-- Iteration 19 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
-- Iteration 20 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
Done
int(5)
*** Testing objects with array_search() ***
-array_search() expects argument #2 ($haystack) to be of type array, object given
-array_search() expects argument #2 ($haystack) to be of type array, object given
+array_search(): Argument #2 ($haystack) must be of type array, object given
+array_search(): Argument #2 ($haystack) must be of type array, object given
int(1)
Done
[2]=>
int(3)
}
-array_slice() expects argument #3 ($length) to be of type int, string given
-array_slice() expects argument #3 ($length) to be of type int, string given
+array_slice(): Argument #3 ($length) must be of type int, string given
+array_slice(): Argument #3 ($length) must be of type int, string given
string(3) "foo"
string(14) "test_protected"
string(7) "var_pub"
string(11) "test_public"
-array_walk() expects argument #1 ($input) to be of type array, string given
+array_walk(): Argument #1 ($input) must be of type array, string given
Done
-- With 'min' built-in function --
bool(true)
-- With 'echo' language construct --
-array_walk_recursive() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name
+array_walk_recursive(): Argument #2 ($funcname) must be a valid callback, function 'echo' not found or invalid function name
Done
-- With 'min' built-in function --
bool(true)
-- With 'echo' language construct --
-array_walk() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name
+array_walk(): Argument #2 ($funcname) must be a valid callback, function 'echo' not found or invalid function name
Done
echo "Done\n";
?>
--EXPECT--
-array_unique() expects argument #1 ($arg) to be of type array, object given
+array_unique(): Argument #1 ($arg) must be of type array, object given
Done
bool(true)
*** Testing objects with in_array() ***
-in_array() expects argument #2 ($haystack) to be of type array, object given
-in_array() expects argument #2 ($haystack) to be of type array, object given
+in_array(): Argument #2 ($haystack) must be of type array, object given
+in_array(): Argument #2 ($haystack) must be of type array, object given
bool(true)
Done
-- Testing other conditions --
Step exceeds the specified range
-range() expects argument #3 ($step) to be of type int|float, string given
+range(): Argument #3 ($step) must be of type int|float, string given
Step exceeds the specified range
Notice: A non well formed numeric value encountered in %s on line %d
Step exceeds the specified range
-- Testing Invalid steps --
-range() expects argument #3 ($step) to be of type int|float, string given
+range(): Argument #3 ($step) must be of type int|float, string given
Step exceeds the specified range
Step exceeds the specified range
-range() expects argument #3 ($step) to be of type int|float, string given
-range() expects argument #3 ($step) to be of type int|float, string given
+range(): Argument #3 ($step) must be of type int|float, string given
+range(): Argument #3 ($step) must be of type int|float, string given
[4]=>
int(5)
}
-range() expects argument #3 ($step) to be of type int|float, array given
+range(): Argument #3 ($step) must be of type int|float, array given
Done
Warning: Undefined variable: unset_var in %s on line %d
Arg value: 0 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
Arg value: 1 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
Arg value: 12345 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
Arg value: -2345 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
Arg value: 10.5 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
Arg value: -10.5 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
Arg value: 101234567000 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
Arg value: 1.07654321E-9 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
Arg value: 0.5 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
Arg value: (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
Arg value: (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
Arg value: 1 (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
Arg value: (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
Arg value: 1 (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
Arg value: (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
Arg value: (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
Arg value: (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
Arg value: string (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
Arg value: string (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
Arg value: (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
Arg value: (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
Done
bool(true)
43567
-- Iteration 12 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
-- Iteration 13 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
-- Iteration 14 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
-- Iteration 15 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
*** Done ***
}
?>
--EXPECT--
-file_exists() expects argument #1 ($filename) to be a valid path, string given
+file_exists(): Argument #1 ($filename) must be a valid path, string given
}
?>
--EXPECT--
-chgrp() expects argument #2 ($group) to be of type string|int, null given
+chgrp(): Argument #2 ($group) must be of type string|int, null given
float(%d)
-- Iteration 9 --
-disk_free_space() expects argument #1 ($directory) to be a valid path, string given
-diskfreespace() expects argument #1 ($directory) to be a valid path, string given
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
-- Iteration 10 --
-disk_free_space() expects argument #1 ($directory) to be a valid path, string given
-diskfreespace() expects argument #1 ($directory) to be a valid path, string given
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
-- Iteration 11 --
-disk_free_space() expects argument #1 ($directory) to be a valid path, string given
-diskfreespace() expects argument #1 ($directory) to be a valid path, string given
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
-- Iteration 12 --
-disk_free_space() expects argument #1 ($directory) to be a valid path, string given
-diskfreespace() expects argument #1 ($directory) to be a valid path, string given
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
--- Done ---
float(%d)
-- Iteration 9 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
-- Iteration 10 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
-- Iteration 11 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
-- Iteration 12 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
*** Testing with Binary Input ***
float(%s)
bool(false)
-- Filename: \0 --
-file_get_contents() expects argument #1 ($filename) to be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
-- Filename: array() --
-file_get_contents() expects argument #1 ($filename) to be a valid path, array given
+file_get_contents(): Argument #1 ($filename) must be a valid path, array given
-- Filename: /no/such/file/dir --
Warning: file_get_contents( ): Failed to open stream: No such file or directory in %s on line %d
bool(false)
-- Iteration 6 --
-file_get_contents() expects argument #1 ($filename) to be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 7 --
-file_get_contents() expects argument #1 ($filename) to be a valid path, array given
+file_get_contents(): Argument #1 ($filename) must be a valid path, array given
-- Iteration 8 --
Warning: file_get_contents(/no/such/file/dir): Failed to open stream: No such file or directory in %s on line %d
Failed to write data to: " "
-- Filename: \0 --
-file_put_contents() expects argument #1 ($filename) to be a valid path, string given
+file_put_contents(): Argument #1 ($filename) must be a valid path, string given
-- Filename: array() --
-file_put_contents() expects argument #1 ($filename) to be a valid path, array given
+file_put_contents(): Argument #1 ($filename) must be a valid path, array given
-- Filename: /no/such/file/dir --
-- Iteration 5 --
9 bytes written to:
-- Iteration 6 --
-file_put_contents() expects argument #1 ($filename) to be a valid path, string given
+file_put_contents(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 7 --
-file_put_contents() expects argument #1 ($filename) to be a valid path, array given
+file_put_contents(): Argument #1 ($filename) must be a valid path, array given
-- Iteration 8 --
Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d
Warning: filegroup(): stat failed for %s/filegroup_variation3/filegroup*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-filegroup() expects argument #1 ($filename) to be a valid path, string given
+filegroup(): Argument #1 ($filename) must be a valid path, string given
- Iteration 8 -
-filegroup() expects argument #1 ($filename) to be a valid path, string given
+filegroup(): Argument #1 ($filename) must be a valid path, string given
*** Done ***
Warning: fileinode(): stat failed for %s/fileinode_variation3/fileinode*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-fileinode() expects argument #1 ($filename) to be a valid path, string given
+fileinode(): Argument #1 ($filename) must be a valid path, string given
- Iteration 8 -
-fileinode() expects argument #1 ($filename) to be a valid path, string given
+fileinode(): Argument #1 ($filename) must be a valid path, string given
*** Done ***
Warning: fileowner(): stat failed for %s/fileowner_variation3/fileowner*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-fileowner() expects argument #1 ($filename) to be a valid path, string given
+fileowner(): Argument #1 ($filename) must be a valid path, string given
- Iteration 8 -
-fileowner() expects argument #1 ($filename) to be a valid path, string given
+fileowner(): Argument #1 ($filename) must be a valid path, string given
*** Done ***
Warning: fileperms(): stat failed for %s/fileperms_variation3/fileperms*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-fileperms() expects argument #1 ($filename) to be a valid path, string given
+fileperms(): Argument #1 ($filename) must be a valid path, string given
- Iteration 8 -
-fileperms() expects argument #1 ($filename) to be a valid path, string given
+fileperms(): Argument #1 ($filename) must be a valid path, string given
*** Done ***
--- Iteration 3 ---
Illegal operation argument
--- Iteration 4 ---
-flock() expects argument #2 ($operation) to be of type int, array given
+flock(): Argument #2 ($operation) must be of type int, array given
--- Iteration 5 ---
-flock() expects argument #2 ($operation) to be of type int, array given
+flock(): Argument #2 ($operation) must be of type int, array given
--- Iteration 6 ---
-flock() expects argument #2 ($operation) to be of type int, string given
+flock(): Argument #2 ($operation) must be of type int, string given
--- Iteration 7 ---
-flock() expects argument #2 ($operation) to be of type int, string given
+flock(): Argument #2 ($operation) must be of type int, string given
--- Iteration 8 ---
-flock() expects argument #2 ($operation) to be of type int, string given
+flock(): Argument #2 ($operation) must be of type int, string given
flock(): supplied resource is not a valid stream resource
-- Iteration 22 --
bool(false)
-- Iteration 23 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 24 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 25 --
bool(false)
-- Iteration 26 --
--- With Strings ---
-- Iteration 0 --
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(true)
-- Iteration 1 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 2 --
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(true)
-- Iteration 3 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 4 --
bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(true)
bool(false)
-- Iteration 5 --
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(false)
-- Iteration 1 --
bool(true)
bool(true)
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(false)
-- Iteration 2 --
bool(true)
bool(true)
bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(false)
-- Iteration 3 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 4 --
bool(false)
bool(false)
bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(true)
bool(false)
-- Iteration 5 --
bool(false)
bool(false)
bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
bool(false)
bool(true)
Warning: fopen(c\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--\--
Warning: fopen(\\fopen_variation10.tmp): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--/--
Warning: fopen(/\fopen_variation10.tmp): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--c:fopen10.tmpdirTwo--
file in fopen10.tmpdirTwo
Warning: fopen(c:adir\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--c:\/--
file in root
Warning: fopen(/sortout\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
Warning: fopen(c\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--\--
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--/--
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--c:fopen11.tmpdirTwo--
file in fopen11.tmpdirTwo
Warning: fopen(c:adir\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
--c:\/--
file in root
Warning: fopen(/sortout\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
}
-- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 9 --
array(0) {
array(0) {
}
-- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 9 --
array(0) {
}
}
-- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 9 --
array(0) {
array(0) {
}
-- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 9 --
array(0) {
}
}
-- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 9 --
array(0) {
array(0) {
}
-- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
-- Iteration 9 --
array(0) {
}
bool(false)
-- Iteration 9 --
-is_dir() expects argument #1 ($filename) to be a valid path, string given
+is_dir(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 10 --
-is_dir() expects argument #1 ($filename) to be a valid path, string given
+is_dir(): Argument #1 ($filename) must be a valid path, string given
*** Done ***
-- Iteration 5 --
bool(false)
-- Iteration 6 --
-is_executable() expects argument #1 ($filename) to be a valid path, string given
+is_executable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 7 --
-is_executable() expects argument #1 ($filename) to be a valid path, string given
+is_executable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 8 --
bool(false)
-- Iteration 9 --
- Iteration 6 -
bool(false)
- Iteration 7 -
-is_file() expects argument #1 ($filename) to be a valid path, string given
+is_file(): Argument #1 ($filename) must be a valid path, string given
- Iteration 8 -
-is_file() expects argument #1 ($filename) to be a valid path, string given
+is_file(): Argument #1 ($filename) must be a valid path, string given
*** Done ***
-- Iteration 6 --
bool(false)
-- Iteration 7 --
-is_readable() expects argument #1 ($filename) to be a valid path, string given
+is_readable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 8 --
-is_readable() expects argument #1 ($filename) to be a valid path, string given
+is_readable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 9 --
-is_readable() expects argument #1 ($filename) to be a valid path, string given
+is_readable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 10 --
bool(true)
-- Iteration 11 --
bool(false)
bool(false)
-- Iteration 7 --
-is_writable() expects argument #1 ($filename) to be a valid path, string given
-is_writeable() expects argument #1 ($filename) to be a valid path, string given
+is_writable(): Argument #1 ($filename) must be a valid path, string given
+is_writeable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 8 --
-is_writable() expects argument #1 ($filename) to be a valid path, string given
-is_writeable() expects argument #1 ($filename) to be a valid path, string given
+is_writable(): Argument #1 ($filename) must be a valid path, string given
+is_writeable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 9 --
-is_writable() expects argument #1 ($filename) to be a valid path, string given
-is_writeable() expects argument #1 ($filename) to be a valid path, string given
+is_writable(): Argument #1 ($filename) must be a valid path, string given
+is_writeable(): Argument #1 ($filename) must be a valid path, string given
-- Iteration 10 --
bool(true)
bool(true)
bool(false)
*** Testing mkdir() and rmdir() for binary safe functionality ***
-mkdir() expects argument #1 ($pathname) to be a valid path, string given
-rmdir() expects argument #1 ($dirname) to be a valid path, string given
+mkdir(): Argument #1 ($pathname) must be a valid path, string given
+rmdir(): Argument #1 ($dirname) must be a valid path, string given
*** Testing mkdir() with miscellaneous input ***
bool(true)
Warning: readfile( ): Failed to open stream: Permission denied in %s on line %d
-- Filename: \0 --
-readfile() expects argument #1 ($filename) to be a valid path, string given
+readfile(): Argument #1 ($filename) must be a valid path, string given
-- Filename: array() --
-readfile() expects argument #1 ($filename) to be a valid path, array given
+readfile(): Argument #1 ($filename) must be a valid path, array given
-- Filename: /no/such/file/dir --
?>
--EXPECTF--
-file_get_contents() expects argument #1 ($filename) to be a valid path, string given
-file_get_contents() expects argument #1 ($filename) to be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): Failed to open stream: rfc2397: unable to decode in %sstream_rfc2397_006.php on line %d
bool(false)
Failed, not created in the correct directory %s vs %s
0
-- Iteration 6 --
-tempnam() expects argument #2 ($prefix) to be a valid path, string given
+tempnam(): Argument #2 ($prefix) must be a valid path, string given
-- Iteration 7 --
-tempnam() expects argument #2 ($prefix) to be a valid path, array given
+tempnam(): Argument #2 ($prefix) must be a valid path, array given
-- Iteration 8 --
OK
-- Iteration 9 --
File permissions are => 100600
File created in => directory specified
-- Iteration 6 --
-tempnam() expects argument #2 ($prefix) to be a valid path, string given
+tempnam(): Argument #2 ($prefix) must be a valid path, string given
-- Iteration 7 --
-tempnam() expects argument #2 ($prefix) to be a valid path, array given
+tempnam(): Argument #2 ($prefix) must be a valid path, array given
-- Iteration 8 --
File name is => %s/dir%s
File permissions are => 100600
File permissions are => 100666
File created in => temp dir
-- Iteration 6 --
-tempnam() expects argument #1 ($dir) to be a valid path, string given
+tempnam(): Argument #1 ($dir) must be a valid path, string given
-- Iteration 7 --
-tempnam() expects argument #1 ($dir) to be a valid path, array given
+tempnam(): Argument #1 ($dir) must be a valid path, array given
-- Iteration 8 --
Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.php on line %d
File permissions are => 100600
File created in => temp dir
-- Iteration 6 --
-tempnam() expects argument #1 ($dir) to be a valid path, string given
+tempnam(): Argument #1 ($dir) must be a valid path, string given
-- Iteration 7 --
-tempnam() expects argument #1 ($dir) to be a valid path, array given
+tempnam(): Argument #1 ($dir) must be a valid path, array given
-- Iteration 8 --
Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on line %d
var_dump(file_exists(__DIR__ . '/bug78862.link'));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: link() expects argument #1 ($target) to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: link(): Argument #1 ($target) must be a valid path, string given in %s:%d
Stack trace:
#0 %s(%d): link('%s', '%s')
#1 {main}
echo "Done\n";
?>
--EXPECTF--
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
bool(true)
-strlen() expects argument #1 ($str) to be of type string, array given
+strlen(): Argument #1 ($str) must be of type string, array given
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
bool(true)
-strlen() expects argument #1 ($str) to be of type string, array given
+strlen(): Argument #1 ($str) must be of type string, array given
Done
}
------ Calling by_ref() with unreferenced argument ------
-Warning: by_ref() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: by_ref(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
array(1) {
[0]=>
string(8) "original"
$o->test();
?>
---EXPECTF--
+--EXPECT--
parent|who
B
C|parent::who
$this|O::who
O
$this|B::who
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'P' is not a subclass of 'B'
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'P' is not a subclass of 'B'
}
?>
---EXPECTF--
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'Foo' not found
-call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
-call_user_func() expects argument #1 ($function) to be a valid callback, second array member is not a valid method
+--EXPECT--
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'Foo' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
+call_user_func(): Argument #1 ($function) must be a valid callback, second array member is not a valid method
int(0)
-- Iteration 7 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 8 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 9 --
-abs() expects argument #1 ($number) to be of type int|float, array given
+abs(): Argument #1 ($number) must be of type int|float, array given
-- Iteration 10 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 11 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 12 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 13 --
-abs() expects argument #1 ($number) to be of type int|float, object given
+abs(): Argument #1 ($number) must be of type int|float, object given
-- Iteration 14 --
int(0)
int(0)
-- Iteration 16 --
-abs() expects argument #1 ($number) to be of type int|float, resource given
+abs(): Argument #1 ($number) must be of type int|float, resource given
int(0)
-- Iteration 18 --
-bindec() expects argument #1 ($binary_string) to be of type string, array given
+bindec(): Argument #1 ($binary_string) must be of type string, array given
-- Iteration 19 --
int(0)
-- Iteration 24 --
-bindec() expects argument #1 ($binary_string) to be of type string, resource given
+bindec(): Argument #1 ($binary_string) must be of type string, resource given
int(0)
-- Iteration 18 --
-bindec() expects argument #1 ($binary_string) to be of type string, array given
+bindec(): Argument #1 ($binary_string) must be of type string, array given
-- Iteration 19 --
int(0)
-- Iteration 24 --
-bindec() expects argument #1 ($binary_string) to be of type string, resource given
+bindec(): Argument #1 ($binary_string) must be of type string, resource given
float(0)
-- Iteration 7 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 8 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 9 --
-ceil() expects argument #1 ($number) to be of type int|float, array given
+ceil(): Argument #1 ($number) must be of type int|float, array given
-- Iteration 10 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 11 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 12 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 13 --
-ceil() expects argument #1 ($number) to be of type int|float, object given
+ceil(): Argument #1 ($number) must be of type int|float, object given
-- Iteration 14 --
float(0)
float(0)
-- Iteration 16 --
-ceil() expects argument #1 ($number) to be of type int|float, resource given
+ceil(): Argument #1 ($number) must be of type int|float, resource given
float(0)
-- Iteration 7 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 8 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 9 --
-floor() expects argument #1 ($number) to be of type int|float, array given
+floor(): Argument #1 ($number) must be of type int|float, array given
-- Iteration 10 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 11 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 12 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 13 --
-floor() expects argument #1 ($number) to be of type int|float, object given
+floor(): Argument #1 ($number) must be of type int|float, object given
-- Iteration 14 --
float(0)
float(0)
-- Iteration 16 --
-floor() expects argument #1 ($number) to be of type int|float, resource given
+floor(): Argument #1 ($number) must be of type int|float, resource given
int(0)
-- Iteration 20 --
-hexdec() expects argument #1 ($hex_string) to be of type string, array given
+hexdec(): Argument #1 ($hex_string) must be of type string, array given
-- Iteration 21 --
int(0)
-- Iteration 26 --
-hexdec() expects argument #1 ($hex_string) to be of type string, resource given
+hexdec(): Argument #1 ($hex_string) must be of type string, resource given
int(0)
-- Iteration 20 --
-hexdec() expects argument #1 ($hex_string) to be of type string, array given
+hexdec(): Argument #1 ($hex_string) must be of type string, array given
-- Iteration 21 --
int(0)
-- Iteration 26 --
-hexdec() expects argument #1 ($hex_string) to be of type string, resource given
+hexdec(): Argument #1 ($hex_string) must be of type string, resource given
int(0)
-- Iteration 20 --
-octdec() expects argument #1 ($octal_string) to be of type string, array given
+octdec(): Argument #1 ($octal_string) must be of type string, array given
-- Iteration 21 --
int(0)
-- Iteration 26 --
-octdec() expects argument #1 ($octal_string) to be of type string, resource given
+octdec(): Argument #1 ($octal_string) must be of type string, resource given
---Done---
float(0)
-- Iteration 17 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 18 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 19 --
-round() expects argument #1 ($number) to be of type int|float, array given
+round(): Argument #1 ($number) must be of type int|float, array given
-- Iteration 20 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 21 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 22 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
-- Iteration 23 --
-round() expects argument #1 ($number) to be of type int|float, object given
+round(): Argument #1 ($number) must be of type int|float, object given
-- Iteration 24 --
float(0)
float(0)
-- Iteration 26 --
-round() expects argument #1 ($number) to be of type int|float, resource given
+round(): Argument #1 ($number) must be of type int|float, resource given
var_dump(!empty($res) && empty($additional));
?>
--EXPECT--
-bool(false)
+bool(true)
Warning: Array to string conversion in %s on line %d
Unknown password hashing algorithm: Array
-password_hash() expects argument #3 ($options) to be of type array, object given
-password_hash() expects argument #3 ($options) to be of type array, string given
-password_hash() expects argument #1 ($password) to be of type string, array given
+password_hash(): Argument #3 ($options) must be of type array, object given
+password_hash(): Argument #3 ($options) must be of type array, string given
+password_hash(): Argument #1 ($password) must be of type string, array given
--EXPECT--
password_needs_rehash() expects at least 2 parameters, 1 given
bool(false)
-password_needs_rehash() expects argument #1 ($hash) to be of type string, array given
-password_needs_rehash() expects argument #3 ($options) to be of type array, string given
+password_needs_rehash(): Argument #1 ($hash) must be of type string, array given
+password_needs_rehash(): Argument #3 ($options) must be of type array, string given
OK!
}
?>
--EXPECT--
-get_html_translation_table() expects argument #1 ($table) to be of type int, float given
+get_html_translation_table(): Argument #1 ($table) must be of type int, float given
It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test
chunk_split():::"
-- Iteration 7 --
-chunk_split() expects argument #2 ($chunklen) to be of type int, float given
+chunk_split(): Argument #2 ($chunklen) must be of type int, float given
-- Iteration 8 --
Chunk length should be greater than zero
*** Testing join() : error conditions ***
-- Testing join() with less than expected no. of arguments --
-join() expects argument #1 ($pieces) to be of type array, string given
+join(): Argument #1 ($pieces) must be of type array, string given
Done
-- Iteration 9 --
string(19) "element10.5element2"
-- Iteration 10 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
-- Iteration 11 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
-- Iteration 12 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
-- Iteration 13 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
-- Iteration 14 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
-- Iteration 15 --
string(17) "element11element2"
-- Iteration 16 --
-- Iteration 23 --
string(16) "element1element2"
-- Iteration 24 --
-join() expects argument #1 ($glue) to be of type string|array, resource given
+join(): Argument #1 ($glue) must be of type string|array, resource given
-- Iteration 25 --
string(16) "element1element2"
-- Iteration 26 --
--- Testing join() by supplying different values for 'pieces' argument ---
-- Iteration 1 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
-- Iteration 2 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
-- Iteration 3 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
-- Iteration 4 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
-- Iteration 5 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
-- Iteration 6 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
-- Iteration 7 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
-- Iteration 8 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
-- Iteration 9 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
-- Iteration 10 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
-- Iteration 11 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
-- Iteration 12 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
-- Iteration 13 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
-- Iteration 14 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
-- Iteration 15 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
-- Iteration 16 --
-join() expects argument #2 ($pieces) to be of type array, object given
+join(): Argument #2 ($pieces) must be of type array, object given
-- Iteration 17 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
-- Iteration 18 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
-- Iteration 19 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
-- Iteration 20 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
-- Iteration 21 --
-join() expects argument #2 ($pieces) to be of type array, resource given
+join(): Argument #2 ($pieces) must be of type array, resource given
-- Iteration 22 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
-- Iteration 23 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
Done
Warning: Array to string conversion in %s on line %d
string(27) "ArrayTESTArrayTESTPHPTEST50"
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
Warning: Array to string conversion in %s on line %d
int(3)
-- Iteration 10 --
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
-- Iteration 11 --
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
-- Iteration 12 --
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
-- Iteration 13 --
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
-- Iteration 14 --
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
-printf() expects argument #1 ($format) to be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
-- Iteration 15 --
int(0)
-- Iteration 26 --
-printf() expects argument #1 ($format) to be of type string, resource given
-printf() expects argument #1 ($format) to be of type string, resource given
-printf() expects argument #1 ($format) to be of type string, resource given
+printf(): Argument #1 ($format) must be of type string, resource given
+printf(): Argument #1 ($format) must be of type string, resource given
+printf(): Argument #1 ($format) must be of type string, resource given
string(3) "0.5"
-- Iteration 10 --
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 11 --
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 12 --
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 13 --
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 14 --
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
-sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 15 --
string(0) ""
string(0) ""
-- Iteration 26 --
-sprintf() expects argument #1 ($format) to be of type string, resource given
-sprintf() expects argument #1 ($format) to be of type string, resource given
-sprintf() expects argument #1 ($format) to be of type string, resource given
+sprintf(): Argument #1 ($format) must be of type string, resource given
+sprintf(): Argument #1 ($format) must be of type string, resource given
+sprintf(): Argument #1 ($format) must be of type string, resource given
Done
?>
--EXPECTF--
*** Testing str_pad() function: with large value for for 'pad_length' argument ***
-str_pad() expects argument #2 ($pad_length) to be of type int, float given
+str_pad(): Argument #2 ($pad_length) must be of type int, float given
Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
int(1)
string(0) ""
int(0)
-str_replace() expects argument #3 ($subject) to be of type string|array, resource given
+str_replace(): Argument #3 ($subject) must be of type string|array, resource given
resource(%d) of type (stream)
int(1)
-- Testing Resources --
-str_replace() expects argument #3 ($subject) to be of type string|array, resource given
-str_replace() expects argument #3 ($subject) to be of type string|array, resource given
+str_replace(): Argument #3 ($subject) must be of type string|array, resource given
+str_replace(): Argument #3 ($subject) must be of type string|array, resource given
-- Testing a longer and heredoc string --
string(623) "FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
int(17)
-- Iteration 10 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 11 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 12 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 13 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 14 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 15 --
int(9)
int(0)
-- Iteration 24 --
-stripos() expects argument #2 ($needle) to be of type string, resource given
+stripos(): Argument #2 ($needle) must be of type string, resource given
-- Iteration 25 --
int(0)
int(0)
bool(false)
-- Iteration 10 --
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 11 --
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 12 --
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 13 --
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 14 --
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 15 --
int(0)
bool(false)
int(0)
ValueError: Offset not contained in string
-- Iteration 24 --
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, resource given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, resource given
-- Iteration 25 --
int(0)
ValueError: Offset not contained in string
-- Iteration 7 --
bool(false)
-- Iteration 8 --
-stristr() expects argument #2 ($needle) to be of type string, array given
+stristr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 9 --
-stristr() expects argument #2 ($needle) to be of type string, array given
+stristr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 10 --
-stristr() expects argument #2 ($needle) to be of type string, array given
+stristr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 11 --
bool(false)
-- Iteration 12 --
-- Iteration 17 --
bool(false)
-- Iteration 18 --
-stristr() expects argument #2 ($needle) to be of type string, resource given
+stristr(): Argument #2 ($needle) must be of type string, resource given
-- Iteration 19 --
string(11) "Hello World"
-- Iteration 20 --
-- Iteration 9 --
bool(false)
-- Iteration 10 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 11 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 12 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 13 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 14 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
-- Iteration 15 --
bool(false)
-- Iteration 16 --
-- Iteration 23 --
bool(false)
-- Iteration 24 --
-strrchr() expects argument #2 ($needle) to be of type string, resource given
+strrchr(): Argument #2 ($needle) must be of type string, resource given
-- Iteration 25 --
bool(false)
-- Iteration 26 --
-- Iteration 9 --
string(3) "0.5"
-- Iteration 10 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 11 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 12 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 13 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 14 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 15 --
string(1) "1"
-- Iteration 16 --
-- Iteration 23 --
bool(false)
-- Iteration 24 --
-strrchr() expects argument #1 ($haystack) to be of type string, resource given
+strrchr(): Argument #1 ($haystack) must be of type string, resource given
-- Iteration 25 --
bool(false)
-- Iteration 26 --
echo "Done\n";
?>
--EXPECT--
-strripos() expects argument #3 ($offset) to be of type int, float given
+strripos(): Argument #3 ($offset) must be of type int, float given
Offset not contained in string
Offset not contained in string
Offset not contained in string
echo "Done\n";
?>
--EXPECT--
-strrpos() expects argument #3 ($offset) to be of type int, float given
+strrpos(): Argument #3 ($offset) must be of type int, float given
Offset not contained in string
Offset not contained in string
Offset not contained in string
-- Iteration 9 --
int(28)
-- Iteration 10 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 11 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 12 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 13 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 14 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
-- Iteration 15 --
int(41)
-- Iteration 16 --
-- Iteration 23 --
int(87)
-- Iteration 24 --
-strrpos() expects argument #2 ($needle) to be of type string, resource given
+strrpos(): Argument #2 ($needle) must be of type string, resource given
-- Iteration 25 --
int(87)
-- Iteration 26 --
int(0)
bool(false)
-- Iteration 10 --
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 11 --
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 12 --
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 13 --
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 14 --
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
-- Iteration 15 --
int(0)
bool(false)
int(0)
ValueError: Offset not contained in string
-- Iteration 24 --
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, resource given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, resource given
-- Iteration 25 --
int(0)
ValueError: Offset not contained in string
-- Iteration 16 --
string(6) "012ttm"
-- Iteration 17 --
-strtr() expects argument #2 ($from) to be of type string|array, resource given
+strtr(): Argument #2 ($from) must be of type string|array, resource given
-- Iteration 18 --
string(6) "012atm"
-- Iteration 19 --
If two arguments are passed, the second argument must be an array
-- Iteration 17 --
-strtr() expects argument #2 ($from) to be of type string|array, resource given
+strtr(): Argument #2 ($from) must be of type string|array, resource given
-- Iteration 18 --
If two arguments are passed, the second argument must be an array
?>
--EXPECT--
-- Testing vfprintf() function with wrong variable types as argument --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
int(9)
string(9) "Foo fake"
?>
--EXPECT--
-- Testing vfprintf() function with other strangeties --
-vfprintf() expects argument #1 ($handle) to be of type resource, string given
+vfprintf(): Argument #1 ($handle) must be of type resource, string given
Error found: Argument number must be greater than zero.
-- Iteration 9 --
0.5
-- Iteration 10 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
-- Iteration 11 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
-- Iteration 12 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
-- Iteration 13 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
-- Iteration 14 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
-- Iteration 15 --
-- Iteration 25 --
-- Iteration 26 --
-vfprintf() expects argument #2 ($format) to be of type string, resource given
+vfprintf(): Argument #2 ($format) must be of type string, resource given
int(3)
-- Iteration 10 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 11 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 12 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 13 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 14 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 15 --
int(0)
-- Iteration 26 --
-vprintf() expects argument #1 ($format) to be of type string, resource given
+vprintf(): Argument #1 ($format) must be of type string, resource given
string(3) "0.5"
-- Iteration 10 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 11 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 12 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 13 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 14 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
-- Iteration 15 --
string(0) ""
string(0) ""
-- Iteration 26 --
-vsprintf() expects argument #1 ($format) to be of type string, resource given
+vsprintf(): Argument #1 ($format) must be of type string, resource given
Done
?>
--EXPECT--
test::func()
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot call abstract method test_base::func()
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot call abstract method test_base::func()
f(new stdClass);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: f() expects argument #1 ($x) to be of type UndefClass, stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: f(): Argument #1 ($x) must be of type UndefClass, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): f(Object(stdClass))
#1 {main}
?>
--EXPECT--
In autoload: string(6) "UndefC"
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'UndefC' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'UndefC' not found
?>
--EXPECT--
Called function foo:bar(1)
-call_user_func_array() expects argument #1 ($function) to be a valid callback, cannot access private method foo::bar()
+call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method foo::bar()
Call to private method foo::bar() from context ''
--EXPECT--
Object with no __toString():
Try 1:
-printf() expects argument #1 ($format) to be of type string, object given
+printf(): Argument #1 ($format) must be of type string, object given
Try 2:
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: FooBar::a() expects argument #1 ($foo) to be of type Foo, Blort given, called in %s on line 27 and defined in %s:12
+Fatal error: Uncaught TypeError: FooBar::a(): Argument #1 ($foo) must be of type Foo, Blort given, called in %s on line 27 and defined in %s:12
Stack trace:
#0 %s(%d): FooBar->a(Object(Blort))
#1 {main}
$o->a($o);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Foo::a() expects argument #1 ($foo) to be of type NonExisting, Foo given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: Foo::a(): Argument #1 ($foo) must be of type NonExisting, Foo given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): Foo->a(Object(Foo))
#1 {main}
int(25)
}
-Fatal error: Uncaught TypeError: Test::f1() expects argument #1 ($ar) to be of type array, int given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: Test::f1(): Argument #1 ($ar) must be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): Test::f1(1)
#1 {main}
?>
--EXPECTF--
---> Type hints with callback function:
-0: f1() expects argument #1 ($a) to be of type A, int given%s(%d)
+0: f1(): Argument #1 ($a) must be of type A, int given%s(%d)
in f1;
-0: f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
+0: f2(): Argument #1 ($a) must be of type ?A, int given%s(%d)
in f2;
in f2;
---> Type hints with callback static method:
-0: C::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
+0: C::f1(): Argument #1 ($a) must be of type A, int given%s(%d)
in C::f1 (static);
-0: C::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
+0: C::f2(): Argument #1 ($a) must be of type ?A, int given%s(%d)
in C::f2 (static);
in C::f2 (static);
---> Type hints with callback instance method:
-0: D::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
+0: D::f1(): Argument #1 ($a) must be of type A, int given%s(%d)
in C::f1 (instance);
-0: D::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
+0: D::f2(): Argument #1 ($a) must be of type ?A, int given%s(%d)
in C::f2 (instance);
in C::f2 (instance);
object(foo)#%d (0) {
}
-Fatal error: Uncaught TypeError: typehint() expects argument #1 ($a) to be of type foo, int given in %s:%d
+Fatal error: Uncaught TypeError: typehint(): Argument #1 ($a) must be of type foo, int given in %s:%d
Stack trace:
#0 [internal function]: typehint(1, 1)
#1 %s(%d): array_walk(Array, 'typehint')
echo "ALIVE!\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: blah() expects argument #1 ($a) to be of type Foo, stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5
+Fatal error: Uncaught TypeError: blah(): Argument #1 ($a) must be of type Foo, stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5
Stack trace:
#0 %s(%d): blah(Object(stdClass))
#1 {main}
echo "ALIVE!\n";
?>
--EXPECTF--
-blah() expects argument #1 ($a) to be of type Foo, stdClass given, called in %scatchable_error_002.php on line %d
+blah(): Argument #1 ($a) must be of type Foo, stdClass given, called in %scatchable_error_002.php on line %d
ALIVE!
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: type_hint_foo() expects argument #1 ($a) to be of type Foo, Bar given, called in %s on line 16 and defined in %s:9
+Fatal error: Uncaught TypeError: type_hint_foo(): Argument #1 ($a) must be of type Foo, Bar given, called in %s on line 16 and defined in %s:9
Stack trace:
#0 %s(%d): type_hint_foo(Object(Bar))
#1 {main}
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :
- current value : bool(false)
Not a stream:
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
- current value :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
- current value :