Review the usage of apostrophes in error messages

Closes GH-5590
This commit is contained in:
Máté Kocsis 2020-05-26 14:10:57 +02:00
parent 2ad75ba784
commit d30cd7d7e7
No known key found for this signature in database
GPG key ID: FD055E41728BF310
421 changed files with 907 additions and 897 deletions

View file

@ -18,7 +18,7 @@ var_dump(constant("TEST_CONST2"));
echo "Done\n";
?>
--EXPECT--
Undefined constant ''
Undefined constant ""
int(1)
string(4) "test"
Done

View file

@ -41,17 +41,17 @@ NULL
Warning: Undefined variable $b in %s on line %d
int(1)
Warning: Attempt to read property '1' on int in %s on line %d
Warning: Attempt to read property "1" on int in %s on line %d
NULL
Warning: Attempt to read property '1' on int in %s on line %d
Warning: Attempt to read property "1" on int in %s on line %d
NULL
Warning: Undefined variable $c in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d
Warning: Attempt to read property '1' on int in %s on line %d
Warning: Attempt to read property "1" on int in %s on line %d
Warning: Attempt to read property '' on null in %s on line %d
Warning: Attempt to read property "" on null in %s on line %d
NULL

View file

@ -22,7 +22,7 @@ print "ok\n";
?>
--EXPECTF--
Warning: Attempt to read property 'a' on null in %s on line %d
Warning: Attempt to read property "a" on null in %s on line %d
ok
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
ok

View file

@ -18,7 +18,7 @@ bool(true)
bool(true)
bool(true)
Notice: Undefined offset: 2 in %s on line %d
Notice: Undefined array key 2 in %s on line %d
Fatal error: Uncaught Error: Value of type null is not callable in %s:%d
Stack trace:

View file

@ -61,6 +61,6 @@ Warning: Trying to access array offset on value of type null in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d
Warning: Attempt to read property 'foo' on null in %s on line %d
Attempt to assign property 'foo' on null
Attempt to assign property 'bar' on null
Warning: Attempt to read property "foo" on null in %s on line %d
Attempt to assign property "foo" on null
Attempt to assign property "bar" on null

View file

@ -16,7 +16,7 @@ var_dump($x::$x);
--EXPECTF--
int(1)
Fatal error: Uncaught Error: Access to undeclared static property: Closure::$x in %s:%d
Fatal error: Uncaught Error: Access to undeclared static property Closure::$x in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -18,4 +18,4 @@ B2::test();
?>
--EXPECTF--
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Fatal error: Call to protected method B1::f() from scope B2 in %s on line %d

View file

@ -23,4 +23,4 @@ B2::test();
--EXPECTF--
bool(false)
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Fatal error: Call to protected method B1::f() from scope B2 in %s on line %d

View file

@ -28,7 +28,7 @@ new c;
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to private method d::test2() from context 'a' in %s:%d
Fatal error: Uncaught Error: Call to private method d::test2() from scope a in %s:%d
Stack trace:
#0 %s(%d): a->test()
#1 %s(%d): c->__construct()

View file

@ -11,11 +11,11 @@ Ensure "undefined offset" notice formats message correctly when undefined key is
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined offset: -1 in %s on line 3
Notice: Undefined array key -1 in %s on line %d
Notice: Undefined offset: -1 in %s on line 4
Notice: Undefined array key -1 in %s on line %d
Notice: Undefined offset: -1 in %s on line 5
Notice: Undefined array key -1 in %s on line 5
Notice: Undefined offset: -1 in %s on line 6
Notice: Undefined array key -1 in %s on line 6
Done

View file

@ -43,4 +43,4 @@ array(3) {
[2]=>
int(3)
}
Exception: Cannot declare self-referencing constant 'self::B'
Exception: Cannot declare self-referencing constant self::B

View file

@ -79,5 +79,5 @@ Cannot add element to the array as the next element is already occupied
Illegal offset type
Illegal offset type
Cannot use a scalar value as an array
Attempt to assign property 'foo' on bool
Attempt to assign property 'foo' on bool
Attempt to assign property "foo" on bool
Attempt to assign property "foo" on bool

View file

@ -104,6 +104,5 @@ array(1) {
}
int(1)
string(30) "Class 'MissingClass' not found"
string(30) "Class 'MissingClass' not found"
string(30) "Class "MissingClass" not found"
string(30) "Class "MissingClass" not found"

View file

@ -108,13 +108,13 @@ string(7) "ERROR 2"
string(74) "A1::__construct(): Argument #1 ($name) must be of type string, array given"
string(7) "ERROR 3"
string(30) "Attribute class 'A2' not found"
string(30) "Attribute class "A2" not found"
string(7) "ERROR 4"
string(50) "Attribute constructor of class 'A3' must be public"
string(48) "Attribute constructor of class A3 must be public"
string(7) "ERROR 5"
string(71) "Attribute class 'A4' does not have a constructor, cannot pass arguments"
string(69) "Attribute class A4 does not have a constructor, cannot pass arguments"
string(7) "ERROR 6"
string(55) "Attempting to use non-attribute class 'A5' as attribute"
string(55) "Attempting to use non-attribute class "A5" as attribute"

View file

@ -109,4 +109,4 @@ Array
string(7) "ERROR 1"
string(103) "ReflectionFunctionAbstract::getAttributes(): Argument #2 ($flags) must be a valid attribute filter flag"
string(7) "ERROR 2"
string(34) "Class 'SomeMissingClass' not found"
string(34) "Class "SomeMissingClass" not found"

View file

@ -34,7 +34,7 @@ trait T1
class C2
{
use T1;
private const FOO = 'bar';
}
@ -109,7 +109,7 @@ Array
[1] => bar
)
string(7) "ERROR 1"
string(36) "Undefined class constant 'self::FOO'"
string(28) "Undefined constant self::FOO"
bool(true)
string(3) "bar"

View file

@ -8,4 +8,4 @@ class A1 { }
?>
--EXPECTF--
Fatal error: Class 'Foo' not found in %s
Fatal error: Class "Foo" not found in %s on line %d

View file

@ -15,7 +15,7 @@ object(stdClass)#1 (1) {
string(10) "string('')"
}
Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -15,7 +15,7 @@ bool(false)
bool(true)
bool(true)
Warning: Uninitialized string offset: -10 in %s on line %d
Warning: Uninitialized string offset -10 in %s on line %d
string(0) ""
string(1) "u"
string(1) "u"

View file

@ -6,7 +6,7 @@ class test implements a {
}
?>
--EXPECTF--
Fatal error: Uncaught Error: Interface 'a' not found in %s:%d
Fatal error: Uncaught Error: Interface "a" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -10,7 +10,7 @@ var_dump($a instanceOf A);
echo "ok\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Interface 'RecurisiveFooFar' not found in %s:%d
Fatal error: Uncaught Error: Interface "RecurisiveFooFar" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -44,12 +44,12 @@ ok
ok
ok
Warning: Attempt to read property 'wrong' on string in %s on line %d
Warning: Attempt to read property "wrong" on string in %s on line %d
ok
Warning: Illegal string offset 'wrong' in %s on line %d
Warning: Illegal string offset "wrong" in %s on line %d
ok
ok
Warning: Illegal string offset 'wrong' in %s on line %d
Warning: Illegal string offset "wrong" in %s on line %d
ok

View file

@ -43,7 +43,7 @@ Caught: Test1::__construct
Caught: {closure}
{closure}(Test3,3)
Fatal error: Uncaught Error: Class 'Test3' not found in %sbug31102.php(%d) : eval()'d code:1
Fatal error: Uncaught Error: Class "Test3" not found in %s:%d
Stack trace:
#0 %s(%d): eval()
#1 {main}

View file

@ -132,7 +132,7 @@ B2::doTest
C2::test
B4::doTest
Fatal error: Uncaught Error: Call to protected C4::__construct() from context 'B4' in %sbug37632.php:%d
Fatal error: Uncaught Error: Call to protected C4::__construct() from scope B4 in %s:%d
Stack trace:
#0 %s(%d): B4::doTest()
#1 {main}

View file

@ -29,7 +29,7 @@ var_dump($obj);
--EXPECTF--
string(3) "bar"
Notice: Undefined offset: 2 in %sbug37667.php on line 16
Notice: Undefined array key 2 in %s on line %d
NULL
object(Test)#%d (1) {
["property":protected]=>

View file

@ -23,7 +23,7 @@ string(3) "Foo"
Warning: Constants may only evaluate to scalar values, arrays or resources in %sbug37811.php on line %d
Fatal error: Uncaught Error: Undefined constant 'Baz' in %s:%d
Fatal error: Uncaught Error: Undefined constant "Baz" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -64,39 +64,39 @@ print "\nDone\n";
--EXPECTF--
Warning: String offset cast occurred in %s on line %d
Warning: Uninitialized string offset: %s in %s on line %d
Warning: Uninitialized string offset %d in %s on line %d
Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d
Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d
Warning: String offset cast occurred in %s on line %d
Warning: Uninitialized string offset: %i in %s on line %d
Warning: Uninitialized string offset %d in %s on line %d
Warning: String offset cast occurred in %s on line %d
Warning: Uninitialized string offset: %i in %s on line %d
Warning: Uninitialized string offset %d in %s on line %d
Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d
Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d
Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d
Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d
Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d
Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d
Warning: String offset cast occurred in %s on line %d
Warning: Uninitialized string offset: 12 in %s on line %d
Warning: Uninitialized string offset 12 in %s on line %d
Warning: String offset cast occurred in %s on line %d
Warning: Uninitialized string offset: 12 in %s on line %d
Warning: Uninitialized string offset 12 in %s on line %d
Warning: String offset cast occurred in %s on line %d

View file

@ -7,6 +7,6 @@ Bug #39304 (Segmentation fault with list unpacking of string offset)
var_dump($a,$b);
?>
--EXPECTF--
Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d
NULL
NULL

View file

@ -8,7 +8,7 @@ class Foo {
echo Foo::A."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined class constant 'self::B' in %sbug41633_2.php:5
Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
Stack trace:
#0 {main}
thrown in %sbug41633_2.php on line 5

View file

@ -9,7 +9,7 @@ class Foo {
echo Foo::A;
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot declare self-referencing constant 'Foo::B' in %sbug41633_3.php:%d
Fatal error: Uncaught Error: Cannot declare self-referencing constant Foo::B in %s:%d
Stack trace:
#0 {main}
thrown in %sbug41633_3.php on line %d

View file

@ -297,7 +297,7 @@ Array
[1] => 1
)
Fatal error: Uncaught Error: Undefined constant 'foo\foo\unknown' in %sbug42819.php:%d
Fatal error: Uncaught Error: Undefined constant "foo\foo\unknown" in %s:%d
Stack trace:
#0 %s(%d): foo\oops()
#1 {main}

View file

@ -39,7 +39,7 @@ test3
test4
test5
Fatal error: Uncaught Error: Call to undefined method C::test6() in %sbug42937.php:21
Fatal error: Uncaught Error: Call to undefined method C::test6() in %s:%d
Stack trace:
#0 %s(%d): B->test()
#1 {main}

View file

@ -39,7 +39,7 @@ try {
?>
--EXPECT--
Undefined constant 'Foo\bar'
Undefined constant 'Foo\bar'
Undefined constant 'Foo\bar'
Undefined constant 'Foo\bar'
Undefined constant "Foo\bar"
Undefined constant "Foo\bar"
Undefined constant "Foo\bar"
Undefined constant "Foo\bar"

View file

@ -5,7 +5,7 @@ Bug #43344.10 (Wrong error message for undefined namespace constant)
echo namespace\bar."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_10.php:%d
Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
Stack trace:
#0 {main}
thrown in %sbug43344_10.php on line %d

View file

@ -8,7 +8,7 @@ function f($a=namespace\bar) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_11.php:%d
Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
Stack trace:
#0 %s(%d): f()
#1 {main}

View file

@ -8,7 +8,7 @@ function f($a=array(namespace\bar)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_12.php:%d
Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
Stack trace:
#0 %s(%d): f()
#1 {main}

View file

@ -9,7 +9,7 @@ function f($a=array(namespace\bar=>0)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_13.php:%d
Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
Stack trace:
#0 %s(%d): f()
#1 {main}

View file

@ -6,7 +6,7 @@ namespace Foo;
echo Foo::bar."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %sbug43344_2.php:%d
Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
Stack trace:
#0 {main}
thrown in %sbug43344_2.php on line %d

View file

@ -9,7 +9,7 @@ function f($a=Foo::bar) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}

View file

@ -9,7 +9,7 @@ function f($a=array(Foo::bar)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}

View file

@ -10,7 +10,7 @@ function f($a=array(Foo::bar=>0)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
Fatal error: Uncaught Error: Class "Foo\Foo" not found in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}

View file

@ -6,7 +6,7 @@ namespace Foo;
echo namespace\bar."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_6.php:%d
Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
Stack trace:
#0 {main}
thrown in %sbug43344_6.php on line %d

View file

@ -9,7 +9,7 @@ function f($a=namespace\bar) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_7.php:%d
Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}

View file

@ -9,7 +9,7 @@ function f($a=array(namespace\bar)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_8.php:%d
Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}

View file

@ -10,7 +10,7 @@ function f($a=array(namespace\bar=>0)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'Foo\bar' in %sbug43344_9.php:%d
Fatal error: Uncaught Error: Undefined constant "Foo\bar" in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}

View file

@ -22,7 +22,7 @@ class Y extends X
$y = Y::cheat(5);
echo $y->x, PHP_EOL;
--EXPECTF--
Fatal error: Uncaught Error: Call to private X::__construct() from context 'Y' in %sbug44141.php:15
Fatal error: Uncaught Error: Call to private X::__construct() from scope Y in %s:%d
Stack trace:
#0 %s(%d): Y::cheat(5)
#1 {main}

View file

@ -48,22 +48,22 @@ var_dump($a);
?>
--EXPECTF--
--> read access:
Warning: Attempt to read property 'p' on bool in %s on line %d
Warning: Attempt to read property "p" on bool in %s on line %d
--> direct assignment:
Attempt to assign property 'p' on bool
Attempt to assign property "p" on bool
--> increment:
Attempt to increment/decrement property 'p' on bool
Attempt to increment/decrement property "p" on bool
--> reference assignment:
Attempt to modify property 'p' on bool
Attempt to modify property "p" on bool
--> reference assignment:
Attempt to modify property 'p' on bool
Attempt to modify property "p" on bool
--> indexed assignment:
Attempt to modify property 'p' on bool
Attempt to modify property "p" on bool
--> Confirm assignments have had no impact:
bool(true)

View file

@ -54,4 +54,4 @@ string(1) "y"
ok
__callstatic:
string(3) "www"
call_user_func(): Argument #1 ($function) must 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

View file

@ -52,5 +52,5 @@ string(1) "y"
__call:
string(1) "y"
ok
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
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

View file

@ -32,7 +32,7 @@ value3
value3
value3
Fatal error: Uncaught Error: Undefined constant 'NS1\ns2\coNSt1' in %sbug46304.php:%d
Fatal error: Uncaught Error: Undefined constant "NS1\ns2\coNSt1" in %s:%d
Stack trace:
#0 {main}
thrown in %sbug46304.php on line %d

View file

@ -7,4 +7,4 @@ $a->{"a"."b"};
--EXPECTF--
Warning: Undefined variable $a in %s on line %d
Warning: Attempt to read property 'ab' on null in %s on line %d
Warning: Attempt to read property "ab" on null in %s on line %d

View file

@ -14,7 +14,7 @@ $foo = new Foo();
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'FOO' in %s:%d
Fatal error: Uncaught Error: Undefined constant "FOO" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -15,7 +15,7 @@ new X();
?>
--EXPECTF--
BB
Fatal error: Uncaught Error: Class 'X' not found in %sbug47699.php:%d
Fatal error: Uncaught Error: Class "X" not found in %s:%d
Stack trace:
#0 {main}
thrown in %sbug47699.php on line %d

View file

@ -57,4 +57,4 @@ $c->func('This should work!');
string(27) "B::func2: This should work!"
string(27) "B::func3: This should work!"
call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method B::func22()
call_user_func_array(): Argument #1 ($function) must 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"

View file

@ -47,4 +47,4 @@ $c->func('This should work!');
--EXPECT--
string(27) "B::func2: This should work!"
string(27) "B::func3: This should work!"
call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'C' does not have a method 'inexistent'
call_user_func_array(): Argument #1 ($function) must be a valid callback, class C does not have a method "inexistent"

View file

@ -14,4 +14,4 @@ try {
?>
--EXPECT--
Undefined class constant 'A::B1'
Undefined constant A::B1

View file

@ -48,22 +48,22 @@ var_dump(foo());
?>
--EXPECTF--
Warning: Undefined variable $x in %s on line %d
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
Warning: Undefined variable $x in %s on line %d
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $x in %s on line %d
Attempt to increment/decrement property 'a' on null
Attempt to increment/decrement property "a" on null
Warning: Undefined variable $x in %s on line %d
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $x in %s on line %d
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
Warning: Undefined variable $x in %s on line %d
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $x in %s on line %d
@ -71,23 +71,23 @@ Warning: Undefined variable $x in %s on line %d
Warning: Undefined variable $x in %s on line %d
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Warning: Undefined variable $x in %s on line %d
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Warning: Undefined variable $x in %s on line %d
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Warning: Undefined variable $x in %s on line %d
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Warning: Undefined variable $x in %s on line %d
NULL

View file

@ -16,7 +16,7 @@ unset($a->$prop);
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
Stack trace:
#0 %s(%d): A->__unset('\x00')
#1 {main}

View file

@ -16,7 +16,7 @@ $a->$prop = 2;
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
Stack trace:
#0 %s(%d): A->__set('\x00', 2)
#1 {main}

View file

@ -16,7 +16,7 @@ var_dump($a->$prop);
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
Stack trace:
#0 %s(%d): A->__get('\x00')
#1 {main}

View file

@ -75,7 +75,7 @@ array(0) {
}
array(0) {
}
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
NULL
object(stdClass)#3 (1) {
["a"]=>

View file

@ -50,11 +50,11 @@ string(1) "a"
string(1) "a"
string(6) " a"
Warning: Illegal string offset: -1 in %s on line %d
Warning: Illegal string offset -1 in %s on line %d
NULL
string(0) ""
Warning: Illegal string offset 'foo' in %s on line %d
Warning: Illegal string offset "foo" in %s on line %d
string(1) "a"
string(1) "a"
Error: [] operator not supported for strings

View file

@ -24,7 +24,7 @@ Warning: The magic method InvokeAble::__invoke() cannot be static in %sbug61025.
Warning: The magic method Bar::__invoke() must have public visibility in %sbug61025.php on line %d
Bar
Fatal error: Uncaught Error: Call to private method Bar::__invoke() from context '' in %sbug61025.php:%d
Fatal error: Uncaught Error: Call to private method Bar::__invoke() from global scope in %s:%d
Stack trace:
#0 {main}
thrown in %sbug61025.php on line %d

View file

@ -10,5 +10,5 @@ $y = '1';
x($y);
print_r($y);
--EXPECT--
string(25) "Illegal string offset 'a'"
string(25) "Illegal string offset "a""
1

View file

@ -62,7 +62,7 @@ Stack trace:
#0 %sbug65784.php(52): foo3()
#1 {main}
Next Error: Class 'NotExists' not found in %sbug65784.php:46
Next Error: Class "NotExists" not found in %s:%d
Stack trace:
#0 %sbug65784.php(52): foo3()
#1 {main}

View file

@ -17,7 +17,7 @@ $obj = new B();
$obj->go();
?>
--EXPECTF--
Fatal error: Uncaught Error: Access to undeclared static property: A::$this in %s:%d
Fatal error: Uncaught Error: Access to undeclared static property A::$this in %s:%d
Stack trace:
#0 %s(%d): B->go()
#1 {main}

View file

@ -54,4 +54,4 @@ Static method called!
Static method called with args: arg1, arg2, arg3
Static method called with args: arg1, arg2, arg3
Call to undefined method TestClass::undefinedMethod()
Class 'UndefinedClass' not found
Class "UndefinedClass" not found

View file

@ -5,7 +5,7 @@ Bug #69755: segfault in ZEND_CONCAT_SPEC_TMPVAR_CONST_HANDLER
c . 10;
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'c' in %s:%d
Fatal error: Uncaught Error: Undefined constant "c" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -3,7 +3,7 @@ Bug #69788: Malformed script causes Uncaught Error in php-cgi, valgrind SIGILL
--FILE--
<?php [t.[]]; ?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 't' in %s:%d
Fatal error: Uncaught Error: Undefined constant "t" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -24,7 +24,7 @@ __halt_compiler();
%d
%d
Fatal error: Uncaught Error: Undefined constant 'Foo\__COMPILER_HALT_OFFSET__' in %s:%d
Fatal error: Uncaught Error: Undefined constant "Foo\__COMPILER_HALT_OFFSET__" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -20,6 +20,6 @@ try {
}
?>
--EXPECT--
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
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

View file

@ -13,4 +13,4 @@ try {
}
?>
--EXPECT--
array_map(): Argument #1 ($callback) must 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

View file

@ -14,4 +14,4 @@ $st = $db->query('SELECT 1');
$re = $st->fetchObject('%Z');
?>
--EXPECTREGEX--
Fatal error: Class '%Z' not found in .+bug70914.php on line \d+
Fatal error: Class "%Z" not found in .+bug70914.php on line \d+

View file

@ -39,9 +39,9 @@ try {
}
?>
--EXPECT--
string(52) "Cannot access static:: when no class scope is active"
string(52) "Cannot access parent:: when no class scope is active"
string(50) "Cannot access self:: when no class scope is active"
string(52) "Cannot access static:: when no class scope is active"
string(52) "Cannot access static:: when no class scope is active"
string(52) "Cannot access static:: when no class scope is active"
string(52) "Cannot access "static" when no class scope is active"
string(52) "Cannot access "parent" when no class scope is active"
string(50) "Cannot access "self" when no class scope is active"
string(52) "Cannot access "static" when no class scope is active"
string(52) "Cannot access "static" when no class scope is active"
string(52) "Cannot access "static" when no class scope is active"

View file

@ -74,7 +74,7 @@ $OuterMatcher->stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback([$foo
$a = $b = $c = 0;
$foo->bar($a, $b, $c);
--EXPECTF--
Fatal error: Uncaught Error: Class 'DoesNotExists' not found in %sbug72101.php:61
Fatal error: Uncaught Error: Class "DoesNotExists" not found in %s:%d
Stack trace:
#0 %sbug72101.php(8): {closure}(2, 'MethodCallbackB...', '%s', 8)
#1 %sbug72101.php(27): PHPUnit_Framework_MockObject_Stub_ReturnCallback->invoke(Object(PHPUnit_Framework_MockObject_Invocation_Static))

View file

@ -12,9 +12,9 @@ $a[0] = "t";
var_dump($array[$a]);
?>
--EXPECTF--
Notice: Undefined index: lest in %sbug72943.php on line %d
Notice: Undefined array key "lest" in %s on line %d
NULL
Notice: Undefined index: fest in %sbug72943.php on line %d
Notice: Undefined array key "fest" in %s on line %d
NULL
int(1)

View file

@ -12,7 +12,7 @@ unset($value);
echo 'done';
?>
--EXPECTF--
Warning: Illegal string offset 'bbb' in %sbug73792.php on line 4
Warning: Illegal string offset "bbb" in %s on line %d
Fatal error: Uncaught Error: Cannot iterate on string offsets by reference in %sbug73792.php:4
Stack trace:

View file

@ -5,7 +5,7 @@ Bug #74546 (SIGILL in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER())
"000000"[0]::d;
?>
--EXPECTF--
Fatal error: Uncaught Error: Class '0' not found in %sbug74546.php:%d
Fatal error: Uncaught Error: Class "0" not found in %s:%d
Stack trace:
#0 {main}
thrown in %sbug74546.php on line %d

View file

@ -19,7 +19,7 @@ try {
var_dump((new C)->options);
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined class constant 'I::FOO' in %sbug74657.php:%d
Fatal error: Uncaught Error: Undefined constant I::FOO in %s:%d
Stack trace:
#0 {main}
thrown in %sbug74657.php on line %d

View file

@ -24,10 +24,10 @@ bool(true)
string(2) "42"
bool(true)
Notice: Undefined index: 010 in %s on line %d
Notice: Undefined array key "010" in %s on line %d
NULL
bool(false)
Notice: Undefined index: 010 in %s on line %d
Notice: Undefined array key "010" in %s on line %d
NULL
bool(false)

View file

@ -7,7 +7,7 @@ $d->d = &$d + $d->d/=0;
var_dump($d);
?>
--EXPECTF--
Fatal error: Uncaught Error: Attempt to modify property 'd' on null in %s:%d
Fatal error: Uncaught Error: Attempt to modify property "d" on null in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -45,23 +45,23 @@ unset($null);
?>
--EXPECTF--
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
Warning: Undefined variable $null in %s on line %d
NULL
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $null in %s on line %d
NULL
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $null in %s on line %d
NULL
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $null in %s on line %d
NULL
Attempt to modify property 'a' on null
Attempt to modify property "a" on null
Warning: Undefined variable $null in %s on line %d
NULL

View file

@ -10,7 +10,7 @@ $x = "foo";
$y = &$x["bar"];
?>
--EXPECTF--
Fatal error: Uncaught Exception: Illegal string offset 'bar' in %sbug76534.php:%d
Fatal error: Uncaught Exception: Illegal string offset "bar" in %s:%d
Stack trace:
#0 %sbug76534.php(%d): {closure}(2, 'Illegal string ...', '%s', %d)
#1 {main}

View file

@ -21,18 +21,18 @@ $x->x = 1;
--EXPECTF--
Warning: Undefined variable $undefined in %s on line %d
Warning: Attempt to read property '1' on null in %s on line %d
Warning: Attempt to read property "1" on null in %s on line %d
Warning: Division by zero in %s on line %d
Warning: Undefined variable $undefined in %s on line %d
Warning: Attempt to read property 'NAN' on null in %s on line %d
Warning: Attempt to read property "NAN" on null in %s on line %d
Warning: Division by zero in %s on line %d
Warning: Undefined variable $undefined in %s on line %d
Warning: Attempt to read property 'NAN' on null in %s on line %d
Warning: Attempt to read property "NAN" on null in %s on line %d
Warning: Division by zero in %s on line %d

View file

@ -20,4 +20,4 @@ try {
}
?>
--EXPECT--
Exception: Call to protected method B::f() from context ''
Exception: Call to protected method B::f() from global scope

View file

@ -5,7 +5,7 @@ Bug #77738 (Nullptr deref in zend_compile_expr)
__COMPILER_HALT_OFFSET__;
; // <- important
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant '__COMPILER_HALT_OFFSET__' in %s:%d
Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -12,5 +12,5 @@ try {
var_dump($var);
?>
--EXPECT--
Attempt to modify property 'prop' on null
Attempt to modify property "prop" on null
NULL

View file

@ -17,7 +17,7 @@ class C extends B {
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot access protected const A::FOO in %s:%d
Fatal error: Uncaught Error: Cannot access protected constant A::FOO in %s:%d
Stack trace:
#0 %s(%d): C->method()
#1 {main}

View file

@ -25,13 +25,13 @@ try {
?>
--EXPECTF--
Warning: Undefined variable $u1 in %s on line %d
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
Warning: Undefined variable $u2 in %s on line %d
Attempt to increment/decrement property 'a' on null
Attempt to increment/decrement property "a" on null
Warning: Undefined variable $u3 in %s on line %d
Attempt to increment/decrement property 'a' on null
Attempt to increment/decrement property "a" on null
Warning: Undefined variable $u4 in %s on line %d
Attempt to modify property 'a' on null
Attempt to modify property "a" on null

View file

@ -11,4 +11,4 @@ $c->bindTo(new stdClass, $scope);
?>
--EXPECTF--
Warning: Class 'AAAABBBB' not found in %s on line %d
Warning: Class "AAAABBBB" not found in %s on line %d

View file

@ -18,5 +18,5 @@ var_dump(class_exists('B', false));
?>
--EXPECT--
Class 'A' not found
Class "A" not found
bool(false)

View file

@ -18,12 +18,12 @@ var_dump($ary);
?>
--EXPECT--
Undefined index: foobar
Undefined array key "foobar"
array(1) {
["foobar"]=>
int(1)
}
Undefined index: foobarbaz
Undefined array key "foobarbaz"
array(2) {
["foobar"]=>
int(1)

View file

@ -8,7 +8,7 @@ function test($a) {
test(new stdClass);
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'UNDEFINED' in %s:%d
Fatal error: Uncaught Error: Undefined constant "UNDEFINED" in %s:%d
Stack trace:
#0 %s(%d): test(Object(stdClass))
#1 {main}

View file

@ -31,8 +31,8 @@ try {
?>
--EXPECTF--
string(3) "foo"
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
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(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object

View file

@ -11,7 +11,7 @@ var_dump($a);
?>
--EXPECTF--
Notice: Undefined offset: 0 in %s on line %d
Notice: Undefined array key 0 in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d

View file

@ -12,4 +12,4 @@ class_alias('bar', 'baz');
?>
--EXPECTF--
Warning: Class 'bar' not found in %s on line %d
Warning: Class "bar" not found in %s on line %d

View file

@ -18,7 +18,7 @@ var_dump(new foo);
object(foo\bar)#%d (0) {
}
Fatal error: Uncaught Error: Class 'foo\foo' not found in %s:%d
Fatal error: Uncaught Error: Class "foo\foo" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -30,7 +30,7 @@ object(foo\foo)#1 (0) {
object(foo\bar\foo)#2 (0) {
}
Fatal error: Uncaught Error: Class 'foo\bar' not found in %s:%d
Fatal error: Uncaught Error: Class "foo\bar" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -19,7 +19,7 @@ echo "Done\n";
string(6) "string"
int(1)
Fatal error: Uncaught Error: Undefined class constant 'test::val3' in %s:%d
Fatal error: Uncaught Error: Undefined constant test::val3 in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -28,7 +28,7 @@ int(1)
int(5)
int(10)
Fatal error: Uncaught Error: Class 'NoSuchClass' not found in %s:%d
Fatal error: Uncaught Error: Class "NoSuchClass" not found in %s:%d
Stack trace:
#0 %s(%d): bar()
#1 {main}

Some files were not shown because too many files have changed in this diff Show more