mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Fix more tests (some of these were not broken by the recent changes)
This commit is contained in:
parent
9411b268b2
commit
f48bd05482
7 changed files with 13 additions and 8 deletions
|
@ -10,4 +10,4 @@ final final class test {
|
||||||
echo "Done\n";
|
echo "Done\n";
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Parse error: syntax error, unexpected T_FINAL, expecting T_CLASS in %s on line %d
|
Parse error: parse error, expecting `T_CLASS' in %s on line %d
|
||||||
|
|
|
@ -10,5 +10,5 @@ array_walk($array, array($nonesuchvar,'show'));
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Notice: Undefined variable: nonesuchvar in %s on line %d
|
Notice: Undefined variable: nonesuchvar in %s on line %d
|
||||||
|
|
||||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
Warning: array_walk() expects parameter 2 to be a valid callback, second array member is not a valid method in %s on line %d
|
||||||
===DONE===
|
===DONE===
|
||||||
|
|
|
@ -100,7 +100,9 @@ var_dump($x->doSomethingStatic(1));
|
||||||
===A===
|
===A===
|
||||||
TestB::doSomething(1)
|
TestB::doSomething(1)
|
||||||
|
|
||||||
Warning: call_user_func_array() expects parameter 1 to be valid callback, array given in %s on line %d
|
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method TestA::doSomething() cannot be called statically, assuming $this from compatible context TestB in %s on line %d
|
||||||
|
|
||||||
|
Warning: call_user_func_array() expects parameter 2 to be a valid callback, array must have exactly two members in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
===B===
|
===B===
|
||||||
|
@ -111,7 +113,9 @@ int(1)
|
||||||
===C===
|
===C===
|
||||||
TestB::doSomethingParent(1)
|
TestB::doSomethingParent(1)
|
||||||
|
|
||||||
Warning: call_user_func_array() expects parameter 1 to be valid callback, array given in %s on line %d
|
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method TestA::doSomethingParent() cannot be called statically, assuming $this from compatible context TestB in %s on line %d
|
||||||
|
|
||||||
|
Warning: call_user_func_array() expects parameter 2 to be a valid callback, array must have exactly two members in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
===D===
|
===D===
|
||||||
|
|
|
@ -9,4 +9,4 @@ class Foo extends static {
|
||||||
?>
|
?>
|
||||||
==DONE==
|
==DONE==
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_PAAMAYIM_NEKUDOTAYIM or T_NAMESPACE in %s on line %d
|
Parse error: parse error, expecting `T_STRING' or `T_PAAMAYIM_NEKUDOTAYIM' or `T_NAMESPACE' in %s on line %d
|
||||||
|
|
|
@ -9,4 +9,4 @@ class Foo implements static {
|
||||||
?>
|
?>
|
||||||
==DONE==
|
==DONE==
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_PAAMAYIM_NEKUDOTAYIM or T_NAMESPACE in %s on line %d
|
Parse error: parse error, expecting `T_STRING' or `T_PAAMAYIM_NEKUDOTAYIM' or `T_NAMESPACE' in %s on line %d
|
||||||
|
|
|
@ -5,4 +5,5 @@ ZE2 Late Static Binding class name "static"
|
||||||
class static {
|
class static {
|
||||||
}
|
}
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING in %slsb_008.php on line 2
|
Parse error: parse error, expecting `T_STRING' in %s on line %d
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,4 @@ ZE2 Late Static Binding interface name "static"
|
||||||
interface static {
|
interface static {
|
||||||
}
|
}
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING in %slsb_009.php on line 2
|
Parse error: parse error, expecting `T_STRING' in %s on line %d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue