diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-01 13:20:42 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-02 10:34:08 +0200 |
commit | 2f92957fd3d8d87e73013c016e479451db0c6a1e (patch) | |
tree | ca7d2d34038d7e1fb0e511962ad0db5e57390c63 /ext/opcache/tests | |
parent | 2041c9abf5fdaa9d0e632e5e6e4f3488159c9bfe (diff) | |
download | php-git-2f92957fd3d8d87e73013c016e479451db0c6a1e.tar.gz |
Convert some notices to warnings
Part of https://wiki.php.net/rfc/engine_warnings.
Diffstat (limited to 'ext/opcache/tests')
-rw-r--r-- | ext/opcache/tests/block_pass_001.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/bug73668.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/bug76446.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/bug77058.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/bug78015.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/assign_022.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/assign_023.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/assign_024.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/assign_025.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/fetch_dim_r_003.phpt | 8 | ||||
-rw-r--r-- | ext/opcache/tests/jit/fetch_dim_r_004.phpt | 8 | ||||
-rw-r--r-- | ext/opcache/tests/jit/fetch_dim_rw_001.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/fetch_obj_002.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/jit/fetch_obj_003.phpt | 4 | ||||
-rw-r--r-- | ext/opcache/tests/jmpz_jmp_elim.phpt | 2 | ||||
-rw-r--r-- | ext/opcache/tests/wrong_inlining_003.phpt | 2 |
16 files changed, 23 insertions, 23 deletions
diff --git a/ext/opcache/tests/block_pass_001.phpt b/ext/opcache/tests/block_pass_001.phpt index c024b81ce8..7fab78bbe8 100644 --- a/ext/opcache/tests/block_pass_001.phpt +++ b/ext/opcache/tests/block_pass_001.phpt @@ -9,4 +9,4 @@ Block pass: Bugs in BOOL/QM_ASSIGN elision (bool) new stdClass; ?> --EXPECTF-- -Notice: Undefined variable: x in %s on line %d +Warning: Undefined variable: x in %s on line %d diff --git a/ext/opcache/tests/bug73668.phpt b/ext/opcache/tests/bug73668.phpt index 379ba4a5ac..b2a0508aa5 100644 --- a/ext/opcache/tests/bug73668.phpt +++ b/ext/opcache/tests/bug73668.phpt @@ -7,4 +7,4 @@ Bug #73668: "SIGFPE Arithmetic exception" in opcache when divide by minus 1 $a/-1; ?> --EXPECTF-- -Notice: Undefined variable: a in %s on line %d +Warning: Undefined variable: a in %s on line %d diff --git a/ext/opcache/tests/bug76446.phpt b/ext/opcache/tests/bug76446.phpt index dfb676f4ba..98b1d3dc56 100644 --- a/ext/opcache/tests/bug76446.phpt +++ b/ext/opcache/tests/bug76446.phpt @@ -18,5 +18,5 @@ function test() var_dump(test()); ?> --EXPECTF-- -Notice: Undefined variable: addlang in %sbug76446.php on line %d +Warning: Undefined variable: addlang in %s on line %d int(0) diff --git a/ext/opcache/tests/bug77058.phpt b/ext/opcache/tests/bug77058.phpt index a1962b7ade..22a36d1e3d 100644 --- a/ext/opcache/tests/bug77058.phpt +++ b/ext/opcache/tests/bug77058.phpt @@ -18,5 +18,5 @@ myfunc(); ?> --EXPECTF-- -Notice: Undefined variable: x in %s on line %d +Warning: Undefined variable: x in %s on line %d '2' is expected to be 2 diff --git a/ext/opcache/tests/bug78015.phpt b/ext/opcache/tests/bug78015.phpt index 0a03c9834f..aa4ba4db4b 100644 --- a/ext/opcache/tests/bug78015.phpt +++ b/ext/opcache/tests/bug78015.phpt @@ -103,7 +103,7 @@ array(1) { } bool(true) -Notice: Array to string conversion in %s on line %d +Warning: Array to string conversion in %s on line %d string(11) "Arrayfoobar" int(2) array(2) { diff --git a/ext/opcache/tests/jit/assign_022.phpt b/ext/opcache/tests/jit/assign_022.phpt index f054a6a4d7..ebe153f140 100644 --- a/ext/opcache/tests/jit/assign_022.phpt +++ b/ext/opcache/tests/jit/assign_022.phpt @@ -20,5 +20,5 @@ function foo() { foo(); echo "ok\n"; --EXPECTF-- -Notice: Undefined variable: undef in %s on line %d +Warning: Undefined variable: undef in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_023.phpt b/ext/opcache/tests/jit/assign_023.phpt index 3e18b19324..ebe5ff288f 100644 --- a/ext/opcache/tests/jit/assign_023.phpt +++ b/ext/opcache/tests/jit/assign_023.phpt @@ -20,5 +20,5 @@ function foo() { foo(); echo "ok\n"; --EXPECTF-- -Notice: Undefined variable: undef in %s on line %d +Warning: Undefined variable: undef in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_024.phpt b/ext/opcache/tests/jit/assign_024.phpt index b0fc372139..4f48a3e75c 100644 --- a/ext/opcache/tests/jit/assign_024.phpt +++ b/ext/opcache/tests/jit/assign_024.phpt @@ -19,5 +19,5 @@ function foo() { foo(); echo "ok\n"; --EXPECTF-- -Notice: Undefined variable: undef in %s on line %d +Warning: Undefined variable: undef in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_025.phpt b/ext/opcache/tests/jit/assign_025.phpt index 402c923a5f..36b76dba09 100644 --- a/ext/opcache/tests/jit/assign_025.phpt +++ b/ext/opcache/tests/jit/assign_025.phpt @@ -20,5 +20,5 @@ function foo() { foo(); echo "ok\n"; --EXPECTF-- -Notice: Undefined variable: ref in %s on line %d +Warning: Undefined variable: ref in %s on line %d ok diff --git a/ext/opcache/tests/jit/fetch_dim_r_003.phpt b/ext/opcache/tests/jit/fetch_dim_r_003.phpt index 0c213802ce..2e82cb926c 100644 --- a/ext/opcache/tests/jit/fetch_dim_r_003.phpt +++ b/ext/opcache/tests/jit/fetch_dim_r_003.phpt @@ -34,18 +34,18 @@ foo(); string(1) "A" string(1) "C" -Notice: String offset cast occurred in %sfetch_dim_r_003.php on line 6 +Warning: String offset cast occurred in %s on line %d string(1) "B" string(1) "A" string(1) "C" -Notice: String offset cast occurred in %sfetch_dim_r_003.php on line 9 +Warning: String offset cast occurred in %s on line %d string(1) "A" -Notice: String offset cast occurred in %sfetch_dim_r_003.php on line 10 +Warning: String offset cast occurred in %s on line %d string(1) "B" -Notice: String offset cast occurred in %sfetch_dim_r_003.php on line 11 +Warning: String offset cast occurred in %s on line %d string(1) "A" Warning: Illegal string offset 'ab' in %sfetch_dim_r_003.php on line 12 diff --git a/ext/opcache/tests/jit/fetch_dim_r_004.phpt b/ext/opcache/tests/jit/fetch_dim_r_004.phpt index 6f3c730a8d..66a88977d9 100644 --- a/ext/opcache/tests/jit/fetch_dim_r_004.phpt +++ b/ext/opcache/tests/jit/fetch_dim_r_004.phpt @@ -34,18 +34,18 @@ foo($x.$y); string(1) "A" string(1) "C" -Notice: String offset cast occurred in %sfetch_dim_r_004.php on line 4 +Warning: String offset cast occurred in %s on line %d string(1) "B" string(1) "A" string(1) "C" -Notice: String offset cast occurred in %sfetch_dim_r_004.php on line 4 +Warning: String offset cast occurred in %s on line %d string(1) "A" -Notice: String offset cast occurred in %sfetch_dim_r_004.php on line 4 +Warning: String offset cast occurred in %s on line %d string(1) "B" -Notice: String offset cast occurred in %sfetch_dim_r_004.php on line 4 +Warning: String offset cast occurred in %s on line %d string(1) "A" Warning: Illegal string offset 'ab' in %sfetch_dim_r_004.php on line 4 diff --git a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt index 9e883aaf75..a828e0a5ea 100644 --- a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt +++ b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt @@ -16,7 +16,7 @@ function foo() { } var_dump(foo()); --EXPECTF-- -Notice: Undefined variable: a in %sfetch_dim_rw_001.php on line 3 +Warning: Undefined variable: a in %s on line %d Notice: Undefined offset: 0 in %sfetch_dim_rw_001.php on line 3 diff --git a/ext/opcache/tests/jit/fetch_obj_002.phpt b/ext/opcache/tests/jit/fetch_obj_002.phpt index 95ad920ea8..463ff01b26 100644 --- a/ext/opcache/tests/jit/fetch_obj_002.phpt +++ b/ext/opcache/tests/jit/fetch_obj_002.phpt @@ -35,7 +35,7 @@ bar(); --EXPECTF-- int(2) -Notice: Undefined property: A::$y in %sfetch_obj_002.php on line 16 +Warning: Undefined property: A::$y in %s on line %d NULL int(3) string(5) "__get" diff --git a/ext/opcache/tests/jit/fetch_obj_003.phpt b/ext/opcache/tests/jit/fetch_obj_003.phpt index 3f7f0beaf3..9232ccd64b 100644 --- a/ext/opcache/tests/jit/fetch_obj_003.phpt +++ b/ext/opcache/tests/jit/fetch_obj_003.phpt @@ -31,13 +31,13 @@ foo(); bar(); ?> --EXPECTF-- -Notice: Undefined property: C::$a in %sfetch_obj_003.php on line 9 +Warning: Undefined property: C::$a in %s on line %d object(C)#1 (1) { ["a"]=> int(2) } -Notice: Undefined property: C::$a in %sfetch_obj_003.php on line 17 +Warning: Undefined property: C::$a in %s on line %d object(C)#1 (2) { ["a"]=> int(2) diff --git a/ext/opcache/tests/jmpz_jmp_elim.phpt b/ext/opcache/tests/jmpz_jmp_elim.phpt index 8a343512dd..434897bf80 100644 --- a/ext/opcache/tests/jmpz_jmp_elim.phpt +++ b/ext/opcache/tests/jmpz_jmp_elim.phpt @@ -14,5 +14,5 @@ echo "done\n"; ?> --EXPECTF-- -Notice: Undefined variable: undef in %s on line %d +Warning: Undefined variable: undef in %s on line %d done diff --git a/ext/opcache/tests/wrong_inlining_003.phpt b/ext/opcache/tests/wrong_inlining_003.phpt index a7e4a11b76..c83a4efc36 100644 --- a/ext/opcache/tests/wrong_inlining_003.phpt +++ b/ext/opcache/tests/wrong_inlining_003.phpt @@ -19,5 +19,5 @@ function test() { test(); ?> --EXPECTF-- -Notice: Undefined variable: undef in %swrong_inlining_003.php on line 7 +Warning: Undefined variable: undef in %s on line %d int(42) |