mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
- Fixed tests
This commit is contained in:
parent
cb78e70854
commit
fa71adbbb1
@ -22,7 +22,7 @@ var_dump(each($a));
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Wrong parameter count for each() in %s on line %d
|
||||
Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: Variable passed to each() is not an array or object in %s on line %d
|
||||
|
@ -23,18 +23,18 @@ var_dump(constant("test const"));
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Wrong parameter count for define() in %s on line %d
|
||||
Warning: define() expects at least 2 parameters, 0 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: Wrong parameter count for define() in %s on line %d
|
||||
Warning: define() expects at least 2 parameters, 1 given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
|
||||
Notice: Constant true already defined in %s on line %d
|
||||
bool(false)
|
||||
Warning: define() expects parameter 3 to be boolean, array given in %s on line %d
|
||||
NULL
|
||||
|
||||
Notice: Array to string conversion in %s on line %d
|
||||
bool(true)
|
||||
Warning: define() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -40,7 +40,9 @@ unicode(3) "foo"
|
||||
|
||||
Warning: get_class() called without object from outside a class in %s on line %d
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: get_class() expects parameter 1 to be object, Unicode string given in %s on line %d
|
||||
NULL
|
||||
unicode(3) "foo"
|
||||
unicode(4) "foo2"
|
||||
Done
|
||||
|
@ -53,10 +53,10 @@ $bar->test();
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Wrong parameter count for property_exists() in %s on line %d
|
||||
Warning: property_exists() expects exactly 2 parameters, 0 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: Wrong parameter count for property_exists() in %s on line %d
|
||||
Warning: property_exists() expects exactly 2 parameters, 1 given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(false)
|
||||
|
@ -45,17 +45,17 @@ var_dump(count(get_extension_funcs("zend")));
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Wrong parameter count for get_resource_type() in %s on line %d
|
||||
Warning: get_resource_type() expects exactly 1 parameter, 0 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: Supplied argument is not a valid resource handle in %s on line %d
|
||||
bool(false)
|
||||
Warning: get_resource_type() expects parameter 1 to be resource, Unicode string given in %s on line %d
|
||||
NULL
|
||||
unicode(6) "stream"
|
||||
unicode(7) "Unknown"
|
||||
unicode(5) "array"
|
||||
int(%d)
|
||||
unicode(5) "array"
|
||||
int(%d)
|
||||
int(0)
|
||||
|
||||
Warning: get_loaded_extensions() expects at most 1 parameter, 2 given in %s on line %d
|
||||
NULL
|
||||
|
@ -20,11 +20,14 @@ foo(1,2);
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(false)
|
||||
Warning: func_get_arg() expects exactly 1 parameter, 3 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: func_get_arg(): Called from the global scope - no function context in %s on line %d
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: func_get_arg() expects exactly 1 parameter, 0 given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
|
||||
bool(false)
|
||||
|
@ -31,7 +31,7 @@ $test->bar();
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(Exception)#2 (6) {
|
||||
object(Exception)#2 (%d) {
|
||||
[u"message":protected]=>
|
||||
unicode(3) "foo"
|
||||
[u"string":u"Exception":private]=>
|
||||
@ -61,6 +61,8 @@ object(Exception)#2 (6) {
|
||||
}
|
||||
}
|
||||
}
|
||||
[u"previous":u"Exception":private]=>
|
||||
NULL
|
||||
}
|
||||
'test' => '0'
|
||||
'test_2' => '1'
|
||||
|
@ -34,7 +34,7 @@ var_dump(error_reporting());
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(16383)
|
||||
int(16383)
|
||||
int(14335)
|
||||
int(32767)
|
||||
int(32767)
|
||||
int(30719)
|
||||
Done
|
||||
|
Loading…
Reference in New Issue
Block a user