From 6ab54545564235eedb9aa03f42ee8bca64745423 Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Sun, 3 Jul 2022 01:32:45 +0100 Subject: [PATCH 1/8] Update warning messages to note that undefined variables will become errors in PHP 9.0 --- Zend/tests/019.phpt | 216 +++++++++--------- Zend/tests/024.phpt | 18 +- Zend/tests/033.phpt | 6 +- Zend/tests/array_unpack/undef_var.phpt | 2 +- Zend/tests/arrow_functions/002.phpt | 2 +- Zend/tests/arrow_functions/003.phpt | 4 +- Zend/tests/assign_coalesce_007.phpt | 2 +- Zend/tests/assign_dim_op_undef.phpt | 4 +- Zend/tests/bug30162.phpt | 2 +- Zend/tests/bug31720.phpt | 2 +- Zend/tests/bug39036.phpt | 2 +- Zend/tests/bug41209.phpt | 2 +- Zend/tests/bug43201.phpt | 14 +- Zend/tests/bug47109.phpt | 2 +- Zend/tests/bug52001.phpt | 4 +- Zend/tests/bug52041.phpt | 26 +-- Zend/tests/bug61767.phpt | 4 +- Zend/tests/bug67314.phpt | 4 +- Zend/tests/bug70124.phpt | 2 +- Zend/tests/bug72944.phpt | 2 +- Zend/tests/bug75921.phpt | 10 +- Zend/tests/bug76667.phpt | 2 +- Zend/tests/bug78531.phpt | 8 +- Zend/tests/bug79599.phpt | 4 +- Zend/tests/bug79828.phpt | 2 +- Zend/tests/bug80030.phpt | 2 +- Zend/tests/bug81631.phpt | 2 +- Zend/tests/call_user_func_002.phpt | 4 +- Zend/tests/clone_003.phpt | 2 +- Zend/tests/closure_012.phpt | 4 +- Zend/tests/closure_027.phpt | 2 +- Zend/tests/code_before_loop_var_free.phpt | 2 +- Zend/tests/dead_array_type_inference.phpt | 2 +- Zend/tests/dereference_007.phpt | 2 +- .../div_by_zero_compound_with_conversion.phpt | 2 +- Zend/tests/dynamic_call_004.phpt | 2 +- Zend/tests/entry_block_with_predecessors.phpt | 2 +- Zend/tests/errmsg_045.phpt | 2 +- Zend/tests/error_reporting03.phpt | 2 +- Zend/tests/error_reporting04.phpt | 2 +- Zend/tests/error_reporting05.phpt | 4 +- Zend/tests/error_reporting08.phpt | 2 +- Zend/tests/error_reporting09.phpt | 4 +- Zend/tests/exception_before_fatal.phpt | 14 +- Zend/tests/foreach_undefined.phpt | 2 +- .../resume_running_generator_error_003.phpt | 2 +- Zend/tests/globals_001.phpt | 2 +- Zend/tests/globals_002.phpt | 2 +- Zend/tests/globals_003.phpt | 2 +- Zend/tests/globals_004.phpt | 2 +- Zend/tests/ignore_repeated_errors.phpt | 8 +- Zend/tests/ignore_repeated_source.phpt | 6 +- Zend/tests/incdec_undef.phpt | 8 +- Zend/tests/inference_infinite_loop.phpt | 2 +- Zend/tests/isset_003.phpt | 4 +- Zend/tests/match/029.phpt | 2 +- Zend/tests/match/030.phpt | 2 +- Zend/tests/match/042.phpt | 4 +- Zend/tests/method_argument_binding.phpt | 2 +- Zend/tests/named_params/undef_var.phpt | 4 +- Zend/tests/nullsafe_operator/018.phpt | 6 +- Zend/tests/nullsafe_operator/025.phpt | 2 +- Zend/tests/nullsafe_operator/039.phpt | 2 +- Zend/tests/remove_predecessor_of_pi_node.phpt | 2 +- Zend/tests/restore_error_reporting.phpt | 2 +- Zend/tests/restrict_globals/valid.phpt | 4 +- Zend/tests/str_offset_006.phpt | 4 +- Zend/tests/str_offset_007.phpt | 2 +- Zend/tests/str_offset_008.phpt | 2 +- Zend/tests/this_in_extract.phpt | 2 +- Zend/tests/undef_index_to_exception.phpt | 4 +- Zend/tests/undef_var_in_verify_return.phpt | 2 +- Zend/tests/unreachable_phi_cycle.phpt | 2 +- Zend/tests/unset_cv01.phpt | 2 +- Zend/tests/unset_cv02.phpt | 2 +- Zend/tests/unset_cv03.phpt | 2 +- Zend/tests/unset_cv04.phpt | 2 +- Zend/tests/unset_non_array.phpt | 4 +- .../warning_during_heredoc_scan_ahead.phpt | 2 +- Zend/zend_execute.c | 4 +- Zend/zend_vm_def.h | 4 +- Zend/zend_vm_execute.h | 12 +- ext/opcache/jit/zend_jit_helpers.c | 8 +- ext/opcache/tests/block_pass_001.phpt | 2 +- ext/opcache/tests/bool_not_cv.phpt | 4 +- ext/opcache/tests/bug73668.phpt | 2 +- ext/opcache/tests/bug76446.phpt | 2 +- ext/opcache/tests/bug77058.phpt | 2 +- ext/opcache/tests/bug79412.phpt | 2 +- ext/opcache/tests/jit/add_011.phpt | 118 +++++----- ext/opcache/tests/jit/assign_022.phpt | 2 +- ext/opcache/tests/jit/assign_023.phpt | 2 +- ext/opcache/tests/jit/assign_024.phpt | 2 +- ext/opcache/tests/jit/assign_025.phpt | 2 +- ext/opcache/tests/jit/assign_040.phpt | 2 +- ext/opcache/tests/jit/assign_043.phpt | 2 +- ext/opcache/tests/jit/assign_046.phpt | 12 +- ext/opcache/tests/jit/assign_047.phpt | 2 +- ext/opcache/tests/jit/assign_048.phpt | 20 +- ext/opcache/tests/jit/assign_053.phpt | 4 +- ext/opcache/tests/jit/assign_dim_002.phpt | 2 +- ext/opcache/tests/jit/assign_dim_003.phpt | 2 +- ext/opcache/tests/jit/assign_dim_004.phpt | 2 +- ext/opcache/tests/jit/assign_dim_005.phpt | 4 +- ext/opcache/tests/jit/assign_dim_010.phpt | 4 +- ext/opcache/tests/jit/assign_dim_014.phpt | 2 +- ext/opcache/tests/jit/assign_dim_015.phpt | 2 +- ext/opcache/tests/jit/assign_dim_op_002.phpt | 2 +- ext/opcache/tests/jit/assign_dim_op_003.phpt | 2 +- ext/opcache/tests/jit/assign_dim_op_005.phpt | 4 +- .../tests/jit/assign_dim_undef_exception.phpt | 4 +- ext/opcache/tests/jit/assign_obj_002.phpt | 4 +- ext/opcache/tests/jit/bool_not_002.phpt | 4 +- ext/opcache/tests/jit/bw_not_001.phpt | 4 +- ext/opcache/tests/jit/cmp_006.phpt | 8 +- ext/opcache/tests/jit/cmp_008.phpt | 4 +- ext/opcache/tests/jit/fe_reset_001.phpt | 10 +- ext/opcache/tests/jit/fe_reset_undef.phpt | 2 +- ext/opcache/tests/jit/fetch_dim_rw_001.phpt | 2 +- ext/opcache/tests/jit/fetch_obj_008.phpt | 2 +- ext/opcache/tests/jit/inc_obj_005.phpt | 2 +- ext/opcache/tests/jit/isset_001.phpt | 2 +- ext/opcache/tests/jit/mul_009.phpt | 2 +- ext/opcache/tests/jit/qm_assign_002.phpt | 6 +- .../tests/jit/qm_assign_undef_exception.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_004.phpt | 8 +- ext/opcache/tests/jit/reg_alloc_006.phpt | 14 +- ext/opcache/tests/jit/reg_alloc_007.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_008.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_009.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_010.phpt | 4 +- ext/opcache/tests/jit/reg_alloc_013.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_014.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_015.phpt | 4 +- ext/opcache/tests/jit/send_val_002.phpt | 2 +- ext/opcache/tests/jit/shift_right_004.phpt | 6 +- ext/opcache/tests/jit/type_check_001.phpt | 2 +- ext/opcache/tests/jit/undef_to_typed_ref.phpt | 12 +- .../tests/jit/verify_return_undef.phpt | 2 +- ext/opcache/tests/jmpz_jmp_elim.phpt | 2 +- ext/opcache/tests/opt/assign_op_001.phpt | 4 +- ext/opcache/tests/opt/coalesce_002.phpt | 2 +- ext/opcache/tests/opt/dce_011.phpt | 4 +- ext/opcache/tests/opt/inference_001.phpt | 4 +- ext/opcache/tests/opt/sccp_034.phpt | 4 +- ext/opcache/tests/opt/sccp_040.phpt | 2 +- ext/opcache/tests/opt/tmp_001.phpt | 2 +- ext/opcache/tests/wrong_inlining_003.phpt | 2 +- ext/pdo_sqlite/tests/bug43831.phpt | 2 +- ext/pgsql/tests/bug72195.phpt | 2 +- .../tests/ReflectionParameter_003.phpt | 2 +- .../tests/session_decode_variation3.phpt | 2 +- .../session_set_save_handler_class_012.phpt | 2 +- .../tests/SimpleXMLElement_xpath_4.phpt | 2 +- .../arrayObject_exchangeArray_basic3.phpt | 4 +- ext/spl/tests/array_026.phpt | 2 +- ext/spl/tests/bug62978.phpt | 2 +- ext/spl/tests/bug72888.phpt | 2 +- ext/standard/array.c | 2 +- .../array/array_fill_keys_variation4.phpt | 2 +- ext/standard/tests/array/bug30074.phpt | 2 +- ext/standard/tests/array/bug69198.phpt | 2 +- ext/standard/tests/array/compact.phpt | 2 +- ext/standard/tests/array/compact_basic.phpt | 2 +- .../tests/array/compact_variation2.phpt | 4 +- .../get_class_methods_variation_001.phpt | 4 +- .../class_object/get_class_variation_001.phpt | 4 +- .../get_parent_class_variation_002.phpt | 4 +- .../class_object/is_a_variation_001.phpt | 4 +- .../is_subclass_of_variation_001.phpt | 4 +- .../is_subclass_of_variation_004.phpt | 4 +- .../method_exists_variation_001.phpt | 4 +- ext/standard/tests/file/005_variation2.phpt | 2 +- .../tests/general_functions/bug32647.phpt | 4 +- .../tests/general_functions/bug60723.phpt | 4 +- .../general_functions/debug_zval_dump_v.phpt | 6 +- .../general_functions/error_clear_last.phpt | 2 +- .../general_functions/error_get_last.phpt | 4 +- .../tests/image/getimagesize_variation2.phpt | 4 +- .../serialize/serialization_objects_002.phpt | 4 +- .../tests/strings/crc32_variation3.phpt | 4 +- ext/standard/tests/strings/lcfirst.phpt | 2 +- .../tests/strings/str_replace_variation3.phpt | 2 +- .../tests/strings/str_word_count1.phpt | 4 +- ext/standard/tests/strings/strcasecmp.phpt | 38 +-- ext/standard/tests/strings/strcmp.phpt | 54 ++--- ext/standard/tests/strings/strlen.phpt | 9 +- ext/standard/tests/strings/strpos.phpt | 2 +- ext/standard/tests/strings/strstr.phpt | 2 +- ext/standard/tests/strings/ucfirst.phpt | 2 +- ext/zend_test/tests/observer_error_03.phpt | 2 +- ext/zend_test/tests/observer_retval_05.phpt | 4 +- tests/basic/025.phpt | 2 +- tests/basic/enable_post_data_reading_01.phpt | 2 +- tests/basic/enable_post_data_reading_03.phpt | 2 +- tests/basic/enable_post_data_reading_04.phpt | 2 +- tests/classes/constants_basic_001.phpt | 2 +- tests/lang/bison1.phpt | 2 +- tests/lang/bug23584.phpt | 2 +- tests/lang/bug25922.phpt | 2 +- tests/lang/passByReference_003.phpt | 4 +- tests/lang/passByReference_005.phpt | 64 +++--- tests/lang/short_tags.004.phpt | 4 +- 203 files changed, 601 insertions(+), 600 deletions(-) diff --git a/Zend/tests/019.phpt b/Zend/tests/019.phpt index bab02dd565d50..5f5496bc201f7 100644 --- a/Zend/tests/019.phpt +++ b/Zend/tests/019.phpt @@ -357,7 +357,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -369,7 +369,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -381,7 +381,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -393,7 +393,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -405,7 +405,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -417,7 +417,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -429,7 +429,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -441,7 +441,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -453,7 +453,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -465,7 +465,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -477,7 +477,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -489,7 +489,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -501,7 +501,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -513,7 +513,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -525,7 +525,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -537,7 +537,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -549,7 +549,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -561,7 +561,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -573,7 +573,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -585,7 +585,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -597,7 +597,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -609,7 +609,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -621,7 +621,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -633,7 +633,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -645,7 +645,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -657,7 +657,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -669,7 +669,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -686,7 +686,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -702,18 +702,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -729,18 +729,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -756,18 +756,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -783,18 +783,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -816,13 +816,13 @@ array(3) { int(4) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(3) { [1]=> @@ -840,13 +840,13 @@ array(2) { int(4) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [2]=> @@ -860,13 +860,13 @@ array(1) { int(4) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [3]=> @@ -876,18 +876,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -907,13 +907,13 @@ array(2) { float(5.6) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [1]=> @@ -927,13 +927,13 @@ array(1) { float(5.6) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [2]=> @@ -943,18 +943,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -972,13 +972,13 @@ array(1) { string(3) "two" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [2]=> @@ -988,18 +988,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1017,13 +1017,13 @@ array(1) { string(2) "30" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { ["Age"]=> @@ -1033,18 +1033,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1068,13 +1068,13 @@ array(4) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(4) { [1]=> @@ -1096,13 +1096,13 @@ array(3) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(3) { ["One"]=> @@ -1120,13 +1120,13 @@ array(2) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [2]=> @@ -1140,13 +1140,13 @@ array(1) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [""]=> @@ -1156,18 +1156,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1185,7 +1185,7 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $resource in %s on line %d +Warning: Undefined variable $resource (This will become an error in PHP 9.0) in %s on line %d NULL -- Iteration 2 -- resource(%d) of type (stream) @@ -1198,10 +1198,10 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $resource in %s on line %d +Warning: Undefined variable $resource (This will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $resources in %s on line %d +Warning: Undefined variable $resources (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(true) @@ -1218,16 +1218,16 @@ object(Point)#%d (3) { bool(true) bool(false) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d bool(true) object(Point)#%d (3) { ["x"]=> @@ -1252,7 +1252,7 @@ bool(false) bool(false) bool(true) -Warning: Undefined variable $point1 in %s on line %d +Warning: Undefined variable $point1 (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(true) @@ -1282,7 +1282,7 @@ value of static_var before unset: 1 bool(true) bool(false) -Warning: Undefined variable $static_var in %s on line %d +Warning: Undefined variable $static_var (This will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) @@ -1291,7 +1291,7 @@ value of static_var before unset: 2 bool(true) bool(false) -Warning: Undefined variable $static_var in %s on line %d +Warning: Undefined variable $static_var (This will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) @@ -1300,7 +1300,7 @@ value of static_var before unset: 3 bool(true) bool(false) -Warning: Undefined variable $static_var in %s on line %d +Warning: Undefined variable $static_var (This will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) diff --git a/Zend/tests/024.phpt b/Zend/tests/024.phpt index 22d93483fed87..de143ad550de9 100644 --- a/Zend/tests/024.phpt +++ b/Zend/tests/024.phpt @@ -15,30 +15,30 @@ var_dump($a->$b->{$c[1]}); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d int(1) -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d int(0) -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d int(1) Warning: Attempt to read property "1" on int in %s on line %d @@ -47,7 +47,7 @@ NULL Warning: Attempt to read property "1" on int in %s on line %d NULL -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/033.phpt b/Zend/tests/033.phpt index 22e4b6a12097f..a2d9bf6fafc83 100644 --- a/Zend/tests/033.phpt +++ b/Zend/tests/033.phpt @@ -25,7 +25,7 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -37,7 +37,7 @@ 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: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -49,7 +49,7 @@ 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: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/array_unpack/undef_var.phpt b/Zend/tests/array_unpack/undef_var.phpt index 383805c46a294..ba12dd8304ba3 100644 --- a/Zend/tests/array_unpack/undef_var.phpt +++ b/Zend/tests/array_unpack/undef_var.phpt @@ -7,7 +7,7 @@ var_dump([...$arr]); ?> --EXPECTF-- -Warning: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Only arrays and Traversables can be unpacked in %s:%d Stack trace: diff --git a/Zend/tests/arrow_functions/002.phpt b/Zend/tests/arrow_functions/002.phpt index b805b57c60eed..6032576977ba7 100644 --- a/Zend/tests/arrow_functions/002.phpt +++ b/Zend/tests/arrow_functions/002.phpt @@ -9,5 +9,5 @@ var_dump((fn() => $b + $c)()); ?> --EXPECTF-- -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d int(1) diff --git a/Zend/tests/arrow_functions/003.phpt b/Zend/tests/arrow_functions/003.phpt index ae72efedc62e0..2769f9f1fc211 100644 --- a/Zend/tests/arrow_functions/003.phpt +++ b/Zend/tests/arrow_functions/003.phpt @@ -14,8 +14,8 @@ var_dump($fn()); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $5 in %s on line %d +Warning: Undefined variable $5 (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/assign_coalesce_007.phpt b/Zend/tests/assign_coalesce_007.phpt index f569aa5cbfb61..a3916085be146 100644 --- a/Zend/tests/assign_coalesce_007.phpt +++ b/Zend/tests/assign_coalesce_007.phpt @@ -6,7 +6,7 @@ $a[0] ??= $a; var_dump($a); ?> --EXPECTF-- -Warning: Undefined variable $a in %sassign_coalesce_007.php on line 2 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_coalesce_007.php on line 2 array(1) { [0]=> NULL diff --git a/Zend/tests/assign_dim_op_undef.phpt b/Zend/tests/assign_dim_op_undef.phpt index 187aed97857a4..ca731be4590cd 100644 --- a/Zend/tests/assign_dim_op_undef.phpt +++ b/Zend/tests/assign_dim_op_undef.phpt @@ -6,9 +6,9 @@ $a[$b] += 1; var_dump($a); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key "" in %s on line %d array(1) { diff --git a/Zend/tests/bug30162.phpt b/Zend/tests/bug30162.phpt index e2c21366f23b7..73b3bcc8591d7 100644 --- a/Zend/tests/bug30162.phpt +++ b/Zend/tests/bug30162.phpt @@ -44,7 +44,7 @@ $db = new hariCow; var_dump($db); ?> --EXPECTF-- -Warning: Undefined variable $db in %s on line %d +Warning: Undefined variable $db (This will become an error in PHP 9.0) in %s on line %d NULL object(hariCow)#%d (2) { ["x"]=> diff --git a/Zend/tests/bug31720.phpt b/Zend/tests/bug31720.phpt index 083ea78a01163..adaef61fef523 100644 --- a/Zend/tests/bug31720.phpt +++ b/Zend/tests/bug31720.phpt @@ -11,5 +11,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $nonesuchvar in %s on line %d +Warning: Undefined variable $nonesuchvar (This will become an error in PHP 9.0) in %s on line %d array_walk(): Argument #2 ($callback) must be a valid callback, first array member is not a valid class name or object diff --git a/Zend/tests/bug39036.phpt b/Zend/tests/bug39036.phpt index 669ca9255ec4f..4f6819bfca033 100644 --- a/Zend/tests/bug39036.phpt +++ b/Zend/tests/bug39036.phpt @@ -14,6 +14,6 @@ var_dump($key); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $key in %s on line %d +Warning: Undefined variable $key (This will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/bug41209.phpt b/Zend/tests/bug41209.phpt index 1a7ee8aa515c0..1f7084c2cc04c 100644 --- a/Zend/tests/bug41209.phpt +++ b/Zend/tests/bug41209.phpt @@ -39,7 +39,7 @@ var_dump(isset($cache[$id])); echo "Done\n"; ?> --EXPECTF-- -Fatal error: Uncaught ErrorException: Undefined variable $id in %s:%d +Fatal error: Uncaught ErrorException: Undefined variable $id (This will become an error in PHP 9.0) in %s:%d Stack trace: #0 %s(%d): env::errorHandler(2, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/bug43201.phpt b/Zend/tests/bug43201.phpt index c93b118e1696d..d7125351b5af4 100644 --- a/Zend/tests/bug43201.phpt +++ b/Zend/tests/bug43201.phpt @@ -26,39 +26,39 @@ Notice: Indirect modification of overloaded property Foo::$arr has no effect in Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 14 -Warning: Undefined variable $ref in %s on line %d +Warning: Undefined variable $ref (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d diff --git a/Zend/tests/bug47109.phpt b/Zend/tests/bug47109.phpt index 591edfa747cfa..ed4d3012842f8 100644 --- a/Zend/tests/bug47109.phpt +++ b/Zend/tests/bug47109.phpt @@ -5,6 +5,6 @@ Bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) $a->{"a"."b"}; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "ab" on null in %s on line %d diff --git a/Zend/tests/bug52001.phpt b/Zend/tests/bug52001.phpt index b473157511aaf..c99743a13948a 100644 --- a/Zend/tests/bug52001.phpt +++ b/Zend/tests/bug52001.phpt @@ -11,7 +11,7 @@ var_dump($temp1); function a($b,$c) {} ?> --EXPECTF-- -Warning: Undefined variable $var in %s on line %d +Warning: Undefined variable $var (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $ in %s on line %d +Warning: Undefined variable $ (This will become an error in PHP 9.0) in %s on line %d int(1) diff --git a/Zend/tests/bug52041.phpt b/Zend/tests/bug52041.phpt index 7debab3f8bebb..51c6d5efb3978 100644 --- a/Zend/tests/bug52041.phpt +++ b/Zend/tests/bug52041.phpt @@ -47,47 +47,47 @@ foo()[0][0] += 2; var_dump(foo()); ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/bug61767.phpt b/Zend/tests/bug61767.phpt index f47eb0cbe82c4..ad21edcaf1c4e 100644 --- a/Zend/tests/bug61767.phpt +++ b/Zend/tests/bug61767.phpt @@ -16,9 +16,9 @@ register_shutdown_function(function(){ $undefined->foo(); ?> --EXPECTF-- -Error handler called (Undefined variable $undefined) +Error handler called (Undefined variable $undefined (This will become an error in PHP 9.0)) -Fatal error: Uncaught ErrorException: Undefined variable $undefined in %sbug61767.php:%d +Fatal error: Uncaught ErrorException: Undefined variable $undefined (This will become an error in PHP 9.0) in %sbug61767.php:%d Stack trace: #0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/bug67314.phpt b/Zend/tests/bug67314.phpt index 8077b01881b0a..73e48b5a35522 100644 --- a/Zend/tests/bug67314.phpt +++ b/Zend/tests/bug67314.phpt @@ -16,8 +16,8 @@ crash(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d made it once -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d ok diff --git a/Zend/tests/bug70124.phpt b/Zend/tests/bug70124.phpt index 51f592d24d197..f626ee4e1f8fb 100644 --- a/Zend/tests/bug70124.phpt +++ b/Zend/tests/bug70124.phpt @@ -39,7 +39,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $f in %s on line %d +Warning: Undefined variable $f (This will become an error in PHP 9.0) in %s on line %d string(34) "Value of type null is not callable" string(31) "Call to undefined method A::y()" string(31) "Call to undefined method A::y()" diff --git a/Zend/tests/bug72944.phpt b/Zend/tests/bug72944.phpt index b5c76be3ae20c..b3cddb1d92038 100644 --- a/Zend/tests/bug72944.phpt +++ b/Zend/tests/bug72944.phpt @@ -7,5 +7,5 @@ define('e', 'e'); echo "OK\n"; ?> --EXPECTF-- -Warning: Undefined variable $A in %s on line %d +Warning: Undefined variable $A (This will become an error in PHP 9.0) in %s on line %d OK diff --git a/Zend/tests/bug75921.phpt b/Zend/tests/bug75921.phpt index ab82c85840c43..d8a592f90725e 100644 --- a/Zend/tests/bug75921.phpt +++ b/Zend/tests/bug75921.phpt @@ -47,21 +47,21 @@ unset($null); --EXPECTF-- Attempt to assign property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/bug76667.phpt b/Zend/tests/bug76667.phpt index 03bd490a04090..87316f99f994a 100644 --- a/Zend/tests/bug76667.phpt +++ b/Zend/tests/bug76667.phpt @@ -23,7 +23,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $undefined in %s on line %d +Warning: Undefined variable $undefined (This will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "1" on null in %s on line %d Division by zero diff --git a/Zend/tests/bug78531.phpt b/Zend/tests/bug78531.phpt index b818afb79a863..5beab64b4eb6e 100644 --- a/Zend/tests/bug78531.phpt +++ b/Zend/tests/bug78531.phpt @@ -24,14 +24,14 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $u3 in %s on line %d +Warning: Undefined variable $u3 (This will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $u4 in %s on line %d +Warning: Undefined variable $u4 (This will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null diff --git a/Zend/tests/bug79599.phpt b/Zend/tests/bug79599.phpt index 57e5332431f53..415dbc9f621cd 100644 --- a/Zend/tests/bug79599.phpt +++ b/Zend/tests/bug79599.phpt @@ -23,5 +23,5 @@ try{ } ?> --EXPECT-- -string(21) "Undefined variable $b" -string(21) "Undefined variable $c" +string(60) "Undefined variable $b (This will become an error in PHP 9.0)" +string(60) "Undefined variable $c (This will become an error in PHP 9.0)" diff --git a/Zend/tests/bug79828.phpt b/Zend/tests/bug79828.phpt index 2bcb18e3e9de1..58e78992df75b 100644 --- a/Zend/tests/bug79828.phpt +++ b/Zend/tests/bug79828.phpt @@ -8,7 +8,7 @@ function foo(): AnyType { foo(); ?> --EXPECTF-- -Warning: Undefined variable $uninitialized in %s on line %d +Warning: Undefined variable $uninitialized (This will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught TypeError: foo(): Return value must be of type AnyType, null returned in %s:%d Stack trace: diff --git a/Zend/tests/bug80030.phpt b/Zend/tests/bug80030.phpt index cf5a668345ce5..65ff364b2af2c 100644 --- a/Zend/tests/bug80030.phpt +++ b/Zend/tests/bug80030.phpt @@ -10,7 +10,7 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $className in %s on line %d +Warning: Undefined variable $className (This will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d Stack trace: diff --git a/Zend/tests/bug81631.phpt b/Zend/tests/bug81631.phpt index 191ea951274d2..442d7e96a0f6d 100644 --- a/Zend/tests/bug81631.phpt +++ b/Zend/tests/bug81631.phpt @@ -6,7 +6,7 @@ $a = 0; var_dump($b::class); ?> --EXPECTF-- -Warning: Undefined variable $b in %s on line 3 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line 3 Fatal error: Uncaught TypeError: Cannot use "::class" on value of type null in %s:3 Stack trace: diff --git a/Zend/tests/call_user_func_002.phpt b/Zend/tests/call_user_func_002.phpt index 443334cd2375c..f4d226dc3e65d 100644 --- a/Zend/tests/call_user_func_002.phpt +++ b/Zend/tests/call_user_func_002.phpt @@ -34,8 +34,8 @@ string(3) "foo" call_user_func(): Argument #1 ($callback) must be a valid callback, class "foo" not found call_user_func(): Argument #1 ($callback) must be a valid callback, class "" not found -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d call_user_func(): Argument #1 ($callback) 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 +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object diff --git a/Zend/tests/clone_003.phpt b/Zend/tests/clone_003.phpt index f163616a876dc..73853c024e8be 100644 --- a/Zend/tests/clone_003.phpt +++ b/Zend/tests/clone_003.phpt @@ -7,7 +7,7 @@ $a = clone $b; ?> --EXPECTF-- -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: __clone method called on non-object in %s:%d Stack trace: diff --git a/Zend/tests/closure_012.phpt b/Zend/tests/closure_012.phpt index 044de936ca972..d6ff9666514f7 100644 --- a/Zend/tests/closure_012.phpt +++ b/Zend/tests/closure_012.phpt @@ -16,8 +16,8 @@ $lambda(); var_dump($i); ?> --EXPECTF-- -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d NULL int(2) diff --git a/Zend/tests/closure_027.phpt b/Zend/tests/closure_027.phpt index 7ecfa55e0f14c..32e0c3855fdd4 100644 --- a/Zend/tests/closure_027.phpt +++ b/Zend/tests/closure_027.phpt @@ -27,7 +27,7 @@ object(stdClass)#%d (0) { } NULL -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (This will become an error in PHP 9.0) 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(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s:%d diff --git a/Zend/tests/code_before_loop_var_free.phpt b/Zend/tests/code_before_loop_var_free.phpt index 3e0d8caf154dc..c1882b32262c1 100644 --- a/Zend/tests/code_before_loop_var_free.phpt +++ b/Zend/tests/code_before_loop_var_free.phpt @@ -9,4 +9,4 @@ default: } ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/dead_array_type_inference.phpt b/Zend/tests/dead_array_type_inference.phpt index f0f9d51ee2d45..c6c6abf70e242 100644 --- a/Zend/tests/dead_array_type_inference.phpt +++ b/Zend/tests/dead_array_type_inference.phpt @@ -13,6 +13,6 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/Zend/tests/dereference_007.phpt b/Zend/tests/dereference_007.phpt index 90fed2cfb883e..8c87c857aded5 100644 --- a/Zend/tests/dereference_007.phpt +++ b/Zend/tests/dereference_007.phpt @@ -33,5 +33,5 @@ print "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d ok diff --git a/Zend/tests/div_by_zero_compound_with_conversion.phpt b/Zend/tests/div_by_zero_compound_with_conversion.phpt index ba391328169fe..01ed100a9675e 100644 --- a/Zend/tests/div_by_zero_compound_with_conversion.phpt +++ b/Zend/tests/div_by_zero_compound_with_conversion.phpt @@ -10,5 +10,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $42 in %s on line %d +Warning: Undefined variable $42 (This will become an error in PHP 9.0) in %s on line %d Division by zero diff --git a/Zend/tests/dynamic_call_004.phpt b/Zend/tests/dynamic_call_004.phpt index e29671f711d78..8e25f75c5bd0f 100644 --- a/Zend/tests/dynamic_call_004.phpt +++ b/Zend/tests/dynamic_call_004.phpt @@ -7,7 +7,7 @@ $a::$b(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d Stack trace: diff --git a/Zend/tests/entry_block_with_predecessors.phpt b/Zend/tests/entry_block_with_predecessors.phpt index ee1dc16b78de5..22963d6a148fe 100644 --- a/Zend/tests/entry_block_with_predecessors.phpt +++ b/Zend/tests/entry_block_with_predecessors.phpt @@ -28,6 +28,6 @@ test2(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d int(1) int(2) diff --git a/Zend/tests/errmsg_045.phpt b/Zend/tests/errmsg_045.phpt index 4a75cf5df4168..fa2d5e227d312 100644 --- a/Zend/tests/errmsg_045.phpt +++ b/Zend/tests/errmsg_045.phpt @@ -17,4 +17,4 @@ eval('class A { private function __invoke() { } }'); string(%d) "The magic method A::__invoke() must have public visibility" string(%d) "%s(%d) : eval()'d code" -Warning: Undefined variable $undefined in %s on line %d +Warning: Undefined variable $undefined (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/error_reporting03.phpt b/Zend/tests/error_reporting03.phpt index d6c442bebb053..1a6f670a533ed 100644 --- a/Zend/tests/error_reporting03.phpt +++ b/Zend/tests/error_reporting03.phpt @@ -30,6 +30,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef2 in %s on line %d +Warning: Undefined variable $undef2 (This will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting04.phpt b/Zend/tests/error_reporting04.phpt index f53565de9e274..3ce7a16be9b08 100644 --- a/Zend/tests/error_reporting04.phpt +++ b/Zend/tests/error_reporting04.phpt @@ -18,6 +18,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting05.phpt b/Zend/tests/error_reporting05.phpt index 9ffd3971a1217..ede5f92796cc4 100644 --- a/Zend/tests/error_reporting05.phpt +++ b/Zend/tests/error_reporting05.phpt @@ -27,8 +27,8 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef_value in %s on line %d +Warning: Undefined variable $undef_value (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef_name in %s on line %d +Warning: Undefined variable $undef_name (This will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting08.phpt b/Zend/tests/error_reporting08.phpt index 2450abfc679df..ac081b8524538 100644 --- a/Zend/tests/error_reporting08.phpt +++ b/Zend/tests/error_reporting08.phpt @@ -27,6 +27,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef3 in %s on line %d +Warning: Undefined variable $undef3 (This will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting09.phpt b/Zend/tests/error_reporting09.phpt index 39e52adbf5476..142a724e8aa9e 100644 --- a/Zend/tests/error_reporting09.phpt +++ b/Zend/tests/error_reporting09.phpt @@ -24,8 +24,8 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $blah in %s on line %d +Warning: Undefined variable $blah (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef2 in %s on line %d +Warning: Undefined variable $undef2 (This will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/exception_before_fatal.phpt b/Zend/tests/exception_before_fatal.phpt index edc63b2394cdf..ef8c70de0feca 100644 --- a/Zend/tests/exception_before_fatal.phpt +++ b/Zend/tests/exception_before_fatal.phpt @@ -55,10 +55,10 @@ try { } ?> --EXPECT-- -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" diff --git a/Zend/tests/foreach_undefined.phpt b/Zend/tests/foreach_undefined.phpt index 47a1e3053fa38..26630303b7908 100644 --- a/Zend/tests/foreach_undefined.phpt +++ b/Zend/tests/foreach_undefined.phpt @@ -8,7 +8,7 @@ foreach($a as $val); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d Done diff --git a/Zend/tests/generators/errors/resume_running_generator_error_003.phpt b/Zend/tests/generators/errors/resume_running_generator_error_003.phpt index c72f9ba87258c..2463fd40aeedd 100644 --- a/Zend/tests/generators/errors/resume_running_generator_error_003.phpt +++ b/Zend/tests/generators/errors/resume_running_generator_error_003.phpt @@ -13,7 +13,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $y in %sresume_running_generator_error_003.php on line 4 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sresume_running_generator_error_003.php on line 4 Fatal error: Uncaught Error: Cannot resume an already running generator in %sresume_running_generator_error_003.php:4 Stack trace: diff --git a/Zend/tests/globals_001.phpt b/Zend/tests/globals_001.phpt index 7c54046212d07..8f412843c2477 100644 --- a/Zend/tests/globals_001.phpt +++ b/Zend/tests/globals_001.phpt @@ -29,6 +29,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_002.phpt b/Zend/tests/globals_002.phpt index faa9b94ade2fe..ef912bdffa470 100644 --- a/Zend/tests/globals_002.phpt +++ b/Zend/tests/globals_002.phpt @@ -32,6 +32,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_003.phpt b/Zend/tests/globals_003.phpt index 36e74bde64ba8..477c25b088445 100644 --- a/Zend/tests/globals_003.phpt +++ b/Zend/tests/globals_003.phpt @@ -38,6 +38,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_004.phpt b/Zend/tests/globals_004.phpt index 4c81e5e57a88f..d7705519f76fb 100644 --- a/Zend/tests/globals_004.phpt +++ b/Zend/tests/globals_004.phpt @@ -23,6 +23,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/ignore_repeated_errors.phpt b/Zend/tests/ignore_repeated_errors.phpt index b7744e16e9781..c8a06f17fbb8a 100644 --- a/Zend/tests/ignore_repeated_errors.phpt +++ b/Zend/tests/ignore_repeated_errors.phpt @@ -16,10 +16,10 @@ $u + 1; ?> --EXPECTF-- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u in %s on line %d +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u in %s on line %d +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/ignore_repeated_source.phpt b/Zend/tests/ignore_repeated_source.phpt index 23389474aee94..6c2322c053153 100644 --- a/Zend/tests/ignore_repeated_source.phpt +++ b/Zend/tests/ignore_repeated_source.phpt @@ -17,8 +17,8 @@ $u + 1; ?> --EXPECTF-- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u in %s on line %d +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/incdec_undef.phpt b/Zend/tests/incdec_undef.phpt index c3a18cb53529a..7c25a2f118626 100644 --- a/Zend/tests/incdec_undef.phpt +++ b/Zend/tests/incdec_undef.phpt @@ -15,11 +15,11 @@ unset($x); var_dump(++$x); ?> --EXPECT-- -Undefined variable $x +Undefined variable $x (This will become an error in PHP 9.0) NULL -Undefined variable $x +Undefined variable $x (This will become an error in PHP 9.0) NULL -Undefined variable $x +Undefined variable $x (This will become an error in PHP 9.0) NULL -Undefined variable $x +Undefined variable $x (This will become an error in PHP 9.0) int(1) diff --git a/Zend/tests/inference_infinite_loop.phpt b/Zend/tests/inference_infinite_loop.phpt index a0f56e2d2b0b9..6143e21f488ba 100644 --- a/Zend/tests/inference_infinite_loop.phpt +++ b/Zend/tests/inference_infinite_loop.phpt @@ -14,4 +14,4 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/isset_003.phpt b/Zend/tests/isset_003.phpt index 6979a847af74d..5090435275a66 100644 --- a/Zend/tests/isset_003.phpt +++ b/Zend/tests/isset_003.phpt @@ -29,9 +29,9 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $d in %s on line %d +Warning: Undefined variable $d (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/match/029.phpt b/Zend/tests/match/029.phpt index e4f9d64ea4189..fb3ec1337f967 100644 --- a/Zend/tests/match/029.phpt +++ b/Zend/tests/match/029.phpt @@ -16,7 +16,7 @@ echo "unreachable\n"; ?> --EXPECTF-- -Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar in %s029.php:4 +Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (This will become an error in PHP 9.0) in %s029.php:4 Stack trace: #0 %s029.php(7): {closure}(%d, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/match/030.phpt b/Zend/tests/match/030.phpt index 53588600bd7ce..dce6e0fd44088 100644 --- a/Zend/tests/match/030.phpt +++ b/Zend/tests/match/030.phpt @@ -16,7 +16,7 @@ echo "unreachable\n"; ?> --EXPECTF-- -Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar in %s030.php:4 +Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (This will become an error in PHP 9.0) in %s030.php:4 Stack trace: #0 %s030.php(7): {closure}(%d, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/match/042.phpt b/Zend/tests/match/042.phpt index 6ea30dd3764ce..5ffbb38ca77df 100644 --- a/Zend/tests/match/042.phpt +++ b/Zend/tests/match/042.phpt @@ -15,8 +15,8 @@ var_dump(match ($undefinedVariable) { ?> --EXPECTF-- -Warning: Undefined variable $undefinedVariable in %s.php on line 3 +Warning: Undefined variable $undefinedVariable (This will become an error in PHP 9.0) in %s.php on line 3 string(4) "null" -Warning: Undefined variable $undefinedVariable in %s.php on line 8 +Warning: Undefined variable $undefinedVariable (This will become an error in PHP 9.0) in %s.php on line 8 string(3) "bar" diff --git a/Zend/tests/method_argument_binding.phpt b/Zend/tests/method_argument_binding.phpt index 62720030349f0..8c7f9b076b3b1 100644 --- a/Zend/tests/method_argument_binding.phpt +++ b/Zend/tests/method_argument_binding.phpt @@ -43,4 +43,4 @@ class E extends D { --EXPECTF-- int(2) -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/named_params/undef_var.phpt b/Zend/tests/named_params/undef_var.phpt index 5ef41e26dd2cf..54cabedc1c878 100644 --- a/Zend/tests/named_params/undef_var.phpt +++ b/Zend/tests/named_params/undef_var.phpt @@ -10,8 +10,8 @@ function func2($arg) { var_dump($arg); } ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/nullsafe_operator/018.phpt b/Zend/tests/nullsafe_operator/018.phpt index 8d018f53bf11b..ce32defec2c7f 100644 --- a/Zend/tests/nullsafe_operator/018.phpt +++ b/Zend/tests/nullsafe_operator/018.phpt @@ -9,11 +9,11 @@ var_dump($foo); ?> --EXPECTF-- -Warning: Undefined variable $foo in %s.php on line 3 +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s.php on line 3 NULL -Warning: Undefined variable $foo in %s.php on line 4 +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s.php on line 4 NULL -Warning: Undefined variable $foo in %s.php on line 5 +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s.php on line 5 NULL diff --git a/Zend/tests/nullsafe_operator/025.phpt b/Zend/tests/nullsafe_operator/025.phpt index eadb906866c21..b16ebc4b49664 100644 --- a/Zend/tests/nullsafe_operator/025.phpt +++ b/Zend/tests/nullsafe_operator/025.phpt @@ -8,7 +8,7 @@ var_dump(${$a?->b}->c); ?> --EXPECTF-- -Warning: Undefined variable $ in %s on line %d +Warning: Undefined variable $ (This will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "c" on null in %s on line %d NULL diff --git a/Zend/tests/nullsafe_operator/039.phpt b/Zend/tests/nullsafe_operator/039.phpt index 92983c1592e0a..cf21f8b089b3f 100644 --- a/Zend/tests/nullsafe_operator/039.phpt +++ b/Zend/tests/nullsafe_operator/039.phpt @@ -15,4 +15,4 @@ try { ?> --EXPECT-- -Undefined variable $foo +Undefined variable $foo (This will become an error in PHP 9.0) diff --git a/Zend/tests/remove_predecessor_of_pi_node.phpt b/Zend/tests/remove_predecessor_of_pi_node.phpt index 6231f08b3f626..2935e680aae4d 100644 --- a/Zend/tests/remove_predecessor_of_pi_node.phpt +++ b/Zend/tests/remove_predecessor_of_pi_node.phpt @@ -11,4 +11,4 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $n in %s on line %d +Warning: Undefined variable $n (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/restore_error_reporting.phpt b/Zend/tests/restore_error_reporting.phpt index 9c02e71e350a7..6d5b550fc1f5f 100644 --- a/Zend/tests/restore_error_reporting.phpt +++ b/Zend/tests/restore_error_reporting.phpt @@ -8,7 +8,7 @@ var_dump($undef_var); ?> --EXPECTF-- -Warning: Undefined variable $undef_var in %s on line %d +Warning: Undefined variable $undef_var (This will become an error in PHP 9.0) in %s on line %d NULL Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/restrict_globals/valid.phpt b/Zend/tests/restrict_globals/valid.phpt index b99bbe402fdd6..b547913309de5 100644 --- a/Zend/tests/restrict_globals/valid.phpt +++ b/Zend/tests/restrict_globals/valid.phpt @@ -33,7 +33,7 @@ var_dump($x); ?> --EXPECTF-- -Warning: Undefined global variable $x in %s on line %d +Warning: Undefined global variable $x (This will become an error in PHP 9.0) in %s on line %d NULL int(1) int(2) @@ -41,7 +41,7 @@ int(4) bool(true) bool(false) -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d int(4) NULL array(1) { diff --git a/Zend/tests/str_offset_006.phpt b/Zend/tests/str_offset_006.phpt index 3cdf91656bd27..bdb688ab2cce7 100644 --- a/Zend/tests/str_offset_006.phpt +++ b/Zend/tests/str_offset_006.phpt @@ -10,7 +10,7 @@ $a[$y]=$a.=($y); var_dump($a); ?> --EXPECT-- -Err: Undefined variable $y -Err: Undefined variable $y +Err: Undefined variable $y (This will become an error in PHP 9.0) +Err: Undefined variable $y (This will become an error in PHP 9.0) Err: String offset cast occurred NULL diff --git a/Zend/tests/str_offset_007.phpt b/Zend/tests/str_offset_007.phpt index 3998ac401f637..159ea2701eaff 100644 --- a/Zend/tests/str_offset_007.phpt +++ b/Zend/tests/str_offset_007.phpt @@ -11,6 +11,6 @@ $a[0][$d]='b'; var_dump($a); ?> --EXPECT-- -Err: Undefined variable $d +Err: Undefined variable $d (This will become an error in PHP 9.0) Err: String offset cast occurred string(0) "" diff --git a/Zend/tests/str_offset_008.phpt b/Zend/tests/str_offset_008.phpt index e99e46e59e749..edd1ddfab1932 100644 --- a/Zend/tests/str_offset_008.phpt +++ b/Zend/tests/str_offset_008.phpt @@ -12,7 +12,7 @@ var_dump($a[0][$b]); var_dump($a); ?> --EXPECT-- -Err: Undefined variable $b +Err: Undefined variable $b (This will become an error in PHP 9.0) Err: String offset cast occurred string(1) "x" int(8) diff --git a/Zend/tests/this_in_extract.phpt b/Zend/tests/this_in_extract.phpt index 2e3f7b497fdbf..9ec2e35ec06ca 100644 --- a/Zend/tests/this_in_extract.phpt +++ b/Zend/tests/this_in_extract.phpt @@ -15,5 +15,5 @@ foo(); --EXPECTF-- Cannot re-assign $this -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/undef_index_to_exception.phpt b/Zend/tests/undef_index_to_exception.phpt index bbe13c0e71d04..8e7b2aefe617b 100644 --- a/Zend/tests/undef_index_to_exception.phpt +++ b/Zend/tests/undef_index_to_exception.phpt @@ -42,5 +42,5 @@ array(0) { Undefined array key "key" array(0) { } -Undefined global variable $test -Undefined variable $test +Undefined global variable $test (This will become an error in PHP 9.0) +Undefined variable $test (This will become an error in PHP 9.0) diff --git a/Zend/tests/undef_var_in_verify_return.phpt b/Zend/tests/undef_var_in_verify_return.phpt index b8c263c424cf4..16000260445f1 100644 --- a/Zend/tests/undef_var_in_verify_return.phpt +++ b/Zend/tests/undef_var_in_verify_return.phpt @@ -15,7 +15,7 @@ test(); ?> --EXPECTF-- -Fatal error: Uncaught ErrorException: Undefined variable $test in %s:%d +Fatal error: Uncaught ErrorException: Undefined variable $test (This will become an error in PHP 9.0) in %s:%d Stack trace: #0 %s(%d): {closure}(2, 'Undefined varia...', '%s', 8) #1 %s(%d): test() diff --git a/Zend/tests/unreachable_phi_cycle.phpt b/Zend/tests/unreachable_phi_cycle.phpt index 84bfec214bb85..aae59cf90895c 100644 --- a/Zend/tests/unreachable_phi_cycle.phpt +++ b/Zend/tests/unreachable_phi_cycle.phpt @@ -12,4 +12,4 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv01.phpt b/Zend/tests/unset_cv01.phpt index 55dac22e502a8..ca3ce5cfbfaad 100644 --- a/Zend/tests/unset_cv01.phpt +++ b/Zend/tests/unset_cv01.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv02.phpt b/Zend/tests/unset_cv02.phpt index 8e42005db3b0e..ee744cd4cf6ba 100644 --- a/Zend/tests/unset_cv02.phpt +++ b/Zend/tests/unset_cv02.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv03.phpt b/Zend/tests/unset_cv03.phpt index 87f04d50ca160..75d6de61141c4 100644 --- a/Zend/tests/unset_cv03.phpt +++ b/Zend/tests/unset_cv03.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv04.phpt b/Zend/tests/unset_cv04.phpt index e746059727244..4e415b1a79af1 100644 --- a/Zend/tests/unset_cv04.phpt +++ b/Zend/tests/unset_cv04.phpt @@ -13,4 +13,4 @@ f(); --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_non_array.phpt b/Zend/tests/unset_non_array.phpt index 5d7ad4d44b879..b7ad324156eb3 100644 --- a/Zend/tests/unset_non_array.phpt +++ b/Zend/tests/unset_non_array.phpt @@ -94,7 +94,7 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Deprecated: Automatic conversion of false to array is deprecated in %s Cannot unset offset in a non-array variable @@ -103,7 +103,7 @@ Cannot unset offset in a non-array variable Cannot unset string offsets Cannot use object of type stdClass as array -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d Deprecated: Automatic conversion of false to array is deprecated in %s Cannot unset offset in a non-array variable diff --git a/Zend/tests/warning_during_heredoc_scan_ahead.phpt b/Zend/tests/warning_during_heredoc_scan_ahead.phpt index a0becbb782a6d..bd85722c7804a 100644 --- a/Zend/tests/warning_during_heredoc_scan_ahead.phpt +++ b/Zend/tests/warning_during_heredoc_scan_ahead.phpt @@ -16,4 +16,4 @@ Warning: Octal escape sequence overflow \400 is greater than \377 in %s on line Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d -Warning: Undefined variable $ in %s on line %d +Warning: Undefined variable $ (This will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index b0f87eccb11c9..b999cc9550a65 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -269,7 +269,7 @@ static zend_never_inline ZEND_COLD zval* zval_undefined_cv(uint32_t var EXECUTE_ { if (EXPECTED(EG(exception) == NULL)) { zend_string *cv = CV_DEF_OF(EX_VAR_TO_NUM(var)); - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); } return &EG(uninitialized_zval); } @@ -3700,7 +3700,7 @@ static zend_never_inline void zend_fetch_this_var(int type OPLINE_DC EXECUTE_DAT Z_ADDREF_P(result); } else { ZVAL_NULL(result); - zend_error(E_WARNING, "Undefined variable $this"); + zend_error(E_WARNING, "Undefined variable $this (This will become an error in PHP 9.0)"); } break; case BP_VAR_IS: diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index 55f4af0e4aff1..a59dd85d262eb 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -1748,7 +1748,7 @@ ZEND_VM_C_LABEL(fetch_this): } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -1768,7 +1768,7 @@ ZEND_VM_C_LABEL(fetch_this): } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index 4714ab37101cc..fb729b7319fe5 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -9873,7 +9873,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -9893,7 +9893,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); @@ -17678,7 +17678,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -17698,7 +17698,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); @@ -47207,7 +47207,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -47227,7 +47227,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index b2539f5c3f429..a42e60fe59ee2 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -105,7 +105,7 @@ static ZEND_COLD void ZEND_FASTCALL zend_jit_invalid_method_call(zval *object) if (Z_TYPE_P(object) == IS_UNDEF && opline->op1_type == IS_CV) { zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(opline->op1.var)]; - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); if (UNEXPECTED(EG(exception) != NULL)) { return; } @@ -350,7 +350,7 @@ static int ZEND_FASTCALL zend_jit_undefined_op_helper(uint32_t var) const zend_execute_data *execute_data = EG(current_execute_data); zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(var)]; - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); return EG(exception) == NULL; } @@ -364,7 +364,7 @@ static int ZEND_FASTCALL zend_jit_undefined_op_helper_write(HashTable *ht, uint3 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { GC_ADDREF(ht); } - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { if (!GC_REFCOUNT(ht)) { zend_array_destroy(ht); @@ -2366,7 +2366,7 @@ static void ZEND_FASTCALL zend_jit_invalid_property_incdec(zval *container, cons if (Z_TYPE_P(container) == IS_UNDEF && opline->op1_type == IS_CV) { zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(opline->op1.var)]; - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); } if (opline->result_type & (IS_VAR|IS_TMP_VAR)) { ZVAL_UNDEF(EX_VAR(opline->result.var)); diff --git a/ext/opcache/tests/block_pass_001.phpt b/ext/opcache/tests/block_pass_001.phpt index e89460cc24a6e..1a80e0901e201 100644 --- a/ext/opcache/tests/block_pass_001.phpt +++ b/ext/opcache/tests/block_pass_001.phpt @@ -9,4 +9,4 @@ opcache (bool) new stdClass; ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/bool_not_cv.phpt b/ext/opcache/tests/bool_not_cv.phpt index d9ee583fbe2b1..24af0be3ef49f 100644 --- a/ext/opcache/tests/bool_not_cv.phpt +++ b/ext/opcache/tests/bool_not_cv.phpt @@ -26,9 +26,9 @@ undef_bool_cast(); --EXPECTF-- In undef_negation -Warning: Undefined variable $v in %s on line 4 +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line 4 true In undef_bool_cast -Warning: Undefined variable $v in %s on line 10 +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line 10 false diff --git a/ext/opcache/tests/bug73668.phpt b/ext/opcache/tests/bug73668.phpt index 6c2c61be44b53..e25745e806b3e 100644 --- a/ext/opcache/tests/bug73668.phpt +++ b/ext/opcache/tests/bug73668.phpt @@ -7,4 +7,4 @@ opcache $a/-1; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/bug76446.phpt b/ext/opcache/tests/bug76446.phpt index cb16347843ab8..8399496e0ab88 100644 --- a/ext/opcache/tests/bug76446.phpt +++ b/ext/opcache/tests/bug76446.phpt @@ -18,5 +18,5 @@ function test() var_dump(test()); ?> --EXPECTF-- -Warning: Undefined variable $addlang in %s on line %d +Warning: Undefined variable $addlang (This will become an error in PHP 9.0) in %s on line %d int(0) diff --git a/ext/opcache/tests/bug77058.phpt b/ext/opcache/tests/bug77058.phpt index e241281bd2daf..a63c05c282233 100644 --- a/ext/opcache/tests/bug77058.phpt +++ b/ext/opcache/tests/bug77058.phpt @@ -18,5 +18,5 @@ myfunc(); ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d '2' is expected to be 2 diff --git a/ext/opcache/tests/bug79412.phpt b/ext/opcache/tests/bug79412.phpt index 8830ba6621fa6..aad7125b74e0d 100644 --- a/ext/opcache/tests/bug79412.phpt +++ b/ext/opcache/tests/bug79412.phpt @@ -20,6 +20,6 @@ foreach ($foo as $bar) { } ?> --EXPECTF-- -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/ext/opcache/tests/jit/add_011.phpt b/ext/opcache/tests/jit/add_011.phpt index cd078629b30b0..9c84ba1f04498 100644 --- a/ext/opcache/tests/jit/add_011.phpt +++ b/ext/opcache/tests/jit/add_011.phpt @@ -20,181 +20,181 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-13) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-32) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-97) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-228) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-493) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1024) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-3073) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-7172) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-15373) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-31776) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-64609) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-130276) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-261613) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-524288) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1572865) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-3670020) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-7864333) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-16252960) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-33030241) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-66584804) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-133693933) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-267912192) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-536349697) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1073224708) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2146974733) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4294474784) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-8589474913) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-17179475172) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-34359475693) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-68719476736) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-206158430209) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-481036337156) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1030792151053) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2130303778848) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4329327034465) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-8727373545700) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-17523466568173) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-35115652613120) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-70300024704001) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-140668768885764) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-281406257249293) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-562881233976352) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1125831187430497) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2251731094338788) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4503530908155373) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-9007130535788544) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-18014329791578113) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-36028728303157252) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-72057525326315533) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-144115119372632096) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-288230307465265249) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-576460683650531556) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1152921436021064173) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2305842940762129408) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4611685950244260865) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-9223371969208523780) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 Deprecated: Implicit conversion from float %f to int loses precision in %sadd_011.php on line 5 int(66572500992) \ No newline at end of file diff --git a/ext/opcache/tests/jit/assign_022.phpt b/ext/opcache/tests/jit/assign_022.phpt index b3b1a2f0972d0..8f303808b3fc4 100644 --- a/ext/opcache/tests/jit/assign_022.phpt +++ b/ext/opcache/tests/jit/assign_022.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) 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 4ca6ebe106555..0df5d75cdd73a 100644 --- a/ext/opcache/tests/jit/assign_023.phpt +++ b/ext/opcache/tests/jit/assign_023.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) 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 2967e9aa09539..4dc99cc691767 100644 --- a/ext/opcache/tests/jit/assign_024.phpt +++ b/ext/opcache/tests/jit/assign_024.phpt @@ -20,5 +20,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) 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 2f69b0e87ad55..094e2876ca8f2 100644 --- a/ext/opcache/tests/jit/assign_025.phpt +++ b/ext/opcache/tests/jit/assign_025.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $ref in %s on line %d +Warning: Undefined variable $ref (This will become an error in PHP 9.0) in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_040.phpt b/ext/opcache/tests/jit/assign_040.phpt index 0c81506cbef27..eb83416859dbd 100644 --- a/ext/opcache/tests/jit/assign_040.phpt +++ b/ext/opcache/tests/jit/assign_040.phpt @@ -23,5 +23,5 @@ try { echo $e->getMessage(), "\n"; } --EXPECTF-- -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string diff --git a/ext/opcache/tests/jit/assign_043.phpt b/ext/opcache/tests/jit/assign_043.phpt index 5931ec4709a02..7d8af443e8a56 100644 --- a/ext/opcache/tests/jit/assign_043.phpt +++ b/ext/opcache/tests/jit/assign_043.phpt @@ -19,4 +19,4 @@ try { } ?> --EXPECT-- -Undefined variable $b +Undefined variable $b (This will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_046.phpt b/ext/opcache/tests/jit/assign_046.phpt index 201f619f11bdf..6e8066affbd70 100644 --- a/ext/opcache/tests/jit/assign_046.phpt +++ b/ext/opcache/tests/jit/assign_046.phpt @@ -20,19 +20,19 @@ test(); --EXPECTF-- NULL -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 diff --git a/ext/opcache/tests/jit/assign_047.phpt b/ext/opcache/tests/jit/assign_047.phpt index 302d465fdab62..66523c674ed20 100644 --- a/ext/opcache/tests/jit/assign_047.phpt +++ b/ext/opcache/tests/jit/assign_047.phpt @@ -20,6 +20,6 @@ test() ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sassign_047.php on line 5 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_047.php on line 5 DONE diff --git a/ext/opcache/tests/jit/assign_048.phpt b/ext/opcache/tests/jit/assign_048.phpt index a6bcf14933a78..e2fd3648a8495 100644 --- a/ext/opcache/tests/jit/assign_048.phpt +++ b/ext/opcache/tests/jit/assign_048.phpt @@ -21,23 +21,23 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 DONE diff --git a/ext/opcache/tests/jit/assign_053.phpt b/ext/opcache/tests/jit/assign_053.phpt index 6e785fa76f75c..f555f2fbe2f94 100644 --- a/ext/opcache/tests/jit/assign_053.phpt +++ b/ext/opcache/tests/jit/assign_053.phpt @@ -16,9 +16,9 @@ $test->x = " $y "; $r = &$test->x + ($r = $y); ?> --EXPECTF-- -Warning: Undefined variable $y in %sassign_053.php on line 6 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sassign_053.php on line 6 -Warning: Undefined variable $y in %sassign_053.php on line 7 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sassign_053.php on line 7 Fatal error: Uncaught TypeError: Cannot assign null to reference held by property Test::$x of type string in %sassign_053.php:7 Stack trace: diff --git a/ext/opcache/tests/jit/assign_dim_002.phpt b/ext/opcache/tests/jit/assign_dim_002.phpt index 3f713a6c6a6a9..34e32d114e65e 100644 --- a/ext/opcache/tests/jit/assign_dim_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_002.phpt @@ -223,5 +223,5 @@ array(1) { Deprecated: Automatic conversion of false to array is deprecated in %s on line %d Illegal offset type -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/opcache/tests/jit/assign_dim_003.phpt b/ext/opcache/tests/jit/assign_dim_003.phpt index 6f45fac5f0594..862da74d3bb38 100644 --- a/ext/opcache/tests/jit/assign_dim_003.phpt +++ b/ext/opcache/tests/jit/assign_dim_003.phpt @@ -16,5 +16,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $v in %sassign_dim_003.php on line 3 +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %sassign_dim_003.php on line 3 NULL \ No newline at end of file diff --git a/ext/opcache/tests/jit/assign_dim_004.phpt b/ext/opcache/tests/jit/assign_dim_004.phpt index f8d845221b5f7..38a7a3e8d8672 100644 --- a/ext/opcache/tests/jit/assign_dim_004.phpt +++ b/ext/opcache/tests/jit/assign_dim_004.phpt @@ -22,5 +22,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d offsetSet(, 1) diff --git a/ext/opcache/tests/jit/assign_dim_005.phpt b/ext/opcache/tests/jit/assign_dim_005.phpt index 2056ba0554333..ac76baeeaaced 100644 --- a/ext/opcache/tests/jit/assign_dim_005.phpt +++ b/ext/opcache/tests/jit/assign_dim_005.phpt @@ -17,6 +17,6 @@ $a[$c] = 'x' ; var_dump($a); ?> --EXPECT-- -Error: Undefined variable $c -Error: Undefined variable $c +Error: Undefined variable $c (This will become an error in PHP 9.0) +Error: Undefined variable $c (This will become an error in PHP 9.0) NULL diff --git a/ext/opcache/tests/jit/assign_dim_010.phpt b/ext/opcache/tests/jit/assign_dim_010.phpt index 3da83cc614e14..56770835ffa96 100644 --- a/ext/opcache/tests/jit/assign_dim_010.phpt +++ b/ext/opcache/tests/jit/assign_dim_010.phpt @@ -18,7 +18,7 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sassign_dim_010.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 -Warning: Undefined variable $y in %sassign_dim_010.php on line 4 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 DONE diff --git a/ext/opcache/tests/jit/assign_dim_014.phpt b/ext/opcache/tests/jit/assign_dim_014.phpt index d5680a4b60764..a51fc103e26fc 100644 --- a/ext/opcache/tests/jit/assign_dim_014.phpt +++ b/ext/opcache/tests/jit/assign_dim_014.phpt @@ -15,5 +15,5 @@ $a[$y] = function(){}; ?> DONE --EXPECT-- -Error: Undefined variable $y +Error: Undefined variable $y (This will become an error in PHP 9.0) DONE diff --git a/ext/opcache/tests/jit/assign_dim_015.phpt b/ext/opcache/tests/jit/assign_dim_015.phpt index fd37d84764d0a..08a34768595eb 100644 --- a/ext/opcache/tests/jit/assign_dim_015.phpt +++ b/ext/opcache/tests/jit/assign_dim_015.phpt @@ -15,5 +15,5 @@ $my_var[] = $y; ?> DONE --EXPECT-- -Error: Undefined variable $y +Error: Undefined variable $y (This will become an error in PHP 9.0) DONE diff --git a/ext/opcache/tests/jit/assign_dim_op_002.phpt b/ext/opcache/tests/jit/assign_dim_op_002.phpt index 6ade1a67912b5..45a5a79fb929e 100644 --- a/ext/opcache/tests/jit/assign_dim_op_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_002.phpt @@ -12,4 +12,4 @@ opcache $a[] &= 1; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/jit/assign_dim_op_003.phpt b/ext/opcache/tests/jit/assign_dim_op_003.phpt index 840f11782c5f5..45b0468948c1e 100644 --- a/ext/opcache/tests/jit/assign_dim_op_003.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_003.phpt @@ -13,4 +13,4 @@ $a[] &= $b; --EXTENSIONS-- opcache --EXPECTF-- -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/jit/assign_dim_op_005.phpt b/ext/opcache/tests/jit/assign_dim_op_005.phpt index 62af633eb3122..389fb1fc2090a 100644 --- a/ext/opcache/tests/jit/assign_dim_op_005.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_005.phpt @@ -28,5 +28,5 @@ try { } ?> --EXPECT-- -Undefined variable $undef -Undefined variable $a +Undefined variable $undef (This will become an error in PHP 9.0) +Undefined variable $a (This will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_dim_undef_exception.phpt b/ext/opcache/tests/jit/assign_dim_undef_exception.phpt index 00bb22a3a9a6c..e047dbf755923 100644 --- a/ext/opcache/tests/jit/assign_dim_undef_exception.phpt +++ b/ext/opcache/tests/jit/assign_dim_undef_exception.phpt @@ -34,5 +34,5 @@ try { } ?> --EXPECT-- -Undefined variable $undef -Undefined variable $undef +Undefined variable $undef (This will become an error in PHP 9.0) +Undefined variable $undef (This will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_obj_002.phpt b/ext/opcache/tests/jit/assign_obj_002.phpt index 37f03cea81645..2f501ddc07aca 100644 --- a/ext/opcache/tests/jit/assign_obj_002.phpt +++ b/ext/opcache/tests/jit/assign_obj_002.phpt @@ -29,8 +29,8 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to property Test::$prop2 of type int diff --git a/ext/opcache/tests/jit/bool_not_002.phpt b/ext/opcache/tests/jit/bool_not_002.phpt index 593df335e6137..307c08825692c 100644 --- a/ext/opcache/tests/jit/bool_not_002.phpt +++ b/ext/opcache/tests/jit/bool_not_002.phpt @@ -19,9 +19,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sbool_not_002.php on line 6 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sbool_not_002.php on line 6 -Warning: Undefined variable $a in %sbool_not_002.php on line 6 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sbool_not_002.php on line 6 Deprecated: Implicit conversion from float %f to int loses precision in %sbool_not_002.php on line 6 diff --git a/ext/opcache/tests/jit/bw_not_001.phpt b/ext/opcache/tests/jit/bw_not_001.phpt index a36ab8bf41af7..3707c7fcaa28e 100644 --- a/ext/opcache/tests/jit/bw_not_001.phpt +++ b/ext/opcache/tests/jit/bw_not_001.phpt @@ -12,9 +12,9 @@ $x[~"$x"]*=1; ?> DONE --EXPECTF-- -Warning: Undefined variable $x in %sbw_not_001.php on line 2 +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %sbw_not_001.php on line 2 -Warning: Undefined variable $x in %sbw_not_001.php on line 2 +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %sbw_not_001.php on line 2 Warning: Undefined array key "" in %sbw_not_001.php on line 2 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/cmp_006.phpt b/ext/opcache/tests/jit/cmp_006.phpt index aeaab45852006..a43ccbfc759f5 100644 --- a/ext/opcache/tests/jit/cmp_006.phpt +++ b/ext/opcache/tests/jit/cmp_006.phpt @@ -44,14 +44,14 @@ test3(false); test4(false); ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d bool(false) diff --git a/ext/opcache/tests/jit/cmp_008.phpt b/ext/opcache/tests/jit/cmp_008.phpt index 6216de5527726..3aa00aaa23558 100644 --- a/ext/opcache/tests/jit/cmp_008.phpt +++ b/ext/opcache/tests/jit/cmp_008.phpt @@ -15,9 +15,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %scmp_008.php on line 3 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %scmp_008.php on line 3 -Warning: Undefined variable $a in %scmp_008.php on line 3 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %scmp_008.php on line 3 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %scmp_008.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/fe_reset_001.phpt b/ext/opcache/tests/jit/fe_reset_001.phpt index 164e5731ead8e..3ff823d528e6f 100644 --- a/ext/opcache/tests/jit/fe_reset_001.phpt +++ b/ext/opcache/tests/jit/fe_reset_001.phpt @@ -14,23 +14,23 @@ for ($i = 0; $i < 5; $i++) { ?> OK --EXPECTF-- -Warning: Undefined variable $0 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $0 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $1 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $1 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $2 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $2 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $3 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $3 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $4 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $4 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 OK diff --git a/ext/opcache/tests/jit/fe_reset_undef.phpt b/ext/opcache/tests/jit/fe_reset_undef.phpt index ca8b5109b7fcf..c97dc3377535e 100644 --- a/ext/opcache/tests/jit/fe_reset_undef.phpt +++ b/ext/opcache/tests/jit/fe_reset_undef.phpt @@ -16,6 +16,6 @@ function test($c) { test(false); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt index 1402d63bb025d..3356ddd5a3a22 100644 --- a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt +++ b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt @@ -17,7 +17,7 @@ function foo() { var_dump(foo()); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %sfetch_dim_rw_001.php on line 3 diff --git a/ext/opcache/tests/jit/fetch_obj_008.phpt b/ext/opcache/tests/jit/fetch_obj_008.phpt index 38c5b8a539889..0f4a0d635aac2 100644 --- a/ext/opcache/tests/jit/fetch_obj_008.phpt +++ b/ext/opcache/tests/jit/fetch_obj_008.phpt @@ -25,7 +25,7 @@ $a->prop = new B; ?> DONE --EXPECTF-- -Warning: Undefined variable $e in %sfetch_obj_008.php on line 9 +Warning: Undefined variable $e (This will become an error in PHP 9.0) in %sfetch_obj_008.php on line 9 Warning: Attempt to read property "prop" on string in %sfetch_obj_008.php on line 10 DONE diff --git a/ext/opcache/tests/jit/inc_obj_005.phpt b/ext/opcache/tests/jit/inc_obj_005.phpt index fe559218871c3..f02b596e0c5e1 100644 --- a/ext/opcache/tests/jit/inc_obj_005.phpt +++ b/ext/opcache/tests/jit/inc_obj_005.phpt @@ -11,7 +11,7 @@ opcache.protect_memory=1 json_encode($y)->y++; ?> --EXPECTF-- -Warning: Undefined variable $y in %sinc_obj_005.php on line 2 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sinc_obj_005.php on line 2 Fatal error: Uncaught Error: Attempt to increment/decrement property "y" on string in %sinc_obj_005.php:2 Stack trace: diff --git a/ext/opcache/tests/jit/isset_001.phpt b/ext/opcache/tests/jit/isset_001.phpt index 2ed9377d396ac..7851df64d205d 100644 --- a/ext/opcache/tests/jit/isset_001.phpt +++ b/ext/opcache/tests/jit/isset_001.phpt @@ -13,5 +13,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d bool(false) diff --git a/ext/opcache/tests/jit/mul_009.phpt b/ext/opcache/tests/jit/mul_009.phpt index 51789527115f2..9e5491a4f375d 100644 --- a/ext/opcache/tests/jit/mul_009.phpt +++ b/ext/opcache/tests/jit/mul_009.phpt @@ -12,7 +12,7 @@ $x[""][] = 1; $x[~"$y"] *= 1; ?> --EXPECTF-- -Warning: Undefined variable $y in %smul_009.php on line 3 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %smul_009.php on line 3 Fatal error: Uncaught TypeError: Unsupported operand types: array * int in %smul_009.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/qm_assign_002.phpt b/ext/opcache/tests/jit/qm_assign_002.phpt index ebfb46e227eae..dfd8759c76d81 100644 --- a/ext/opcache/tests/jit/qm_assign_002.phpt +++ b/ext/opcache/tests/jit/qm_assign_002.phpt @@ -19,11 +19,11 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sqm_assign_002.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 -Warning: Undefined variable $b in %sqm_assign_002.php on line 5 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sqm_assign_002.php on line 5 -Warning: Undefined variable $a in %sqm_assign_002.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 Warning: Array to string conversion in %sqm_assign_002.php on line 5 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/qm_assign_undef_exception.phpt b/ext/opcache/tests/jit/qm_assign_undef_exception.phpt index 8e9e4699beec6..15ae53d727e6c 100644 --- a/ext/opcache/tests/jit/qm_assign_undef_exception.phpt +++ b/ext/opcache/tests/jit/qm_assign_undef_exception.phpt @@ -19,4 +19,4 @@ try { } ?> --EXPECT-- -Undefined variable $b +Undefined variable $b (This will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/reg_alloc_004.phpt b/ext/opcache/tests/jit/reg_alloc_004.phpt index 78e4a79f13b7d..737ac574d3281 100644 --- a/ext/opcache/tests/jit/reg_alloc_004.phpt +++ b/ext/opcache/tests/jit/reg_alloc_004.phpt @@ -22,13 +22,13 @@ function createTree($depth) { createTree(4); ?> --EXPECTF-- -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 Fatal error: Uncaught Error: First array member is not a valid class name or object in %sreg_alloc_004.php:7 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_006.phpt b/ext/opcache/tests/jit/reg_alloc_006.phpt index 4f4c3fb5fa2b4..4c2f30896f501 100644 --- a/ext/opcache/tests/jit/reg_alloc_006.phpt +++ b/ext/opcache/tests/jit/reg_alloc_006.phpt @@ -18,17 +18,17 @@ foo() ?> DONE --EXPECTF-- -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_007.phpt b/ext/opcache/tests/jit/reg_alloc_007.phpt index 2c9f13943d770..03bbb0ca872ed 100644 --- a/ext/opcache/tests/jit/reg_alloc_007.phpt +++ b/ext/opcache/tests/jit/reg_alloc_007.phpt @@ -17,7 +17,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sreg_alloc_007.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sreg_alloc_007.php on line 4 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %sreg_alloc_007.php:6 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_008.phpt b/ext/opcache/tests/jit/reg_alloc_008.phpt index f71578ab4307c..9f4936c7ecca5 100644 --- a/ext/opcache/tests/jit/reg_alloc_008.phpt +++ b/ext/opcache/tests/jit/reg_alloc_008.phpt @@ -14,4 +14,4 @@ function foo($a) { foo(7); ?> --EXPECTF-- -Warning: Undefined variable $y in %sreg_alloc_008.php on line 4 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_008.php on line 4 diff --git a/ext/opcache/tests/jit/reg_alloc_009.phpt b/ext/opcache/tests/jit/reg_alloc_009.phpt index dfcbfc086f85f..7127f0442671f 100644 --- a/ext/opcache/tests/jit/reg_alloc_009.phpt +++ b/ext/opcache/tests/jit/reg_alloc_009.phpt @@ -15,7 +15,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $j in %sreg_alloc_009.php on line 4 +Warning: Undefined variable $j (This will become an error in PHP 9.0) in %sreg_alloc_009.php on line 4 Fatal error: Uncaught ArithmeticError: Bit shift by negative number in %sreg_alloc_009.php:4 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_010.phpt b/ext/opcache/tests/jit/reg_alloc_010.phpt index d14b107295346..5ebfc371ffc73 100644 --- a/ext/opcache/tests/jit/reg_alloc_010.phpt +++ b/ext/opcache/tests/jit/reg_alloc_010.phpt @@ -18,7 +18,7 @@ foo(null); ?> DONE --EXPECTF-- -Warning: Undefined variable $cnt in %sreg_alloc_010.php on line 3 +Warning: Undefined variable $cnt (This will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 -Warning: Undefined variable $cnt in %sreg_alloc_010.php on line 3 +Warning: Undefined variable $cnt (This will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_013.phpt b/ext/opcache/tests/jit/reg_alloc_013.phpt index 01d4640ddc8ac..de213f6538e56 100644 --- a/ext/opcache/tests/jit/reg_alloc_013.phpt +++ b/ext/opcache/tests/jit/reg_alloc_013.phpt @@ -15,5 +15,5 @@ foo(); ?> DONE --EXPECTF-- -Warning: Undefined variable $j in %sreg_alloc_013.php on line 3 +Warning: Undefined variable $j (This will become an error in PHP 9.0) in %sreg_alloc_013.php on line 3 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_014.phpt b/ext/opcache/tests/jit/reg_alloc_014.phpt index 03b7ae0667c1f..a073a32e8f6e5 100644 --- a/ext/opcache/tests/jit/reg_alloc_014.phpt +++ b/ext/opcache/tests/jit/reg_alloc_014.phpt @@ -17,5 +17,5 @@ foo(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sreg_alloc_014.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sreg_alloc_014.php on line 4 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_015.phpt b/ext/opcache/tests/jit/reg_alloc_015.phpt index 579b34dadcc70..b05fb618dc7e6 100644 --- a/ext/opcache/tests/jit/reg_alloc_015.phpt +++ b/ext/opcache/tests/jit/reg_alloc_015.phpt @@ -16,7 +16,7 @@ foo() ?> DONE --EXPECTF-- -Warning: Undefined variable $y in %sreg_alloc_015.php on line 3 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 -Warning: Undefined variable $y in %sreg_alloc_015.php on line 3 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 DONE diff --git a/ext/opcache/tests/jit/send_val_002.phpt b/ext/opcache/tests/jit/send_val_002.phpt index 6268af8f736c3..1ecdea292ac92 100644 --- a/ext/opcache/tests/jit/send_val_002.phpt +++ b/ext/opcache/tests/jit/send_val_002.phpt @@ -13,7 +13,7 @@ function o(){ o(); ?> --EXPECTF-- -Warning: Undefined variable $x in %ssend_val_002.php on line 3 +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %ssend_val_002.php on line 3 Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %ssend_val_002.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/shift_right_004.phpt b/ext/opcache/tests/jit/shift_right_004.phpt index 8b1c8069984f6..0790dce01f351 100644 --- a/ext/opcache/tests/jit/shift_right_004.phpt +++ b/ext/opcache/tests/jit/shift_right_004.phpt @@ -21,11 +21,11 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sshift_right_004.php on line 8 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sshift_right_004.php on line 8 -Warning: Undefined variable $a in %sshift_right_004.php on line 8 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sshift_right_004.php on line 8 -Warning: Undefined variable $c in %sshift_right_004.php on line 7 +Warning: Undefined variable $c (This will become an error in PHP 9.0) in %sshift_right_004.php on line 7 Warning: Undefined array key 0 in %sshift_right_004.php on line 7 diff --git a/ext/opcache/tests/jit/type_check_001.phpt b/ext/opcache/tests/jit/type_check_001.phpt index 4d37ba7b9762a..fcd0cb5206a07 100644 --- a/ext/opcache/tests/jit/type_check_001.phpt +++ b/ext/opcache/tests/jit/type_check_001.phpt @@ -22,4 +22,4 @@ try { } ?> --EXPECT-- -Exception: Undefined variable $a +Exception: Undefined variable $a (This will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/undef_to_typed_ref.phpt b/ext/opcache/tests/jit/undef_to_typed_ref.phpt index da749329fcb47..3c6e94610bce5 100644 --- a/ext/opcache/tests/jit/undef_to_typed_ref.phpt +++ b/ext/opcache/tests/jit/undef_to_typed_ref.phpt @@ -88,20 +88,20 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string diff --git a/ext/opcache/tests/jit/verify_return_undef.phpt b/ext/opcache/tests/jit/verify_return_undef.phpt index 0ec68d1aa45d3..5617ade1fc0dd 100644 --- a/ext/opcache/tests/jit/verify_return_undef.phpt +++ b/ext/opcache/tests/jit/verify_return_undef.phpt @@ -20,5 +20,5 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d test(): Return value must be of type int, null returned diff --git a/ext/opcache/tests/jmpz_jmp_elim.phpt b/ext/opcache/tests/jmpz_jmp_elim.phpt index cb25196ae5d3d..1d6f32f1c0eee 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-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d done diff --git a/ext/opcache/tests/opt/assign_op_001.phpt b/ext/opcache/tests/opt/assign_op_001.phpt index 7ac23d71c0d17..b99e76500eecd 100644 --- a/ext/opcache/tests/opt/assign_op_001.phpt +++ b/ext/opcache/tests/opt/assign_op_001.phpt @@ -17,9 +17,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sassign_op_001.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_op_001.php on line 4 -Warning: Undefined variable $a in %sassign_op_001.php on line 4 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_op_001.php on line 4 Warning: Undefined array key "b" in %sassign_op_001.php on line 7 diff --git a/ext/opcache/tests/opt/coalesce_002.phpt b/ext/opcache/tests/opt/coalesce_002.phpt index c3a05d22e7a16..3d507c453b9ba 100644 --- a/ext/opcache/tests/opt/coalesce_002.phpt +++ b/ext/opcache/tests/opt/coalesce_002.phpt @@ -12,7 +12,7 @@ function t() { t(); ?> --EXPECTF-- -Warning: Undefined variable $a in %scoalesce_002.php on line 3 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %scoalesce_002.php on line 3 Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %scoalesce_002.php:3 Stack trace: diff --git a/ext/opcache/tests/opt/dce_011.phpt b/ext/opcache/tests/opt/dce_011.phpt index da06d48a3ce53..a07ca323f330e 100644 --- a/ext/opcache/tests/opt/dce_011.phpt +++ b/ext/opcache/tests/opt/dce_011.phpt @@ -6,7 +6,7 @@ Incorrect DCE of ADD_ARRAY_ELEMENT ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sdce_011.php on line 2 +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sdce_011.php on line 2 -Warning: Undefined variable $b in %sdce_011.php on line 2 +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sdce_011.php on line 2 DONE diff --git a/ext/opcache/tests/opt/inference_001.phpt b/ext/opcache/tests/opt/inference_001.phpt index 1005d28408f9e..141e70853d9df 100644 --- a/ext/opcache/tests/opt/inference_001.phpt +++ b/ext/opcache/tests/opt/inference_001.phpt @@ -28,13 +28,13 @@ test2(); ?> DONE --EXPECTF-- -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "x" on null in %s on line %d Warning: Undefined property: stdClass::$x in %s on line %d -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "x" on null in %s on line %d DONE diff --git a/ext/opcache/tests/opt/sccp_034.phpt b/ext/opcache/tests/opt/sccp_034.phpt index 8fafc89178a64..390bb216ae672 100644 --- a/ext/opcache/tests/opt/sccp_034.phpt +++ b/ext/opcache/tests/opt/sccp_034.phpt @@ -10,7 +10,7 @@ is_array(["$y $y"]); ?> DONE --EXPECTF-- -Warning: Undefined variable $y in %ssccp_034.php on line 2 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %ssccp_034.php on line 2 -Warning: Undefined variable $y in %ssccp_034.php on line 2 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %ssccp_034.php on line 2 DONE diff --git a/ext/opcache/tests/opt/sccp_040.phpt b/ext/opcache/tests/opt/sccp_040.phpt index 2f075f5846250..0dfbdafa64581 100644 --- a/ext/opcache/tests/opt/sccp_040.phpt +++ b/ext/opcache/tests/opt/sccp_040.phpt @@ -13,7 +13,7 @@ function f() { f(); ?> --EXPECTF-- -Warning: Undefined variable $y in %ssccp_040.php on line 3 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %ssccp_040.php on line 3 Fatal error: Uncaught Error: Array callback must have exactly two elements in %ssccp_040.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/tmp_001.phpt b/ext/opcache/tests/opt/tmp_001.phpt index 83b679f5f76f1..5f636cd8324a1 100644 --- a/ext/opcache/tests/opt/tmp_001.phpt +++ b/ext/opcache/tests/opt/tmp_001.phpt @@ -9,7 +9,7 @@ opcache.optimization_level=-1 is_a((int)" $y " + 0); ?> --EXPECTF-- -Warning: Undefined variable $y in %stmp_001.php on line 2 +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %stmp_001.php on line 2 Fatal error: Uncaught ArgumentCountError: is_a() expects at least 2 arguments, 1 given in %stmp_001.php:2 Stack trace: diff --git a/ext/opcache/tests/wrong_inlining_003.phpt b/ext/opcache/tests/wrong_inlining_003.phpt index 744caa257d057..793a8f25437f3 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-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d int(42) diff --git a/ext/pdo_sqlite/tests/bug43831.phpt b/ext/pdo_sqlite/tests/bug43831.phpt index 6dc68f6f6a8f6..5ad4de0a1dce5 100644 --- a/ext/pdo_sqlite/tests/bug43831.phpt +++ b/ext/pdo_sqlite/tests/bug43831.phpt @@ -49,5 +49,5 @@ object(PDO)#%d (0) { object(MyPDO)#%d (0) { } -Warning: Undefined variable $bar in %s on line %d +Warning: Undefined variable $bar (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/pgsql/tests/bug72195.phpt b/ext/pgsql/tests/bug72195.phpt index 560aaf458cfae..00de91e7948ca 100644 --- a/ext/pgsql/tests/bug72195.phpt +++ b/ext/pgsql/tests/bug72195.phpt @@ -14,5 +14,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $var1 in %s on line %d +Warning: Undefined variable $var1 (This will become an error in PHP 9.0) in %s on line %d pg_pconnect() expects at most 2 arguments, 4 given diff --git a/ext/reflection/tests/ReflectionParameter_003.phpt b/ext/reflection/tests/ReflectionParameter_003.phpt index 16a422caa4b6f..33a2ca247e1bd 100644 --- a/ext/reflection/tests/ReflectionParameter_003.phpt +++ b/ext/reflection/tests/ReflectionParameter_003.phpt @@ -56,7 +56,7 @@ foreach($refParameters as $parameter) { hello from test third is jack -Warning: Undefined variable $theIncrement in %s on line %d +Warning: Undefined variable $theIncrement (This will become an error in PHP 9.0) in %s on line %d parameter names from staticMethod method: object(ReflectionParameter)#%d (1) { diff --git a/ext/session/tests/session_decode_variation3.phpt b/ext/session/tests/session_decode_variation3.phpt index f1384d9cacfe3..1d0d46cfda77d 100644 --- a/ext/session/tests/session_decode_variation3.phpt +++ b/ext/session/tests/session_decode_variation3.phpt @@ -33,7 +33,7 @@ ob_end_flush(); Warning: session_start(): Cannot find session serialization handler "blah" - session startup failed in %s on line %d bool(false) -Warning: Undefined global variable $_SESSION in %s on line %d +Warning: Undefined global variable $_SESSION (This will become an error in PHP 9.0) in %s on line %d NULL array(3) { ["foo"]=> diff --git a/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt b/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt index d0cff503fd5cf..3e7ff2e890e7f 100644 --- a/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt +++ b/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt @@ -45,7 +45,7 @@ var_dump(session_id(), $oldHandler, ini_get('session.save_handler'), $handler->i Open: SessionHandler::open() expects exactly 2 arguments, 0 given -Warning: Undefined global variable $_SESSION in %s on line %d +Warning: Undefined global variable $_SESSION (This will become an error in PHP 9.0) in %s on line %d string(0) "" string(5) "files" string(4) "user" diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt index b111b0bfb34a0..f48fe517df34c 100644 --- a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt +++ b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt @@ -17,5 +17,5 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d simplexml_load_string(): Argument #3 ($options) is too large diff --git a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt index 49b990be8bdf2..903e3c669c1be 100644 --- a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt +++ b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt @@ -84,7 +84,7 @@ array(2) { --> exchangeArray() with no arg: Exception: ArrayObject::exchangeArray() expects exactly 1 argument, 0 given -Warning: Undefined variable $copy in %s on line %d +Warning: Undefined variable $copy (This will become an error in PHP 9.0) in %s on line %d object(ArrayObject)#2 (1) { ["storage":"ArrayObject":private]=> object(C)#3 (2) { @@ -106,7 +106,7 @@ NULL --> exchangeArray() with bad arg type: ArrayObject::exchangeArray(): Argument #1 ($array) must be of type array, null given -Warning: Undefined variable $copy in %s on line %d +Warning: Undefined variable $copy (This will become an error in PHP 9.0) in %s on line %d object(ArrayObject)#3 (1) { ["storage":"ArrayObject":private]=> object(C)#2 (2) { diff --git a/ext/spl/tests/array_026.phpt b/ext/spl/tests/array_026.phpt index 268b39d5e8edd..60b43695c0cfa 100644 --- a/ext/spl/tests/array_026.phpt +++ b/ext/spl/tests/array_026.phpt @@ -8,7 +8,7 @@ $test['d1']['d3'] = 'world'; var_dump($test, $test3['mmmmm']); ?> --EXPECTF-- -Warning: Undefined variable $test3 in %s on line %d +Warning: Undefined variable $test3 (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d object(ArrayObject)#1 (1) { diff --git a/ext/spl/tests/bug62978.phpt b/ext/spl/tests/bug62978.phpt index 073530926a6f1..17e6ee5edc9ff 100644 --- a/ext/spl/tests/bug62978.phpt +++ b/ext/spl/tests/bug62978.phpt @@ -32,7 +32,7 @@ NULL Warning: Undefined array key "epic_magic" in %s on line %d NULL -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL diff --git a/ext/spl/tests/bug72888.phpt b/ext/spl/tests/bug72888.phpt index 5ca99a40a5133..8d9e964ac60e9 100644 --- a/ext/spl/tests/bug72888.phpt +++ b/ext/spl/tests/bug72888.phpt @@ -14,5 +14,5 @@ var_dump($y); --EXPECTF-- string(60) "Trying to clone an uncloneable object of class SplFileObject" -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/standard/array.c b/ext/standard/array.c index 6252b61d2042a..0de5dacf591e5 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2478,7 +2478,7 @@ static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_valu zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data); } } else { - php_error_docref(NULL, E_WARNING, "Undefined variable $%s", ZSTR_VAL(Z_STR_P(entry))); + php_error_docref(NULL, E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(Z_STR_P(entry))); } } else if (Z_TYPE_P(entry) == IS_ARRAY) { if (Z_REFCOUNTED_P(entry)) { diff --git a/ext/standard/tests/array/array_fill_keys_variation4.phpt b/ext/standard/tests/array/array_fill_keys_variation4.phpt index b243a5fb08bc7..42e5abe3242e5 100644 --- a/ext/standard/tests/array/array_fill_keys_variation4.phpt +++ b/ext/standard/tests/array/array_fill_keys_variation4.phpt @@ -77,7 +77,7 @@ array(1) { -- Testing array_fill_keys() function with unset var -- -Warning: Undefined variable $unset_var in %s on line %d +Warning: Undefined variable $unset_var (This will become an error in PHP 9.0) in %s on line %d array(1) { ["one"]=> NULL diff --git a/ext/standard/tests/array/bug30074.phpt b/ext/standard/tests/array/bug30074.phpt index 05546f3d1d312..7087050dd0f32 100644 --- a/ext/standard/tests/array/bug30074.phpt +++ b/ext/standard/tests/array/bug30074.phpt @@ -7,7 +7,7 @@ var_dump(array($a)); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undefined in %s on line %d +Warning: Undefined variable $undefined (This will become an error in PHP 9.0) in %s on line %d array(1) { [0]=> NULL diff --git a/ext/standard/tests/array/bug69198.phpt b/ext/standard/tests/array/bug69198.phpt index ab43df7e5cb6b..36a858461351e 100644 --- a/ext/standard/tests/array/bug69198.phpt +++ b/ext/standard/tests/array/bug69198.phpt @@ -9,7 +9,7 @@ $result = compact('willNeverBeDefined'); var_dump($result, empty($result), $result === array(), empty($willNeverBeDefined)); ?> --EXPECTF-- -Warning: compact(): Undefined variable $willNeverBeDefined in %s on line %d +Warning: compact(): Undefined variable $willNeverBeDefined (This will become an error in PHP 9.0) in %s on line %d array(0) { } bool(true) diff --git a/ext/standard/tests/array/compact.phpt b/ext/standard/tests/array/compact.phpt index d4c6236c03e47..bfe2f472bb42d 100644 --- a/ext/standard/tests/array/compact.phpt +++ b/ext/standard/tests/array/compact.phpt @@ -20,7 +20,7 @@ var_dump($result); ?> --EXPECTF-- -Warning: compact(): Undefined variable $c\u0327ity in %s on line %d +Warning: compact(): Undefined variable $c\u0327ity (This will become an error in PHP 9.0) in %s on line %d array(2) { ["event"]=> string(8) "SIGGRAPH" diff --git a/ext/standard/tests/array/compact_basic.phpt b/ext/standard/tests/array/compact_basic.phpt index ec9935b56acdc..eb62490540201 100644 --- a/ext/standard/tests/array/compact_basic.phpt +++ b/ext/standard/tests/array/compact_basic.phpt @@ -67,7 +67,7 @@ array(2) { float(0.2) } -Warning: compact(): Undefined variable $g in %s on line %d +Warning: compact(): Undefined variable $g (This will become an error in PHP 9.0) in %s on line %d array(0) { } Done diff --git a/ext/standard/tests/array/compact_variation2.phpt b/ext/standard/tests/array/compact_variation2.phpt index 2e3661d50b90b..ee1444ca4395b 100644 --- a/ext/standard/tests/array/compact_variation2.phpt +++ b/ext/standard/tests/array/compact_variation2.phpt @@ -20,7 +20,7 @@ f(); --EXPECTF-- *** Testing compact() : usage variations - variables outside of current scope *** -Warning: compact(): Undefined variable $a in %s on line %d +Warning: compact(): Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d array(2) { ["b"]=> string(3) "f.b" @@ -28,7 +28,7 @@ array(2) { string(3) "f.c" } -Warning: compact(): Undefined variable $a in %s on line %d +Warning: compact(): Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d array(2) { ["b"]=> string(3) "f.b" diff --git a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt index 3fc707c15ec38..6e8fe0fe0bc88 100644 --- a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt @@ -80,8 +80,8 @@ echo "Done"; ?> --EXPECT-- *** Testing get_class_methods() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) Arg value 0 get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, int given diff --git a/ext/standard/tests/class_object/get_class_variation_001.phpt b/ext/standard/tests/class_object/get_class_variation_001.phpt index 67c468cace7c4..5be3babcf16a1 100644 --- a/ext/standard/tests/class_object/get_class_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_variation_001.phpt @@ -74,9 +74,9 @@ echo "Done"; --EXPECTF-- *** Testing get_class() : usage variations *** -Warning: Undefined variable $undefined_var in %s on line %d +Warning: Undefined variable $undefined_var (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $unset_var in %s on line %d +Warning: Undefined variable $unset_var (This will become an error in PHP 9.0) in %s on line %d Arg value: 0 (type: integer) get_class(): Argument #1 ($object) must be of type object, int given diff --git a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt index 529f13ce7119c..eb3d5fc64ba13 100644 --- a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt +++ b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt @@ -83,8 +83,8 @@ echo "Done"; ?> --EXPECT-- *** Testing get_parent_class() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) Arg value 0 get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, int given diff --git a/ext/standard/tests/class_object/is_a_variation_001.phpt b/ext/standard/tests/class_object/is_a_variation_001.phpt index 4f77b9735a7e7..81e220f859281 100644 --- a/ext/standard/tests/class_object/is_a_variation_001.phpt +++ b/ext/standard/tests/class_object/is_a_variation_001.phpt @@ -72,9 +72,9 @@ echo "Done"; --EXPECTF-- *** Testing is_a() : usage variations *** -Warning: Undefined variable $undefined_var in %s on line %d +Warning: Undefined variable $undefined_var (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $unset_var in %s on line %d +Warning: Undefined variable $unset_var (This will become an error in PHP 9.0) in %s on line %d Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt index f03841dbac7dc..a0662e58f701a 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECT-- *** Testing is_subclass_of() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt index d045a4c1a915c..eb0a4fcdafbbe 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECT-- *** Testing is_subclass_of() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/method_exists_variation_001.phpt b/ext/standard/tests/class_object/method_exists_variation_001.phpt index 5e6d34f550eea..5ed74f6a3b215 100644 --- a/ext/standard/tests/class_object/method_exists_variation_001.phpt +++ b/ext/standard/tests/class_object/method_exists_variation_001.phpt @@ -83,8 +83,8 @@ echo "Done"; ?> --EXPECT-- *** Testing method_exists() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) Arg value 0 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given diff --git a/ext/standard/tests/file/005_variation2.phpt b/ext/standard/tests/file/005_variation2.phpt index 55d1d6666098c..89faa81115c98 100644 --- a/ext/standard/tests/file/005_variation2.phpt +++ b/ext/standard/tests/file/005_variation2.phpt @@ -55,7 +55,7 @@ echo "Done"; *** testing touch *** -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) diff --git a/ext/standard/tests/general_functions/bug32647.phpt b/ext/standard/tests/general_functions/bug32647.phpt index 2e388d4742060..86ffd8d841bf8 100644 --- a/ext/standard/tests/general_functions/bug32647.phpt +++ b/ext/standard/tests/general_functions/bug32647.phpt @@ -72,10 +72,10 @@ register_shutdown_function(array($obj,'barfoo')); ?> --EXPECTF-- -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object register_shutdown_function(): Argument #1 ($callback) must be a valid callback, class bar does not have a method "foo" diff --git a/ext/standard/tests/general_functions/bug60723.phpt b/ext/standard/tests/general_functions/bug60723.phpt index fff1b7879046f..9ef62cb31779c 100644 --- a/ext/standard/tests/general_functions/bug60723.phpt +++ b/ext/standard/tests/general_functions/bug60723.phpt @@ -14,6 +14,6 @@ readfile($log); unlink($log); ?> --EXPECTF-- -Warning: Undefined variable $aa in %s on line %d -[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa in %s on line %d +Warning: Undefined variable $aa (This will become an error in PHP 9.0) in %s on line %d +[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa (This will become an error in PHP 9.0) in %s on line %d [%s ASIA/Chongqing] dummy diff --git a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt index 17132874bf9cb..736ac52033bd3 100644 --- a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt +++ b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt @@ -142,7 +142,7 @@ int(10) -- Value of $ref_first_var -- -Warning: Undefined variable $ref_first_var in %s on line %d +Warning: Undefined variable $ref_first_var (This will become an error in PHP 9.0) in %s on line %d NULL -- Value of $first_var -- @@ -161,7 +161,7 @@ int(10) -- Value of $var_3: (after unsetting var_3) -- -Warning: Undefined variable $var_3 in %s on line %d +Warning: Undefined variable $var_3 (This will become an error in PHP 9.0) in %s on line %d NULL -- Value of $var_2: -- @@ -172,7 +172,7 @@ int(10) -- Value of $var_1: (after unsetting variable_1) -- -Warning: Undefined variable $var_1 in %s on line %d +Warning: Undefined variable $var_1 (This will become an error in PHP 9.0) in %s on line %d NULL -- Value of $var_2: -- diff --git a/ext/standard/tests/general_functions/error_clear_last.phpt b/ext/standard/tests/general_functions/error_clear_last.phpt index 88a59d949a436..5e3e31e8648ff 100644 --- a/ext/standard/tests/general_functions/error_clear_last.phpt +++ b/ext/standard/tests/general_functions/error_clear_last.phpt @@ -22,7 +22,7 @@ array(4) { ["type"]=> int(2) ["message"]=> - string(21) "Undefined variable $b" + string(60) "Undefined variable $b (This will become an error in PHP 9.0)" ["file"]=> string(%d) "%s" ["line"]=> diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt index 1e7516970ef07..f9bbb80c5bdb0 100644 --- a/ext/standard/tests/general_functions/error_get_last.phpt +++ b/ext/standard/tests/general_functions/error_get_last.phpt @@ -22,12 +22,12 @@ NULL error_get_last() expects exactly 0 arguments, 1 given NULL -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d array(4) { ["type"]=> int(2) ["message"]=> - string(21) "Undefined variable $b" + string(60) "Undefined variable $b (This will become an error in PHP 9.0)" ["file"]=> string(%d) "%s" ["line"]=> diff --git a/ext/standard/tests/image/getimagesize_variation2.phpt b/ext/standard/tests/image/getimagesize_variation2.phpt index 045d9141a6bdc..e853b2bb21757 100644 --- a/ext/standard/tests/image/getimagesize_variation2.phpt +++ b/ext/standard/tests/image/getimagesize_variation2.phpt @@ -74,8 +74,8 @@ foreach($values as $key => $value) { ?> --EXPECT-- *** Testing getimagesize() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) -- Arg value 0 -- string(28) "4a46494600010201006000600000" diff --git a/ext/standard/tests/serialize/serialization_objects_002.phpt b/ext/standard/tests/serialize/serialization_objects_002.phpt index 26766d80f0741..d336fafc0b8ce 100644 --- a/ext/standard/tests/serialize/serialization_objects_002.phpt +++ b/ext/standard/tests/serialize/serialization_objects_002.phpt @@ -71,9 +71,9 @@ echo "\nDone"; --EXPECTF-- --- Testing Variations in objects --- -Warning: Undefined variable $file_handle in %s on line %d +Warning: Undefined variable $file_handle (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $file_handle in %s on line %d +Warning: Undefined variable $file_handle (This will become an error in PHP 9.0) in %s on line %d After Serialization => string(493) "O:1:"C":8:{s:1:"a";i:10;s:1:"b";s:6:"string";s:1:"c";b:1;s:1:"d";d:-2.344440000000000079438677857979200780391693115234375;s:1:"e";a:7:{i:0;i:1;i:1;d:2.220000000000000195399252334027551114559173583984375;i:2;s:6:"string";i:3;b:1;i:4;a:0:{}i:5;O:7:"members":3:{s:20:"%0members%0var_private";i:10;s:16:"%0*%0var_protected";s:6:"string";s:10:"var_public";a:3:{i:0;d:-100.1230000000000046611603465862572193145751953125;i:1;s:6:"string";i:2;b:1;}}i:6;N;}s:1:"f";O:9:"nomembers":0:{}s:1:"g";N;s:1:"h";N;}" After Unserialization => object(C)#%d (8) { ["a"]=> diff --git a/ext/standard/tests/strings/crc32_variation3.phpt b/ext/standard/tests/strings/crc32_variation3.phpt index 1f5905f3a9977..f01b74cba734e 100644 --- a/ext/standard/tests/strings/crc32_variation3.phpt +++ b/ext/standard/tests/strings/crc32_variation3.phpt @@ -71,9 +71,9 @@ echo "Done"; --EXPECTF-- *** Testing crc32() : with different strings in double quotes *** -Warning: Undefined variable $hello in %s on line %d +Warning: Undefined variable $hello (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $world in %s on line %d +Warning: Undefined variable $world (This will become an error in PHP 9.0) in %s on line %d -- Iteration 1 -- int(0) diff --git a/ext/standard/tests/strings/lcfirst.phpt b/ext/standard/tests/strings/lcfirst.phpt index 1abc31d0b3b51..ce535e45088c1 100644 --- a/ext/standard/tests/strings/lcfirst.phpt +++ b/ext/standard/tests/strings/lcfirst.phpt @@ -189,7 +189,7 @@ string(0) "" string(5) "world" string(7) "world'S" -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d string(0) "" string(6) "worldS" string(6) "worldS" diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt index 07c6ef7da3467..f48b96b6864f1 100644 --- a/ext/standard/tests/strings/str_replace_variation3.phpt +++ b/ext/standard/tests/strings/str_replace_variation3.phpt @@ -220,7 +220,7 @@ int(0) string(5) "FOUND" string(5) "FOUND" -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d string(0) "" string(5) "FOUND" string(5) "FOUND" diff --git a/ext/standard/tests/strings/str_word_count1.phpt b/ext/standard/tests/strings/str_word_count1.phpt index c4f8ecf40a0f3..cdc6c8c6556da 100644 --- a/ext/standard/tests/strings/str_word_count1.phpt +++ b/ext/standard/tests/strings/str_word_count1.phpt @@ -23,8 +23,8 @@ var_dump($a); int(0) str_word_count(): Argument #2 ($format) must be a valid format value -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d str_word_count(): Argument #2 ($format) must be a valid format value -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index e55b2a684fb21..a3251a25f3f21 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -120,44 +120,44 @@ Array ( [0] => a [1] => A - [2] => € - [3] => ÿ + [2] => � + [3] => � [4] => %0 ) Iteration 0 - strcasecmp of 'a' and 'a' is => int(0) - strcasecmp of 'a' and 'A' is => int(0) -- strcasecmp of 'a' and '€' is => int(-%d) -- strcasecmp of 'a' and 'ÿ' is => int(-%d) +- strcasecmp of 'a' and '�' is => int(-%d) +- strcasecmp of 'a' and '�' is => int(-%d) - strcasecmp of 'a' and '%0' is => int(%d) Iteration 1 - strcasecmp of 'A' and 'a' is => int(0) - strcasecmp of 'A' and 'A' is => int(0) -- strcasecmp of 'A' and '€' is => int(-%d) -- strcasecmp of 'A' and 'ÿ' is => int(-%d) +- strcasecmp of 'A' and '�' is => int(-%d) +- strcasecmp of 'A' and '�' is => int(-%d) - strcasecmp of 'A' and '%0' is => int(%d) Iteration 2 -- strcasecmp of '€' and 'a' is => int(%d) -- strcasecmp of '€' and 'A' is => int(%d) -- strcasecmp of '€' and '€' is => int(0) -- strcasecmp of '€' and 'ÿ' is => int(-%d) -- strcasecmp of '€' and '%0' is => int(%d) +- strcasecmp of '�' and 'a' is => int(%d) +- strcasecmp of '�' and 'A' is => int(%d) +- strcasecmp of '�' and '�' is => int(0) +- strcasecmp of '�' and '�' is => int(-%d) +- strcasecmp of '�' and '%0' is => int(%d) Iteration 3 -- strcasecmp of 'ÿ' and 'a' is => int(%d) -- strcasecmp of 'ÿ' and 'A' is => int(%d) -- strcasecmp of 'ÿ' and '€' is => int(%d) -- strcasecmp of 'ÿ' and 'ÿ' is => int(0) -- strcasecmp of 'ÿ' and '%0' is => int(%d) +- strcasecmp of '�' and 'a' is => int(%d) +- strcasecmp of '�' and 'A' is => int(%d) +- strcasecmp of '�' and '�' is => int(%d) +- strcasecmp of '�' and '�' is => int(0) +- strcasecmp of '�' and '%0' is => int(%d) Iteration 4 - strcasecmp of '%0' and 'a' is => int(-%d) - strcasecmp of '%0' and 'A' is => int(-%d) -- strcasecmp of '%0' and '€' is => int(-%d) -- strcasecmp of '%0' and 'ÿ' is => int(-%d) +- strcasecmp of '%0' and '�' is => int(-%d) +- strcasecmp of '%0' and '�' is => int(-%d) - strcasecmp of '%0' and '%0' is => int(0) *** comparing the strings in an @@ -542,7 +542,7 @@ int(-%d) int(-%d) int(-%d) -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d int(%d) int(-%d) int(-%d) diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index 5310566d53b60..b5399d24ee61b 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -122,8 +122,8 @@ Array [1] => A [2] => a [3] => A - [4] => € - [5] => ÿ + [4] => � + [5] => � [6] => %0 ) @@ -132,8 +132,8 @@ Iteration 0 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '€' is => int(-%d) -- strcmp of 'a' and 'ÿ' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 1 @@ -141,8 +141,8 @@ Iteration 1 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '€' is => int(-%d) -- strcmp of 'A' and 'ÿ' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 2 @@ -150,8 +150,8 @@ Iteration 2 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '€' is => int(-%d) -- strcmp of 'a' and 'ÿ' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 3 @@ -159,35 +159,35 @@ Iteration 3 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '€' is => int(-%d) -- strcmp of 'A' and 'ÿ' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 4 -- strcmp of '€' and 'a' is => int(%d) -- strcmp of '€' and 'A' is => int(%d) -- strcmp of '€' and 'a' is => int(%d) -- strcmp of '€' and 'A' is => int(%d) -- strcmp of '€' and '€' is => int(0) -- strcmp of '€' and 'ÿ' is => int(-%d) -- strcmp of '€' and '%0' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and '�' is => int(0) +- strcmp of '�' and '�' is => int(-%d) +- strcmp of '�' and '%0' is => int(%d) Iteration 5 -- strcmp of 'ÿ' and 'a' is => int(%d) -- strcmp of 'ÿ' and 'A' is => int(%d) -- strcmp of 'ÿ' and 'a' is => int(%d) -- strcmp of 'ÿ' and 'A' is => int(%d) -- strcmp of 'ÿ' and '€' is => int(%d) -- strcmp of 'ÿ' and 'ÿ' is => int(0) -- strcmp of 'ÿ' and '%0' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and '�' is => int(%d) +- strcmp of '�' and '�' is => int(0) +- strcmp of '�' and '%0' is => int(%d) Iteration 6 - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) -- strcmp of '%0' and '€' is => int(-%d) -- strcmp of '%0' and 'ÿ' is => int(-%d) +- strcmp of '%0' and '�' is => int(-%d) +- strcmp of '%0' and '�' is => int(-%d) - strcmp of '%0' and '%0' is => int(0) *** comparing the strings in an @@ -550,7 +550,7 @@ int(-%d) int(-%d) int(-%d) -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d int(%d) int(-%d) int(-%d) diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index b98111f15e672..801f33984645f 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -137,7 +137,7 @@ String length of '' is => int(0) String length of ' ' is => int(1) String length of '%0' is => int(1) String length of '%00' is => int(2) -String length of '«C' is => int(2) +String length of '�C' is => int(2) String length of '%00' is => int(2) String length of '0' is => int(1) String length of '0' is => int(1) @@ -150,11 +150,12 @@ String length of 'Hello%0World' is => int(11) String length of 'Hello, World\0' is => int(14) String length of 'Hello, World ' is => int(13) -String length of 'Hello, World ' is => int(13) +String length of 'Hello, World +' is => int(13) String length of 'Hello, World ' is => int(13) String length of 'Hello, World\' is => int(13) String length of ' ' is => int(14) -String length of '€êAÿ%0' is => int(5) +String length of '��A�%0' is => int(5) String length of 'abcdefghijklmnopqrstuvwxyz0123456789~!@#$%^&*()_+=|?><-;:$ []{}{{{}}}[[[[]][]]]***&&&^^%$###@@!!@#$%&^&**/////|\\\ abcdefghijklmnopqrstuvwxyz0123456789~!@#$%^&*()_+=|?><-;:$ @@ -181,7 +182,7 @@ int(0) int(5) int(7) -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d int(0) int(6) int(6) diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt index 05913cc1f03b5..2a90122016123 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt @@ -271,7 +271,7 @@ bool(false) int(7) int(7) -Warning: Undefined variable $needleS in %s on line %d +Warning: Undefined variable $needleS (This will become an error in PHP 9.0) in %s on line %d int(0) int(7) int(7) diff --git a/ext/standard/tests/strings/strstr.phpt b/ext/standard/tests/strings/strstr.phpt index 0d4065b54fb2b..127cda5d41e5c 100644 --- a/ext/standard/tests/strings/strstr.phpt +++ b/ext/standard/tests/strings/strstr.phpt @@ -338,7 +338,7 @@ bool(false) string(5) "world" string(7) "world'S" -Warning: Undefined variable $needleS in %s on line %d +Warning: Undefined variable $needleS (This will become an error in PHP 9.0) in %s on line %d string(13) "Hello, worldS" string(6) "worldS" string(6) "worldS" diff --git a/ext/standard/tests/strings/ucfirst.phpt b/ext/standard/tests/strings/ucfirst.phpt index 5389579eb2f38..42f723b800013 100644 --- a/ext/standard/tests/strings/ucfirst.phpt +++ b/ext/standard/tests/strings/ucfirst.phpt @@ -157,7 +157,7 @@ string(0) "" string(5) "World" string(7) "World'S" -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d string(0) "" string(6) "WorldS" string(6) "WorldS" diff --git a/ext/zend_test/tests/observer_error_03.phpt b/ext/zend_test/tests/observer_error_03.phpt index b9f5ae75cc0d9..20be5dd5ff6ad 100644 --- a/ext/zend_test/tests/observer_error_03.phpt +++ b/ext/zend_test/tests/observer_error_03.phpt @@ -31,7 +31,7 @@ echo 'Done.' . PHP_EOL; -Warning: Undefined variable $this_does_not_exit in %s on line %d +Warning: Undefined variable $this_does_not_exit (This will become an error in PHP 9.0) in %s on line %d After error. diff --git a/ext/zend_test/tests/observer_retval_05.phpt b/ext/zend_test/tests/observer_retval_05.phpt index 7d05cb92986b0..c32d05ea6dfde 100644 --- a/ext/zend_test/tests/observer_retval_05.phpt +++ b/ext/zend_test/tests/observer_retval_05.phpt @@ -23,11 +23,11 @@ echo 'Done' . PHP_EOL; -Warning: Undefined variable $i_do_not_exist in %s on line %d +Warning: Undefined variable $i_do_not_exist (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $i_do_not_exist in %s on line %d +Warning: Undefined variable $i_do_not_exist (This will become an error in PHP 9.0) in %s on line %d Done diff --git a/tests/basic/025.phpt b/tests/basic/025.phpt index 6b7340a860905..b4c3faff0a145 100644 --- a/tests/basic/025.phpt +++ b/tests/basic/025.phpt @@ -13,7 +13,7 @@ var_dump($_POST, $HTTP_RAW_POST_DATA); --EXPECTF-- Warning: PHP Request Startup: POST Content-Length of 2050 bytes exceeds the limit of 1024 bytes in Unknown on line 0 -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d array(0) { } NULL diff --git a/tests/basic/enable_post_data_reading_01.phpt b/tests/basic/enable_post_data_reading_01.phpt index 9ce4fc288a434..597e84f63be91 100644 --- a/tests/basic/enable_post_data_reading_01.phpt +++ b/tests/basic/enable_post_data_reading_01.phpt @@ -19,7 +19,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/basic/enable_post_data_reading_03.phpt b/tests/basic/enable_post_data_reading_03.phpt index c0842382eaefc..472fb3e3510c7 100644 --- a/tests/basic/enable_post_data_reading_03.phpt +++ b/tests/basic/enable_post_data_reading_03.phpt @@ -20,7 +20,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/basic/enable_post_data_reading_04.phpt b/tests/basic/enable_post_data_reading_04.phpt index d309169cb0581..f7f2871710621 100644 --- a/tests/basic/enable_post_data_reading_04.phpt +++ b/tests/basic/enable_post_data_reading_04.phpt @@ -20,7 +20,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/classes/constants_basic_001.phpt b/tests/classes/constants_basic_001.phpt index 18ac2416f5dbc..a4a0b7e7fec99 100644 --- a/tests/classes/constants_basic_001.phpt +++ b/tests/classes/constants_basic_001.phpt @@ -55,7 +55,7 @@ Class constant declarations echo "\nYou should not see this."; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d Attempt to access various kinds of class constants: int(1) diff --git a/tests/lang/bison1.phpt b/tests/lang/bison1.phpt index 9af2af7b8b739..bcb55f88be7d3 100644 --- a/tests/lang/bison1.phpt +++ b/tests/lang/bison1.phpt @@ -5,5 +5,5 @@ Bison weirdness echo "blah-$foo\n"; ?> --EXPECTF-- -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d blah- diff --git a/tests/lang/bug23584.phpt b/tests/lang/bug23584.phpt index abc3532a6341d..b1851cc1225cb 100644 --- a/tests/lang/bug23584.phpt +++ b/tests/lang/bug23584.phpt @@ -10,4 +10,4 @@ echo $foo; ?> --EXPECTF-- -Warning: Undefined variable $foo in %s on line 6 +Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line 6 diff --git a/tests/lang/bug25922.phpt b/tests/lang/bug25922.phpt index a6b526ab780fa..2258b0d905d56 100644 --- a/tests/lang/bug25922.phpt +++ b/tests/lang/bug25922.phpt @@ -19,6 +19,6 @@ function test() test(); ?> --EXPECT-- -Undefined variable $data +Undefined variable $data (This will become an error in PHP 9.0) Trying to access array offset on value of type null Undefined index here: '' diff --git a/tests/lang/passByReference_003.phpt b/tests/lang/passByReference_003.phpt index 11c3e32c50bed..adf6816f72bc4 100644 --- a/tests/lang/passByReference_003.phpt +++ b/tests/lang/passByReference_003.phpt @@ -25,7 +25,7 @@ var_dump($undef2) --EXPECTF-- Passing undefined by value -Warning: Undefined variable $undef1 in %s on line %d +Warning: Undefined variable $undef1 (This will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -34,7 +34,7 @@ NULL After call -Warning: Undefined variable $undef1 in %s on line %d +Warning: Undefined variable $undef1 (This will become an error in PHP 9.0) in %s on line %d NULL Passing undefined by reference diff --git a/tests/lang/passByReference_005.phpt b/tests/lang/passByReference_005.phpt index d839b465d2953..774327dcd080f 100644 --- a/tests/lang/passByReference_005.phpt +++ b/tests/lang/passByReference_005.phpt @@ -170,31 +170,31 @@ var_dump($u1, $u2); --EXPECTF-- ---- Pass by ref / pass by val: functions ---- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" @@ -203,31 +203,31 @@ string(12) "Ref2 changed" ---- Pass by ref / pass by val: static method calls ---- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" @@ -236,37 +236,37 @@ string(12) "Ref2 changed" ---- Pass by ref / pass by val: instance method calls ---- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" diff --git a/tests/lang/short_tags.004.phpt b/tests/lang/short_tags.004.phpt index 4111475e5edff..d9491b85ed972 100644 --- a/tests/lang/short_tags.004.phpt +++ b/tests/lang/short_tags.004.phpt @@ -29,6 +29,6 @@ This gets echoed twice -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d From b15983bc18d5716367943fd87223c3a15d82aebb Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Sun, 3 Jul 2022 12:21:36 +0100 Subject: [PATCH 2/8] Latin 1 charset for strcmp --- ext/standard/tests/strings/strcmp.phpt | 52 +++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index b5399d24ee61b..502b8740f696a 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -122,8 +122,8 @@ Array [1] => A [2] => a [3] => A - [4] => � - [5] => � + [4] => ? + [5] => ? [6] => %0 ) @@ -132,8 +132,8 @@ Iteration 0 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '�' is => int(-%d) -- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '?' is => int(-%d) +- strcmp of 'a' and '?' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 1 @@ -141,8 +141,8 @@ Iteration 1 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '�' is => int(-%d) -- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '?' is => int(-%d) +- strcmp of 'A' and '?' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 2 @@ -150,8 +150,8 @@ Iteration 2 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '�' is => int(-%d) -- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '?' is => int(-%d) +- strcmp of 'a' and '?' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 3 @@ -159,35 +159,35 @@ Iteration 3 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '�' is => int(-%d) -- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '?' is => int(-%d) +- strcmp of 'A' and '?' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 4 -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and '�' is => int(0) -- strcmp of '�' and '�' is => int(-%d) -- strcmp of '�' and '%0' is => int(%d) +- strcmp of '?' and 'a' is => int(%d) +- strcmp of '?' and 'A' is => int(%d) +- strcmp of '?' and 'a' is => int(%d) +- strcmp of '?' and 'A' is => int(%d) +- strcmp of '?' and '?' is => int(0) +- strcmp of '?' and '?' is => int(-%d) +- strcmp of '?' and '%0' is => int(%d) Iteration 5 -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and '�' is => int(%d) -- strcmp of '�' and '�' is => int(0) -- strcmp of '�' and '%0' is => int(%d) +- strcmp of '?' and 'a' is => int(%d) +- strcmp of '?' and 'A' is => int(%d) +- strcmp of '?' and 'a' is => int(%d) +- strcmp of '?' and 'A' is => int(%d) +- strcmp of '?' and '?' is => int(%d) +- strcmp of '?' and '?' is => int(0) +- strcmp of '?' and '%0' is => int(%d) Iteration 6 - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) -- strcmp of '%0' and '�' is => int(-%d) -- strcmp of '%0' and '�' is => int(-%d) +- strcmp of '%0' and '?' is => int(-%d) +- strcmp of '%0' and '?' is => int(-%d) - strcmp of '%0' and '%0' is => int(0) *** comparing the strings in an From 534dbf9c87d51a0adbb61a41d4b16b8c97a06f6d Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Sun, 3 Jul 2022 13:27:00 +0100 Subject: [PATCH 3/8] Additional latin-1 encoding fixes of files dealing with binary strings. --- ext/standard/tests/strings/strcasecmp.phpt | 36 +++++++-------- ext/standard/tests/strings/strcmp.phpt | 52 +++++++++++----------- ext/standard/tests/strings/strlen.phpt | 4 +- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index a3251a25f3f21..b2596878f7a1f 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -120,44 +120,44 @@ Array ( [0] => a [1] => A - [2] => � - [3] => � + [2] => € + [3] => ÿ [4] => %0 ) Iteration 0 - strcasecmp of 'a' and 'a' is => int(0) - strcasecmp of 'a' and 'A' is => int(0) -- strcasecmp of 'a' and '�' is => int(-%d) -- strcasecmp of 'a' and '�' is => int(-%d) +- strcasecmp of 'a' and '€' is => int(-%d) +- strcasecmp of 'a' and 'ÿ' is => int(-%d) - strcasecmp of 'a' and '%0' is => int(%d) Iteration 1 - strcasecmp of 'A' and 'a' is => int(0) - strcasecmp of 'A' and 'A' is => int(0) -- strcasecmp of 'A' and '�' is => int(-%d) -- strcasecmp of 'A' and '�' is => int(-%d) +- strcasecmp of 'A' and '€' is => int(-%d) +- strcasecmp of 'A' and 'ÿ' is => int(-%d) - strcasecmp of 'A' and '%0' is => int(%d) Iteration 2 -- strcasecmp of '�' and 'a' is => int(%d) -- strcasecmp of '�' and 'A' is => int(%d) -- strcasecmp of '�' and '�' is => int(0) -- strcasecmp of '�' and '�' is => int(-%d) -- strcasecmp of '�' and '%0' is => int(%d) +- strcasecmp of '€' and 'a' is => int(%d) +- strcasecmp of '€' and 'A' is => int(%d) +- strcasecmp of '€' and '€' is => int(0) +- strcasecmp of '€' and 'ÿ' is => int(-%d) +- strcasecmp of '€' and '%0' is => int(%d) Iteration 3 -- strcasecmp of '�' and 'a' is => int(%d) -- strcasecmp of '�' and 'A' is => int(%d) -- strcasecmp of '�' and '�' is => int(%d) -- strcasecmp of '�' and '�' is => int(0) -- strcasecmp of '�' and '%0' is => int(%d) +- strcasecmp of 'ÿ' and 'a' is => int(%d) +- strcasecmp of 'ÿ' and 'A' is => int(%d) +- strcasecmp of 'ÿ' and '€' is => int(%d) +- strcasecmp of 'ÿ' and 'ÿ' is => int(0) +- strcasecmp of 'ÿ' and '%0' is => int(%d) Iteration 4 - strcasecmp of '%0' and 'a' is => int(-%d) - strcasecmp of '%0' and 'A' is => int(-%d) -- strcasecmp of '%0' and '�' is => int(-%d) -- strcasecmp of '%0' and '�' is => int(-%d) +- strcasecmp of '%0' and '€' is => int(-%d) +- strcasecmp of '%0' and 'ÿ' is => int(-%d) - strcasecmp of '%0' and '%0' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index 502b8740f696a..01648cc022112 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -122,8 +122,8 @@ Array [1] => A [2] => a [3] => A - [4] => ? - [5] => ? + [4] => € + [5] => ÿ [6] => %0 ) @@ -132,8 +132,8 @@ Iteration 0 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '?' is => int(-%d) -- strcmp of 'a' and '?' is => int(-%d) +- strcmp of 'a' and '€' is => int(-%d) +- strcmp of 'a' and 'ÿ' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 1 @@ -141,8 +141,8 @@ Iteration 1 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '?' is => int(-%d) -- strcmp of 'A' and '?' is => int(-%d) +- strcmp of 'A' and '€' is => int(-%d) +- strcmp of 'A' and 'ÿ' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 2 @@ -150,8 +150,8 @@ Iteration 2 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '?' is => int(-%d) -- strcmp of 'a' and '?' is => int(-%d) +- strcmp of 'a' and '€' is => int(-%d) +- strcmp of 'a' and 'ÿ' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 3 @@ -159,35 +159,35 @@ Iteration 3 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '?' is => int(-%d) -- strcmp of 'A' and '?' is => int(-%d) +- strcmp of 'A' and '€' is => int(-%d) +- strcmp of 'A' and 'ÿ' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 4 -- strcmp of '?' and 'a' is => int(%d) -- strcmp of '?' and 'A' is => int(%d) -- strcmp of '?' and 'a' is => int(%d) -- strcmp of '?' and 'A' is => int(%d) -- strcmp of '?' and '?' is => int(0) -- strcmp of '?' and '?' is => int(-%d) -- strcmp of '?' and '%0' is => int(%d) +- strcmp of '€' and 'a' is => int(%d) +- strcmp of '€' and 'A' is => int(%d) +- strcmp of '€' and 'a' is => int(%d) +- strcmp of '€' and 'A' is => int(%d) +- strcmp of '€' and '€' is => int(0) +- strcmp of '€' and 'ÿ' is => int(-%d) +- strcmp of '€' and '%0' is => int(%d) Iteration 5 -- strcmp of '?' and 'a' is => int(%d) -- strcmp of '?' and 'A' is => int(%d) -- strcmp of '?' and 'a' is => int(%d) -- strcmp of '?' and 'A' is => int(%d) -- strcmp of '?' and '?' is => int(%d) -- strcmp of '?' and '?' is => int(0) -- strcmp of '?' and '%0' is => int(%d) +- strcmp of 'ÿ' and 'a' is => int(%d) +- strcmp of 'ÿ' and 'A' is => int(%d) +- strcmp of 'ÿ' and 'a' is => int(%d) +- strcmp of 'ÿ' and 'A' is => int(%d) +- strcmp of 'ÿ' and '€' is => int(%d) +- strcmp of 'ÿ' and 'ÿ' is => int(0) +- strcmp of 'ÿ' and '%0' is => int(%d) Iteration 6 - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) -- strcmp of '%0' and '?' is => int(-%d) -- strcmp of '%0' and '?' is => int(-%d) +- strcmp of '%0' and '€' is => int(-%d) +- strcmp of '%0' and 'ÿ' is => int(-%d) - strcmp of '%0' and '%0' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index 801f33984645f..a5590ddc27112 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -137,7 +137,7 @@ String length of '' is => int(0) String length of ' ' is => int(1) String length of '%0' is => int(1) String length of '%00' is => int(2) -String length of '�C' is => int(2) +String length of '«C' is => int(2) String length of '%00' is => int(2) String length of '0' is => int(1) String length of '0' is => int(1) @@ -155,7 +155,7 @@ String length of 'Hello, World String length of 'Hello, World ' is => int(13) String length of 'Hello, World\' is => int(13) String length of ' ' is => int(14) -String length of '��A�%0' is => int(5) +String length of '€êAÿ%0' is => int(5) String length of 'abcdefghijklmnopqrstuvwxyz0123456789~!@#$%^&*()_+=|?><-;:$ []{}{{{}}}[[[[]][]]]***&&&^^%$###@@!!@#$%&^&**/////|\\\ abcdefghijklmnopqrstuvwxyz0123456789~!@#$%^&*()_+=|?><-;:$ From 8475101aadee1ccd1542da4e10b5ecd13a2aa60b Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 17 Dec 2022 17:47:29 +0100 Subject: [PATCH 4/8] Fix failing strlen.phpt The proper test expectation is a CR instead of a LF. --- ext/standard/tests/strings/strlen.phpt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index a5590ddc27112..3d1fb792e1454 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -150,8 +150,7 @@ String length of 'Hello%0World' is => int(11) String length of 'Hello, World\0' is => int(14) String length of 'Hello, World ' is => int(13) -String length of 'Hello, World -' is => int(13) +String length of 'Hello, World ' is => int(13) String length of 'Hello, World ' is => int(13) String length of 'Hello, World\' is => int(13) String length of ' ' is => int(14) From e0a29f5fd312d0843be9d8f8cc17ad736498acf9 Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Mon, 2 Jan 2023 21:09:51 +0000 Subject: [PATCH 5/8] Lowercase this at request of CMB --- Zend/tests/019.phpt | 216 +++++++++--------- Zend/tests/024.phpt | 18 +- Zend/tests/033.phpt | 6 +- Zend/tests/array_unpack/undef_var.phpt | 2 +- Zend/tests/arrow_functions/002.phpt | 2 +- Zend/tests/arrow_functions/003.phpt | 4 +- Zend/tests/assign_coalesce_007.phpt | 2 +- Zend/tests/assign_dim_op_undef.phpt | 4 +- Zend/tests/bug30162.phpt | 2 +- Zend/tests/bug31720.phpt | 2 +- Zend/tests/bug39036.phpt | 2 +- Zend/tests/bug41209.phpt | 2 +- Zend/tests/bug43201.phpt | 14 +- Zend/tests/bug47109.phpt | 2 +- Zend/tests/bug52001.phpt | 4 +- Zend/tests/bug52041.phpt | 26 +-- Zend/tests/bug61767.phpt | 2 +- Zend/tests/bug67314.phpt | 4 +- Zend/tests/bug70124.phpt | 2 +- Zend/tests/bug72944.phpt | 2 +- Zend/tests/bug75921.phpt | 10 +- Zend/tests/bug76667.phpt | 2 +- Zend/tests/bug78531.phpt | 8 +- Zend/tests/bug79828.phpt | 2 +- Zend/tests/bug80030.phpt | 2 +- Zend/tests/bug81631.phpt | 2 +- Zend/tests/call_user_func_002.phpt | 4 +- Zend/tests/clone_003.phpt | 2 +- Zend/tests/closure_012.phpt | 4 +- Zend/tests/closure_027.phpt | 2 +- Zend/tests/code_before_loop_var_free.phpt | 2 +- Zend/tests/dead_array_type_inference.phpt | 2 +- Zend/tests/dereference_007.phpt | 2 +- .../div_by_zero_compound_with_conversion.phpt | 2 +- Zend/tests/dynamic_call_004.phpt | 2 +- Zend/tests/entry_block_with_predecessors.phpt | 2 +- Zend/tests/errmsg_045.phpt | 2 +- Zend/tests/error_reporting03.phpt | 2 +- Zend/tests/error_reporting04.phpt | 2 +- Zend/tests/error_reporting05.phpt | 4 +- Zend/tests/error_reporting08.phpt | 2 +- Zend/tests/error_reporting09.phpt | 4 +- Zend/tests/foreach_undefined.phpt | 2 +- .../resume_running_generator_error_003.phpt | 2 +- Zend/tests/globals_001.phpt | 2 +- Zend/tests/globals_002.phpt | 2 +- Zend/tests/globals_003.phpt | 2 +- Zend/tests/globals_004.phpt | 2 +- Zend/tests/ignore_repeated_errors.phpt | 8 +- Zend/tests/ignore_repeated_source.phpt | 6 +- Zend/tests/inference_infinite_loop.phpt | 2 +- Zend/tests/isset_003.phpt | 4 +- Zend/tests/match/029.phpt | 2 +- Zend/tests/match/030.phpt | 2 +- Zend/tests/match/042.phpt | 4 +- Zend/tests/method_argument_binding.phpt | 2 +- Zend/tests/named_params/undef_var.phpt | 4 +- Zend/tests/nullsafe_operator/018.phpt | 6 +- Zend/tests/nullsafe_operator/025.phpt | 2 +- Zend/tests/remove_predecessor_of_pi_node.phpt | 2 +- Zend/tests/restore_error_reporting.phpt | 2 +- Zend/tests/restrict_globals/valid.phpt | 4 +- Zend/tests/this_in_extract.phpt | 2 +- Zend/tests/undef_var_in_verify_return.phpt | 2 +- Zend/tests/unreachable_phi_cycle.phpt | 2 +- Zend/tests/unset_cv01.phpt | 2 +- Zend/tests/unset_cv02.phpt | 2 +- Zend/tests/unset_cv03.phpt | 2 +- Zend/tests/unset_cv04.phpt | 2 +- Zend/tests/unset_non_array.phpt | 4 +- .../warning_during_heredoc_scan_ahead.phpt | 2 +- Zend/zend_execute.c | 4 +- ext/opcache/jit/zend_jit_helpers.c | 8 +- ext/opcache/tests/block_pass_001.phpt | 2 +- ext/opcache/tests/bool_not_cv.phpt | 4 +- ext/opcache/tests/bug73668.phpt | 2 +- ext/opcache/tests/bug76446.phpt | 2 +- ext/opcache/tests/bug77058.phpt | 2 +- ext/opcache/tests/bug79412.phpt | 2 +- ext/opcache/tests/jit/add_011.phpt | 118 +++++----- ext/opcache/tests/jit/assign_022.phpt | 2 +- ext/opcache/tests/jit/assign_023.phpt | 2 +- ext/opcache/tests/jit/assign_024.phpt | 2 +- ext/opcache/tests/jit/assign_025.phpt | 2 +- ext/opcache/tests/jit/assign_040.phpt | 2 +- ext/opcache/tests/jit/assign_046.phpt | 12 +- ext/opcache/tests/jit/assign_047.phpt | 2 +- ext/opcache/tests/jit/assign_048.phpt | 20 +- ext/opcache/tests/jit/assign_053.phpt | 4 +- ext/opcache/tests/jit/assign_dim_002.phpt | 2 +- ext/opcache/tests/jit/assign_dim_003.phpt | 2 +- ext/opcache/tests/jit/assign_dim_004.phpt | 2 +- ext/opcache/tests/jit/assign_dim_010.phpt | 4 +- ext/opcache/tests/jit/assign_dim_op_002.phpt | 2 +- ext/opcache/tests/jit/assign_dim_op_003.phpt | 2 +- ext/opcache/tests/jit/assign_obj_002.phpt | 4 +- ext/opcache/tests/jit/bool_not_002.phpt | 4 +- ext/opcache/tests/jit/bw_not_001.phpt | 4 +- ext/opcache/tests/jit/cmp_006.phpt | 8 +- ext/opcache/tests/jit/cmp_008.phpt | 4 +- ext/opcache/tests/jit/fe_reset_001.phpt | 10 +- ext/opcache/tests/jit/fe_reset_undef.phpt | 2 +- ext/opcache/tests/jit/fetch_dim_rw_001.phpt | 2 +- ext/opcache/tests/jit/fetch_obj_008.phpt | 2 +- ext/opcache/tests/jit/inc_obj_005.phpt | 2 +- ext/opcache/tests/jit/isset_001.phpt | 2 +- ext/opcache/tests/jit/mul_009.phpt | 2 +- ext/opcache/tests/jit/qm_assign_002.phpt | 6 +- ext/opcache/tests/jit/reg_alloc_004.phpt | 8 +- ext/opcache/tests/jit/reg_alloc_006.phpt | 14 +- ext/opcache/tests/jit/reg_alloc_007.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_008.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_009.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_010.phpt | 4 +- ext/opcache/tests/jit/reg_alloc_013.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_014.phpt | 2 +- ext/opcache/tests/jit/reg_alloc_015.phpt | 4 +- ext/opcache/tests/jit/send_val_002.phpt | 2 +- ext/opcache/tests/jit/shift_right_004.phpt | 6 +- ext/opcache/tests/jit/undef_to_typed_ref.phpt | 12 +- .../tests/jit/verify_return_undef.phpt | 2 +- ext/opcache/tests/jmpz_jmp_elim.phpt | 2 +- ext/opcache/tests/opt/assign_op_001.phpt | 4 +- ext/opcache/tests/opt/coalesce_002.phpt | 2 +- ext/opcache/tests/opt/dce_011.phpt | 4 +- ext/opcache/tests/opt/inference_001.phpt | 4 +- ext/opcache/tests/opt/sccp_034.phpt | 4 +- ext/opcache/tests/opt/sccp_040.phpt | 2 +- ext/opcache/tests/opt/tmp_001.phpt | 2 +- ext/opcache/tests/wrong_inlining_003.phpt | 2 +- ext/pdo_sqlite/tests/bug43831.phpt | 2 +- ext/pgsql/tests/bug72195.phpt | 2 +- .../tests/ReflectionParameter_003.phpt | 2 +- .../tests/session_decode_variation3.phpt | 2 +- .../session_set_save_handler_class_012.phpt | 2 +- .../tests/SimpleXMLElement_xpath_4.phpt | 2 +- .../arrayObject_exchangeArray_basic3.phpt | 4 +- ext/spl/tests/array_026.phpt | 2 +- ext/spl/tests/bug62978.phpt | 2 +- ext/spl/tests/bug72888.phpt | 2 +- ext/standard/array.c | 2 +- .../array/array_fill_keys_variation4.phpt | 2 +- ext/standard/tests/array/bug30074.phpt | 2 +- ext/standard/tests/array/bug69198.phpt | 2 +- ext/standard/tests/array/compact.phpt | 2 +- ext/standard/tests/array/compact_basic.phpt | 2 +- .../tests/array/compact_variation2.phpt | 4 +- .../class_object/get_class_variation_001.phpt | 4 +- .../class_object/is_a_variation_001.phpt | 4 +- ext/standard/tests/file/005_variation2.phpt | 2 +- .../tests/general_functions/bug32647.phpt | 4 +- .../tests/general_functions/bug60723.phpt | 4 +- .../general_functions/debug_zval_dump_v.phpt | 6 +- .../general_functions/error_get_last.phpt | 2 +- .../serialize/serialization_objects_002.phpt | 4 +- .../tests/strings/crc32_variation3.phpt | 4 +- ext/standard/tests/strings/lcfirst.phpt | 2 +- .../tests/strings/str_replace_variation3.phpt | 2 +- .../tests/strings/str_word_count1.phpt | 4 +- ext/standard/tests/strings/strcasecmp.phpt | 38 +-- ext/standard/tests/strings/strcmp.phpt | 54 ++--- ext/standard/tests/strings/strlen.phpt | 2 +- ext/standard/tests/strings/strpos.phpt | 2 +- ext/standard/tests/strings/strstr.phpt | 2 +- ext/standard/tests/strings/ucfirst.phpt | 2 +- ext/zend_test/tests/observer_error_03.phpt | 2 +- ext/zend_test/tests/observer_retval_05.phpt | 4 +- tests/basic/025.phpt | 2 +- tests/basic/enable_post_data_reading_01.phpt | 2 +- tests/basic/enable_post_data_reading_03.phpt | 2 +- tests/basic/enable_post_data_reading_04.phpt | 2 +- tests/classes/constants_basic_001.phpt | 2 +- tests/lang/bison1.phpt | 2 +- tests/lang/bug23584.phpt | 2 +- tests/lang/passByReference_003.phpt | 4 +- tests/lang/passByReference_005.phpt | 64 +++--- tests/lang/short_tags.004.phpt | 4 +- 177 files changed, 542 insertions(+), 542 deletions(-) diff --git a/Zend/tests/019.phpt b/Zend/tests/019.phpt index 5f5496bc201f7..3cdbf5b3d33b2 100644 --- a/Zend/tests/019.phpt +++ b/Zend/tests/019.phpt @@ -357,7 +357,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -369,7 +369,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -381,7 +381,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -393,7 +393,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -405,7 +405,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -417,7 +417,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -429,7 +429,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -441,7 +441,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -453,7 +453,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -465,7 +465,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -477,7 +477,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -489,7 +489,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -501,7 +501,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -513,7 +513,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -525,7 +525,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -537,7 +537,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -549,7 +549,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -561,7 +561,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -573,7 +573,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -585,7 +585,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -597,7 +597,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -609,7 +609,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -621,7 +621,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -633,7 +633,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -645,7 +645,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -657,7 +657,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -669,7 +669,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -686,7 +686,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -702,18 +702,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -729,18 +729,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -756,18 +756,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -783,18 +783,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -816,13 +816,13 @@ array(3) { int(4) } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(3) { [1]=> @@ -840,13 +840,13 @@ array(2) { int(4) } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [2]=> @@ -860,13 +860,13 @@ array(1) { int(4) } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [3]=> @@ -876,18 +876,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -907,13 +907,13 @@ array(2) { float(5.6) } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [1]=> @@ -927,13 +927,13 @@ array(1) { float(5.6) } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [2]=> @@ -943,18 +943,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -972,13 +972,13 @@ array(1) { string(3) "two" } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [2]=> @@ -988,18 +988,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1017,13 +1017,13 @@ array(1) { string(2) "30" } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { ["Age"]=> @@ -1033,18 +1033,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1068,13 +1068,13 @@ array(4) { string(0) "" } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(4) { [1]=> @@ -1096,13 +1096,13 @@ array(3) { string(0) "" } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(3) { ["One"]=> @@ -1120,13 +1120,13 @@ array(2) { string(0) "" } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [2]=> @@ -1140,13 +1140,13 @@ array(1) { string(0) "" } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [""]=> @@ -1156,18 +1156,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1185,7 +1185,7 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $resource (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $resource (this will become an error in PHP 9.0) in %s on line %d NULL -- Iteration 2 -- resource(%d) of type (stream) @@ -1198,10 +1198,10 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $resource (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $resource (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $resources (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $resources (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(true) @@ -1218,16 +1218,16 @@ object(Point)#%d (3) { bool(true) bool(false) -Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $lable (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(true) object(Point)#%d (3) { ["x"]=> @@ -1252,7 +1252,7 @@ bool(false) bool(false) bool(true) -Warning: Undefined variable $point1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $point1 (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(true) @@ -1282,7 +1282,7 @@ value of static_var before unset: 1 bool(true) bool(false) -Warning: Undefined variable $static_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $static_var (this will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) @@ -1291,7 +1291,7 @@ value of static_var before unset: 2 bool(true) bool(false) -Warning: Undefined variable $static_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $static_var (this will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) @@ -1300,7 +1300,7 @@ value of static_var before unset: 3 bool(true) bool(false) -Warning: Undefined variable $static_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $static_var (this will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) diff --git a/Zend/tests/024.phpt b/Zend/tests/024.phpt index de143ad550de9..acd8515f5f3e0 100644 --- a/Zend/tests/024.phpt +++ b/Zend/tests/024.phpt @@ -15,30 +15,30 @@ var_dump($a->$b->{$c[1]}); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d int(1) -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d int(0) -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d int(1) Warning: Attempt to read property "1" on int in %s on line %d @@ -47,7 +47,7 @@ NULL Warning: Attempt to read property "1" on int in %s on line %d NULL -Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/033.phpt b/Zend/tests/033.phpt index a2d9bf6fafc83..9289807c046dd 100644 --- a/Zend/tests/033.phpt +++ b/Zend/tests/033.phpt @@ -25,7 +25,7 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -37,7 +37,7 @@ 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: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -49,7 +49,7 @@ 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: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/array_unpack/undef_var.phpt b/Zend/tests/array_unpack/undef_var.phpt index ba12dd8304ba3..8759c5ee8a71b 100644 --- a/Zend/tests/array_unpack/undef_var.phpt +++ b/Zend/tests/array_unpack/undef_var.phpt @@ -7,7 +7,7 @@ var_dump([...$arr]); ?> --EXPECTF-- -Warning: Undefined variable $arr (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Only arrays and Traversables can be unpacked in %s:%d Stack trace: diff --git a/Zend/tests/arrow_functions/002.phpt b/Zend/tests/arrow_functions/002.phpt index 6032576977ba7..aa8619ac75f03 100644 --- a/Zend/tests/arrow_functions/002.phpt +++ b/Zend/tests/arrow_functions/002.phpt @@ -9,5 +9,5 @@ var_dump((fn() => $b + $c)()); ?> --EXPECTF-- -Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d int(1) diff --git a/Zend/tests/arrow_functions/003.phpt b/Zend/tests/arrow_functions/003.phpt index 2769f9f1fc211..d75b6df592552 100644 --- a/Zend/tests/arrow_functions/003.phpt +++ b/Zend/tests/arrow_functions/003.phpt @@ -14,8 +14,8 @@ var_dump($fn()); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $5 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $5 (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/assign_coalesce_007.phpt b/Zend/tests/assign_coalesce_007.phpt index a3916085be146..f28a722678486 100644 --- a/Zend/tests/assign_coalesce_007.phpt +++ b/Zend/tests/assign_coalesce_007.phpt @@ -6,7 +6,7 @@ $a[0] ??= $a; var_dump($a); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_coalesce_007.php on line 2 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_coalesce_007.php on line 2 array(1) { [0]=> NULL diff --git a/Zend/tests/assign_dim_op_undef.phpt b/Zend/tests/assign_dim_op_undef.phpt index ca731be4590cd..dd03e2ec4cbf4 100644 --- a/Zend/tests/assign_dim_op_undef.phpt +++ b/Zend/tests/assign_dim_op_undef.phpt @@ -6,9 +6,9 @@ $a[$b] += 1; var_dump($a); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key "" in %s on line %d array(1) { diff --git a/Zend/tests/bug30162.phpt b/Zend/tests/bug30162.phpt index 73b3bcc8591d7..c1029156b42e6 100644 --- a/Zend/tests/bug30162.phpt +++ b/Zend/tests/bug30162.phpt @@ -44,7 +44,7 @@ $db = new hariCow; var_dump($db); ?> --EXPECTF-- -Warning: Undefined variable $db (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $db (this will become an error in PHP 9.0) in %s on line %d NULL object(hariCow)#%d (2) { ["x"]=> diff --git a/Zend/tests/bug31720.phpt b/Zend/tests/bug31720.phpt index adaef61fef523..c9cf40792806c 100644 --- a/Zend/tests/bug31720.phpt +++ b/Zend/tests/bug31720.phpt @@ -11,5 +11,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $nonesuchvar (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $nonesuchvar (this will become an error in PHP 9.0) in %s on line %d array_walk(): Argument #2 ($callback) must be a valid callback, first array member is not a valid class name or object diff --git a/Zend/tests/bug39036.phpt b/Zend/tests/bug39036.phpt index 4f6819bfca033..522c963ef1328 100644 --- a/Zend/tests/bug39036.phpt +++ b/Zend/tests/bug39036.phpt @@ -14,6 +14,6 @@ var_dump($key); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $key (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $key (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/bug41209.phpt b/Zend/tests/bug41209.phpt index 1f7084c2cc04c..ac20ddd782fea 100644 --- a/Zend/tests/bug41209.phpt +++ b/Zend/tests/bug41209.phpt @@ -39,7 +39,7 @@ var_dump(isset($cache[$id])); echo "Done\n"; ?> --EXPECTF-- -Fatal error: Uncaught ErrorException: Undefined variable $id (This will become an error in PHP 9.0) in %s:%d +Fatal error: Uncaught ErrorException: Undefined variable $id (this will become an error in PHP 9.0) in %s:%d Stack trace: #0 %s(%d): env::errorHandler(2, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/bug43201.phpt b/Zend/tests/bug43201.phpt index d7125351b5af4..72c51b8ac1350 100644 --- a/Zend/tests/bug43201.phpt +++ b/Zend/tests/bug43201.phpt @@ -26,39 +26,39 @@ Notice: Indirect modification of overloaded property Foo::$arr has no effect in Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 14 -Warning: Undefined variable $ref (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $ref (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d diff --git a/Zend/tests/bug47109.phpt b/Zend/tests/bug47109.phpt index ed4d3012842f8..08d99bbcecd8a 100644 --- a/Zend/tests/bug47109.phpt +++ b/Zend/tests/bug47109.phpt @@ -5,6 +5,6 @@ Bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) $a->{"a"."b"}; ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "ab" on null in %s on line %d diff --git a/Zend/tests/bug52001.phpt b/Zend/tests/bug52001.phpt index c99743a13948a..57bb5ad6fd2b6 100644 --- a/Zend/tests/bug52001.phpt +++ b/Zend/tests/bug52001.phpt @@ -11,7 +11,7 @@ var_dump($temp1); function a($b,$c) {} ?> --EXPECTF-- -Warning: Undefined variable $var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $var (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $ (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $ (this will become an error in PHP 9.0) in %s on line %d int(1) diff --git a/Zend/tests/bug52041.phpt b/Zend/tests/bug52041.phpt index 51c6d5efb3978..c64f595c2e4b3 100644 --- a/Zend/tests/bug52041.phpt +++ b/Zend/tests/bug52041.phpt @@ -47,47 +47,47 @@ foo()[0][0] += 2; var_dump(foo()); ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/bug61767.phpt b/Zend/tests/bug61767.phpt index ad21edcaf1c4e..7173ef47472e2 100644 --- a/Zend/tests/bug61767.phpt +++ b/Zend/tests/bug61767.phpt @@ -18,7 +18,7 @@ $undefined->foo(); --EXPECTF-- Error handler called (Undefined variable $undefined (This will become an error in PHP 9.0)) -Fatal error: Uncaught ErrorException: Undefined variable $undefined (This will become an error in PHP 9.0) in %sbug61767.php:%d +Fatal error: Uncaught ErrorException: Undefined variable $undefined (this will become an error in PHP 9.0) in %sbug61767.php:%d Stack trace: #0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/bug67314.phpt b/Zend/tests/bug67314.phpt index 73e48b5a35522..51d97efc9ac2f 100644 --- a/Zend/tests/bug67314.phpt +++ b/Zend/tests/bug67314.phpt @@ -16,8 +16,8 @@ crash(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d made it once -Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/Zend/tests/bug70124.phpt b/Zend/tests/bug70124.phpt index f626ee4e1f8fb..fb7b99b69fbf6 100644 --- a/Zend/tests/bug70124.phpt +++ b/Zend/tests/bug70124.phpt @@ -39,7 +39,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $f (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $f (this will become an error in PHP 9.0) in %s on line %d string(34) "Value of type null is not callable" string(31) "Call to undefined method A::y()" string(31) "Call to undefined method A::y()" diff --git a/Zend/tests/bug72944.phpt b/Zend/tests/bug72944.phpt index b3cddb1d92038..2e03ec36cd455 100644 --- a/Zend/tests/bug72944.phpt +++ b/Zend/tests/bug72944.phpt @@ -7,5 +7,5 @@ define('e', 'e'); echo "OK\n"; ?> --EXPECTF-- -Warning: Undefined variable $A (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $A (this will become an error in PHP 9.0) in %s on line %d OK diff --git a/Zend/tests/bug75921.phpt b/Zend/tests/bug75921.phpt index d8a592f90725e..8a0a09bc81bdf 100644 --- a/Zend/tests/bug75921.phpt +++ b/Zend/tests/bug75921.phpt @@ -47,21 +47,21 @@ unset($null); --EXPECTF-- Attempt to assign property "a" on null -Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/bug76667.phpt b/Zend/tests/bug76667.phpt index 87316f99f994a..8d09a55454248 100644 --- a/Zend/tests/bug76667.phpt +++ b/Zend/tests/bug76667.phpt @@ -23,7 +23,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $undefined (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undefined (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "1" on null in %s on line %d Division by zero diff --git a/Zend/tests/bug78531.phpt b/Zend/tests/bug78531.phpt index 5beab64b4eb6e..e1bc2c3b73834 100644 --- a/Zend/tests/bug78531.phpt +++ b/Zend/tests/bug78531.phpt @@ -24,14 +24,14 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $u3 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u3 (this will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $u4 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u4 (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null diff --git a/Zend/tests/bug79828.phpt b/Zend/tests/bug79828.phpt index 58e78992df75b..a563ec851e733 100644 --- a/Zend/tests/bug79828.phpt +++ b/Zend/tests/bug79828.phpt @@ -8,7 +8,7 @@ function foo(): AnyType { foo(); ?> --EXPECTF-- -Warning: Undefined variable $uninitialized (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $uninitialized (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught TypeError: foo(): Return value must be of type AnyType, null returned in %s:%d Stack trace: diff --git a/Zend/tests/bug80030.phpt b/Zend/tests/bug80030.phpt index 65ff364b2af2c..c47bbab63f02f 100644 --- a/Zend/tests/bug80030.phpt +++ b/Zend/tests/bug80030.phpt @@ -10,7 +10,7 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $className (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $className (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d Stack trace: diff --git a/Zend/tests/bug81631.phpt b/Zend/tests/bug81631.phpt index 442d7e96a0f6d..c7e5b59c52781 100644 --- a/Zend/tests/bug81631.phpt +++ b/Zend/tests/bug81631.phpt @@ -6,7 +6,7 @@ $a = 0; var_dump($b::class); ?> --EXPECTF-- -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line 3 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line 3 Fatal error: Uncaught TypeError: Cannot use "::class" on value of type null in %s:3 Stack trace: diff --git a/Zend/tests/call_user_func_002.phpt b/Zend/tests/call_user_func_002.phpt index f4d226dc3e65d..8eff00df3250b 100644 --- a/Zend/tests/call_user_func_002.phpt +++ b/Zend/tests/call_user_func_002.phpt @@ -34,8 +34,8 @@ string(3) "foo" call_user_func(): Argument #1 ($callback) must be a valid callback, class "foo" not found call_user_func(): Argument #1 ($callback) must be a valid callback, class "" not found -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object diff --git a/Zend/tests/clone_003.phpt b/Zend/tests/clone_003.phpt index 73853c024e8be..833b15aab3f41 100644 --- a/Zend/tests/clone_003.phpt +++ b/Zend/tests/clone_003.phpt @@ -7,7 +7,7 @@ $a = clone $b; ?> --EXPECTF-- -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: __clone method called on non-object in %s:%d Stack trace: diff --git a/Zend/tests/closure_012.phpt b/Zend/tests/closure_012.phpt index d6ff9666514f7..30eb8b4991a3e 100644 --- a/Zend/tests/closure_012.phpt +++ b/Zend/tests/closure_012.phpt @@ -16,8 +16,8 @@ $lambda(); var_dump($i); ?> --EXPECTF-- -Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d NULL int(2) diff --git a/Zend/tests/closure_027.phpt b/Zend/tests/closure_027.phpt index 32e0c3855fdd4..561abe7e15bdf 100644 --- a/Zend/tests/closure_027.phpt +++ b/Zend/tests/closure_027.phpt @@ -27,7 +27,7 @@ object(stdClass)#%d (0) { } NULL -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) 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(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s:%d diff --git a/Zend/tests/code_before_loop_var_free.phpt b/Zend/tests/code_before_loop_var_free.phpt index c1882b32262c1..5f9678c9dab40 100644 --- a/Zend/tests/code_before_loop_var_free.phpt +++ b/Zend/tests/code_before_loop_var_free.phpt @@ -9,4 +9,4 @@ default: } ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/dead_array_type_inference.phpt b/Zend/tests/dead_array_type_inference.phpt index c6c6abf70e242..6fd0ad5f29b6f 100644 --- a/Zend/tests/dead_array_type_inference.phpt +++ b/Zend/tests/dead_array_type_inference.phpt @@ -13,6 +13,6 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/Zend/tests/dereference_007.phpt b/Zend/tests/dereference_007.phpt index 8c87c857aded5..c31d9ddf10f7e 100644 --- a/Zend/tests/dereference_007.phpt +++ b/Zend/tests/dereference_007.phpt @@ -33,5 +33,5 @@ print "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/Zend/tests/div_by_zero_compound_with_conversion.phpt b/Zend/tests/div_by_zero_compound_with_conversion.phpt index 01ed100a9675e..6ea1d6f8b05ea 100644 --- a/Zend/tests/div_by_zero_compound_with_conversion.phpt +++ b/Zend/tests/div_by_zero_compound_with_conversion.phpt @@ -10,5 +10,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $42 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $42 (this will become an error in PHP 9.0) in %s on line %d Division by zero diff --git a/Zend/tests/dynamic_call_004.phpt b/Zend/tests/dynamic_call_004.phpt index 8e25f75c5bd0f..5c937cc020f6c 100644 --- a/Zend/tests/dynamic_call_004.phpt +++ b/Zend/tests/dynamic_call_004.phpt @@ -7,7 +7,7 @@ $a::$b(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d Stack trace: diff --git a/Zend/tests/entry_block_with_predecessors.phpt b/Zend/tests/entry_block_with_predecessors.phpt index 22963d6a148fe..415e7d3915ea3 100644 --- a/Zend/tests/entry_block_with_predecessors.phpt +++ b/Zend/tests/entry_block_with_predecessors.phpt @@ -28,6 +28,6 @@ test2(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d int(1) int(2) diff --git a/Zend/tests/errmsg_045.phpt b/Zend/tests/errmsg_045.phpt index fa2d5e227d312..840ac49ac56d0 100644 --- a/Zend/tests/errmsg_045.phpt +++ b/Zend/tests/errmsg_045.phpt @@ -17,4 +17,4 @@ eval('class A { private function __invoke() { } }'); string(%d) "The magic method A::__invoke() must have public visibility" string(%d) "%s(%d) : eval()'d code" -Warning: Undefined variable $undefined (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undefined (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/error_reporting03.phpt b/Zend/tests/error_reporting03.phpt index 1a6f670a533ed..1a8a6d5ec94d1 100644 --- a/Zend/tests/error_reporting03.phpt +++ b/Zend/tests/error_reporting03.phpt @@ -30,6 +30,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef2 (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting04.phpt b/Zend/tests/error_reporting04.phpt index 3ce7a16be9b08..683e6b71abd2b 100644 --- a/Zend/tests/error_reporting04.phpt +++ b/Zend/tests/error_reporting04.phpt @@ -18,6 +18,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting05.phpt b/Zend/tests/error_reporting05.phpt index ede5f92796cc4..6cbf156b3be81 100644 --- a/Zend/tests/error_reporting05.phpt +++ b/Zend/tests/error_reporting05.phpt @@ -27,8 +27,8 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef_value (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef_value (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef_name (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef_name (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting08.phpt b/Zend/tests/error_reporting08.phpt index ac081b8524538..1ff78f4d03a5b 100644 --- a/Zend/tests/error_reporting08.phpt +++ b/Zend/tests/error_reporting08.phpt @@ -27,6 +27,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef3 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef3 (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting09.phpt b/Zend/tests/error_reporting09.phpt index 142a724e8aa9e..125b19bfd342a 100644 --- a/Zend/tests/error_reporting09.phpt +++ b/Zend/tests/error_reporting09.phpt @@ -24,8 +24,8 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $blah (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $blah (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef2 (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/foreach_undefined.phpt b/Zend/tests/foreach_undefined.phpt index 26630303b7908..eafa747c4c5dc 100644 --- a/Zend/tests/foreach_undefined.phpt +++ b/Zend/tests/foreach_undefined.phpt @@ -8,7 +8,7 @@ foreach($a as $val); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d Done diff --git a/Zend/tests/generators/errors/resume_running_generator_error_003.phpt b/Zend/tests/generators/errors/resume_running_generator_error_003.phpt index 2463fd40aeedd..2219b6da2daf9 100644 --- a/Zend/tests/generators/errors/resume_running_generator_error_003.phpt +++ b/Zend/tests/generators/errors/resume_running_generator_error_003.phpt @@ -13,7 +13,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sresume_running_generator_error_003.php on line 4 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sresume_running_generator_error_003.php on line 4 Fatal error: Uncaught Error: Cannot resume an already running generator in %sresume_running_generator_error_003.php:4 Stack trace: diff --git a/Zend/tests/globals_001.phpt b/Zend/tests/globals_001.phpt index 8f412843c2477..2d4c22ca3b983 100644 --- a/Zend/tests/globals_001.phpt +++ b/Zend/tests/globals_001.phpt @@ -29,6 +29,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_002.phpt b/Zend/tests/globals_002.phpt index ef912bdffa470..b643cb08f07fd 100644 --- a/Zend/tests/globals_002.phpt +++ b/Zend/tests/globals_002.phpt @@ -32,6 +32,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_003.phpt b/Zend/tests/globals_003.phpt index 477c25b088445..399153fca0940 100644 --- a/Zend/tests/globals_003.phpt +++ b/Zend/tests/globals_003.phpt @@ -38,6 +38,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_004.phpt b/Zend/tests/globals_004.phpt index d7705519f76fb..42b28f8853c4a 100644 --- a/Zend/tests/globals_004.phpt +++ b/Zend/tests/globals_004.phpt @@ -23,6 +23,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/ignore_repeated_errors.phpt b/Zend/tests/ignore_repeated_errors.phpt index c8a06f17fbb8a..0e1365ac712fc 100644 --- a/Zend/tests/ignore_repeated_errors.phpt +++ b/Zend/tests/ignore_repeated_errors.phpt @@ -16,10 +16,10 @@ $u + 1; ?> --EXPECTF-- -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/ignore_repeated_source.phpt b/Zend/tests/ignore_repeated_source.phpt index 6c2322c053153..92c5feaa5fa83 100644 --- a/Zend/tests/ignore_repeated_source.phpt +++ b/Zend/tests/ignore_repeated_source.phpt @@ -17,8 +17,8 @@ $u + 1; ?> --EXPECTF-- -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/inference_infinite_loop.phpt b/Zend/tests/inference_infinite_loop.phpt index 6143e21f488ba..8d79b496b4764 100644 --- a/Zend/tests/inference_infinite_loop.phpt +++ b/Zend/tests/inference_infinite_loop.phpt @@ -14,4 +14,4 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/isset_003.phpt b/Zend/tests/isset_003.phpt index 5090435275a66..95a3ea1e876e5 100644 --- a/Zend/tests/isset_003.phpt +++ b/Zend/tests/isset_003.phpt @@ -29,9 +29,9 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $d (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/match/029.phpt b/Zend/tests/match/029.phpt index fb3ec1337f967..8eac0f4497300 100644 --- a/Zend/tests/match/029.phpt +++ b/Zend/tests/match/029.phpt @@ -16,7 +16,7 @@ echo "unreachable\n"; ?> --EXPECTF-- -Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (This will become an error in PHP 9.0) in %s029.php:4 +Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (this will become an error in PHP 9.0) in %s029.php:4 Stack trace: #0 %s029.php(7): {closure}(%d, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/match/030.phpt b/Zend/tests/match/030.phpt index dce6e0fd44088..97606899efa5e 100644 --- a/Zend/tests/match/030.phpt +++ b/Zend/tests/match/030.phpt @@ -16,7 +16,7 @@ echo "unreachable\n"; ?> --EXPECTF-- -Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (This will become an error in PHP 9.0) in %s030.php:4 +Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (this will become an error in PHP 9.0) in %s030.php:4 Stack trace: #0 %s030.php(7): {closure}(%d, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/match/042.phpt b/Zend/tests/match/042.phpt index 5ffbb38ca77df..9b5aff83c46fd 100644 --- a/Zend/tests/match/042.phpt +++ b/Zend/tests/match/042.phpt @@ -15,8 +15,8 @@ var_dump(match ($undefinedVariable) { ?> --EXPECTF-- -Warning: Undefined variable $undefinedVariable (This will become an error in PHP 9.0) in %s.php on line 3 +Warning: Undefined variable $undefinedVariable (this will become an error in PHP 9.0) in %s.php on line 3 string(4) "null" -Warning: Undefined variable $undefinedVariable (This will become an error in PHP 9.0) in %s.php on line 8 +Warning: Undefined variable $undefinedVariable (this will become an error in PHP 9.0) in %s.php on line 8 string(3) "bar" diff --git a/Zend/tests/method_argument_binding.phpt b/Zend/tests/method_argument_binding.phpt index 8c7f9b076b3b1..b6fbf212332b3 100644 --- a/Zend/tests/method_argument_binding.phpt +++ b/Zend/tests/method_argument_binding.phpt @@ -43,4 +43,4 @@ class E extends D { --EXPECTF-- int(2) -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/named_params/undef_var.phpt b/Zend/tests/named_params/undef_var.phpt index 54cabedc1c878..bf270016aa1bb 100644 --- a/Zend/tests/named_params/undef_var.phpt +++ b/Zend/tests/named_params/undef_var.phpt @@ -10,8 +10,8 @@ function func2($arg) { var_dump($arg); } ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/nullsafe_operator/018.phpt b/Zend/tests/nullsafe_operator/018.phpt index ce32defec2c7f..2c5734421622f 100644 --- a/Zend/tests/nullsafe_operator/018.phpt +++ b/Zend/tests/nullsafe_operator/018.phpt @@ -9,11 +9,11 @@ var_dump($foo); ?> --EXPECTF-- -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s.php on line 3 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s.php on line 3 NULL -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s.php on line 4 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s.php on line 4 NULL -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s.php on line 5 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s.php on line 5 NULL diff --git a/Zend/tests/nullsafe_operator/025.phpt b/Zend/tests/nullsafe_operator/025.phpt index b16ebc4b49664..e8ca8c041bc8f 100644 --- a/Zend/tests/nullsafe_operator/025.phpt +++ b/Zend/tests/nullsafe_operator/025.phpt @@ -8,7 +8,7 @@ var_dump(${$a?->b}->c); ?> --EXPECTF-- -Warning: Undefined variable $ (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $ (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "c" on null in %s on line %d NULL diff --git a/Zend/tests/remove_predecessor_of_pi_node.phpt b/Zend/tests/remove_predecessor_of_pi_node.phpt index 2935e680aae4d..02c53e9ce4065 100644 --- a/Zend/tests/remove_predecessor_of_pi_node.phpt +++ b/Zend/tests/remove_predecessor_of_pi_node.phpt @@ -11,4 +11,4 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $n (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $n (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/restore_error_reporting.phpt b/Zend/tests/restore_error_reporting.phpt index 6d5b550fc1f5f..964240a13ee90 100644 --- a/Zend/tests/restore_error_reporting.phpt +++ b/Zend/tests/restore_error_reporting.phpt @@ -8,7 +8,7 @@ var_dump($undef_var); ?> --EXPECTF-- -Warning: Undefined variable $undef_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef_var (this will become an error in PHP 9.0) in %s on line %d NULL Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/restrict_globals/valid.phpt b/Zend/tests/restrict_globals/valid.phpt index b547913309de5..a364d6f6d39e1 100644 --- a/Zend/tests/restrict_globals/valid.phpt +++ b/Zend/tests/restrict_globals/valid.phpt @@ -33,7 +33,7 @@ var_dump($x); ?> --EXPECTF-- -Warning: Undefined global variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $x (this will become an error in PHP 9.0) in %s on line %d NULL int(1) int(2) @@ -41,7 +41,7 @@ int(4) bool(true) bool(false) -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d int(4) NULL array(1) { diff --git a/Zend/tests/this_in_extract.phpt b/Zend/tests/this_in_extract.phpt index 9ec2e35ec06ca..53adb27b42433 100644 --- a/Zend/tests/this_in_extract.phpt +++ b/Zend/tests/this_in_extract.phpt @@ -15,5 +15,5 @@ foo(); --EXPECTF-- Cannot re-assign $this -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/undef_var_in_verify_return.phpt b/Zend/tests/undef_var_in_verify_return.phpt index 16000260445f1..1703a531d6f49 100644 --- a/Zend/tests/undef_var_in_verify_return.phpt +++ b/Zend/tests/undef_var_in_verify_return.phpt @@ -15,7 +15,7 @@ test(); ?> --EXPECTF-- -Fatal error: Uncaught ErrorException: Undefined variable $test (This will become an error in PHP 9.0) in %s:%d +Fatal error: Uncaught ErrorException: Undefined variable $test (this will become an error in PHP 9.0) in %s:%d Stack trace: #0 %s(%d): {closure}(2, 'Undefined varia...', '%s', 8) #1 %s(%d): test() diff --git a/Zend/tests/unreachable_phi_cycle.phpt b/Zend/tests/unreachable_phi_cycle.phpt index aae59cf90895c..db21f0a46397b 100644 --- a/Zend/tests/unreachable_phi_cycle.phpt +++ b/Zend/tests/unreachable_phi_cycle.phpt @@ -12,4 +12,4 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $i (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv01.phpt b/Zend/tests/unset_cv01.phpt index ca3ce5cfbfaad..f68ecdd4211b8 100644 --- a/Zend/tests/unset_cv01.phpt +++ b/Zend/tests/unset_cv01.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv02.phpt b/Zend/tests/unset_cv02.phpt index ee744cd4cf6ba..12de9a9f7b432 100644 --- a/Zend/tests/unset_cv02.phpt +++ b/Zend/tests/unset_cv02.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv03.phpt b/Zend/tests/unset_cv03.phpt index 75d6de61141c4..394c1b89cab13 100644 --- a/Zend/tests/unset_cv03.phpt +++ b/Zend/tests/unset_cv03.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv04.phpt b/Zend/tests/unset_cv04.phpt index 4e415b1a79af1..066a3ada57a3c 100644 --- a/Zend/tests/unset_cv04.phpt +++ b/Zend/tests/unset_cv04.phpt @@ -13,4 +13,4 @@ f(); --EXPECTF-- ok -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_non_array.phpt b/Zend/tests/unset_non_array.phpt index b7ad324156eb3..f4e421e0c0fe7 100644 --- a/Zend/tests/unset_non_array.phpt +++ b/Zend/tests/unset_non_array.phpt @@ -94,7 +94,7 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Deprecated: Automatic conversion of false to array is deprecated in %s Cannot unset offset in a non-array variable @@ -103,7 +103,7 @@ Cannot unset offset in a non-array variable Cannot unset string offsets Cannot use object of type stdClass as array -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Deprecated: Automatic conversion of false to array is deprecated in %s Cannot unset offset in a non-array variable diff --git a/Zend/tests/warning_during_heredoc_scan_ahead.phpt b/Zend/tests/warning_during_heredoc_scan_ahead.phpt index bd85722c7804a..e8b4d421f127e 100644 --- a/Zend/tests/warning_during_heredoc_scan_ahead.phpt +++ b/Zend/tests/warning_during_heredoc_scan_ahead.phpt @@ -16,4 +16,4 @@ Warning: Octal escape sequence overflow \400 is greater than \377 in %s on line Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d -Warning: Undefined variable $ (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $ (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index b999cc9550a65..a565399046d5a 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -269,7 +269,7 @@ static zend_never_inline ZEND_COLD zval* zval_undefined_cv(uint32_t var EXECUTE_ { if (EXPECTED(EG(exception) == NULL)) { zend_string *cv = CV_DEF_OF(EX_VAR_TO_NUM(var)); - zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); } return &EG(uninitialized_zval); } @@ -3700,7 +3700,7 @@ static zend_never_inline void zend_fetch_this_var(int type OPLINE_DC EXECUTE_DAT Z_ADDREF_P(result); } else { ZVAL_NULL(result); - zend_error(E_WARNING, "Undefined variable $this (This will become an error in PHP 9.0)"); + zend_error(E_WARNING, "Undefined variable $this (this will become an error in PHP 9.0)"); } break; case BP_VAR_IS: diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index a42e60fe59ee2..e74a97c023f97 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -105,7 +105,7 @@ static ZEND_COLD void ZEND_FASTCALL zend_jit_invalid_method_call(zval *object) if (Z_TYPE_P(object) == IS_UNDEF && opline->op1_type == IS_CV) { zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(opline->op1.var)]; - zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); if (UNEXPECTED(EG(exception) != NULL)) { return; } @@ -350,7 +350,7 @@ static int ZEND_FASTCALL zend_jit_undefined_op_helper(uint32_t var) const zend_execute_data *execute_data = EG(current_execute_data); zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(var)]; - zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); return EG(exception) == NULL; } @@ -364,7 +364,7 @@ static int ZEND_FASTCALL zend_jit_undefined_op_helper_write(HashTable *ht, uint3 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { GC_ADDREF(ht); } - zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { if (!GC_REFCOUNT(ht)) { zend_array_destroy(ht); @@ -2366,7 +2366,7 @@ static void ZEND_FASTCALL zend_jit_invalid_property_incdec(zval *container, cons if (Z_TYPE_P(container) == IS_UNDEF && opline->op1_type == IS_CV) { zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(opline->op1.var)]; - zend_error(E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); } if (opline->result_type & (IS_VAR|IS_TMP_VAR)) { ZVAL_UNDEF(EX_VAR(opline->result.var)); diff --git a/ext/opcache/tests/block_pass_001.phpt b/ext/opcache/tests/block_pass_001.phpt index 1a80e0901e201..6dcc856f5058b 100644 --- a/ext/opcache/tests/block_pass_001.phpt +++ b/ext/opcache/tests/block_pass_001.phpt @@ -9,4 +9,4 @@ opcache (bool) new stdClass; ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/bool_not_cv.phpt b/ext/opcache/tests/bool_not_cv.phpt index 24af0be3ef49f..8137ce3e4beaa 100644 --- a/ext/opcache/tests/bool_not_cv.phpt +++ b/ext/opcache/tests/bool_not_cv.phpt @@ -26,9 +26,9 @@ undef_bool_cast(); --EXPECTF-- In undef_negation -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line 4 +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line 4 true In undef_bool_cast -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line 10 +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line 10 false diff --git a/ext/opcache/tests/bug73668.phpt b/ext/opcache/tests/bug73668.phpt index e25745e806b3e..7c345e9b1b175 100644 --- a/ext/opcache/tests/bug73668.phpt +++ b/ext/opcache/tests/bug73668.phpt @@ -7,4 +7,4 @@ opcache $a/-1; ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/bug76446.phpt b/ext/opcache/tests/bug76446.phpt index 8399496e0ab88..cdc46ebf15f8e 100644 --- a/ext/opcache/tests/bug76446.phpt +++ b/ext/opcache/tests/bug76446.phpt @@ -18,5 +18,5 @@ function test() var_dump(test()); ?> --EXPECTF-- -Warning: Undefined variable $addlang (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $addlang (this will become an error in PHP 9.0) in %s on line %d int(0) diff --git a/ext/opcache/tests/bug77058.phpt b/ext/opcache/tests/bug77058.phpt index a63c05c282233..7c94dfb831876 100644 --- a/ext/opcache/tests/bug77058.phpt +++ b/ext/opcache/tests/bug77058.phpt @@ -18,5 +18,5 @@ myfunc(); ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d '2' is expected to be 2 diff --git a/ext/opcache/tests/bug79412.phpt b/ext/opcache/tests/bug79412.phpt index aad7125b74e0d..c6f6017c9cfcd 100644 --- a/ext/opcache/tests/bug79412.phpt +++ b/ext/opcache/tests/bug79412.phpt @@ -20,6 +20,6 @@ foreach ($foo as $bar) { } ?> --EXPECTF-- -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/ext/opcache/tests/jit/add_011.phpt b/ext/opcache/tests/jit/add_011.phpt index 9c84ba1f04498..99a31fe8f7b71 100644 --- a/ext/opcache/tests/jit/add_011.phpt +++ b/ext/opcache/tests/jit/add_011.phpt @@ -20,181 +20,181 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-13) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-32) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-97) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-228) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-493) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1024) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-3073) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-7172) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-15373) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-31776) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-64609) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-130276) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-261613) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-524288) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1572865) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-3670020) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-7864333) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-16252960) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-33030241) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-66584804) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-133693933) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-267912192) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-536349697) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1073224708) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2146974733) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4294474784) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-8589474913) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-17179475172) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-34359475693) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-68719476736) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-206158430209) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-481036337156) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1030792151053) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2130303778848) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4329327034465) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-8727373545700) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-17523466568173) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-35115652613120) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-70300024704001) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-140668768885764) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-281406257249293) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-562881233976352) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1125831187430497) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2251731094338788) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4503530908155373) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-9007130535788544) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-18014329791578113) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-36028728303157252) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-72057525326315533) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-144115119372632096) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-288230307465265249) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-576460683650531556) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1152921436021064173) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2305842940762129408) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4611685950244260865) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-9223371969208523780) -Warning: Undefined variable $u (This will become an error in PHP 9.0) in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 Deprecated: Implicit conversion from float %f to int loses precision in %sadd_011.php on line 5 int(66572500992) \ No newline at end of file diff --git a/ext/opcache/tests/jit/assign_022.phpt b/ext/opcache/tests/jit/assign_022.phpt index 8f303808b3fc4..e785c3e7fbf87 100644 --- a/ext/opcache/tests/jit/assign_022.phpt +++ b/ext/opcache/tests/jit/assign_022.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) 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 0df5d75cdd73a..739b6b17d1767 100644 --- a/ext/opcache/tests/jit/assign_023.phpt +++ b/ext/opcache/tests/jit/assign_023.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) 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 4dc99cc691767..ec7b1a730e677 100644 --- a/ext/opcache/tests/jit/assign_024.phpt +++ b/ext/opcache/tests/jit/assign_024.phpt @@ -20,5 +20,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) 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 094e2876ca8f2..ea60eff358719 100644 --- a/ext/opcache/tests/jit/assign_025.phpt +++ b/ext/opcache/tests/jit/assign_025.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $ref (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $ref (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_040.phpt b/ext/opcache/tests/jit/assign_040.phpt index eb83416859dbd..b5ecdd60f8bd7 100644 --- a/ext/opcache/tests/jit/assign_040.phpt +++ b/ext/opcache/tests/jit/assign_040.phpt @@ -23,5 +23,5 @@ try { echo $e->getMessage(), "\n"; } --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string diff --git a/ext/opcache/tests/jit/assign_046.phpt b/ext/opcache/tests/jit/assign_046.phpt index 6e8066affbd70..d07e0d1321824 100644 --- a/ext/opcache/tests/jit/assign_046.phpt +++ b/ext/opcache/tests/jit/assign_046.phpt @@ -20,19 +20,19 @@ test(); --EXPECTF-- NULL -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 diff --git a/ext/opcache/tests/jit/assign_047.phpt b/ext/opcache/tests/jit/assign_047.phpt index 66523c674ed20..d4c0ea2a5bb28 100644 --- a/ext/opcache/tests/jit/assign_047.phpt +++ b/ext/opcache/tests/jit/assign_047.phpt @@ -20,6 +20,6 @@ test() ?> DONE --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_047.php on line 5 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_047.php on line 5 DONE diff --git a/ext/opcache/tests/jit/assign_048.phpt b/ext/opcache/tests/jit/assign_048.phpt index e2fd3648a8495..d7e093a64c5a3 100644 --- a/ext/opcache/tests/jit/assign_048.phpt +++ b/ext/opcache/tests/jit/assign_048.phpt @@ -21,23 +21,23 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 DONE diff --git a/ext/opcache/tests/jit/assign_053.phpt b/ext/opcache/tests/jit/assign_053.phpt index f555f2fbe2f94..e86dbbfbd02fd 100644 --- a/ext/opcache/tests/jit/assign_053.phpt +++ b/ext/opcache/tests/jit/assign_053.phpt @@ -16,9 +16,9 @@ $test->x = " $y "; $r = &$test->x + ($r = $y); ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sassign_053.php on line 6 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_053.php on line 6 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sassign_053.php on line 7 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_053.php on line 7 Fatal error: Uncaught TypeError: Cannot assign null to reference held by property Test::$x of type string in %sassign_053.php:7 Stack trace: diff --git a/ext/opcache/tests/jit/assign_dim_002.phpt b/ext/opcache/tests/jit/assign_dim_002.phpt index 34e32d114e65e..b3b644e6a74f8 100644 --- a/ext/opcache/tests/jit/assign_dim_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_002.phpt @@ -223,5 +223,5 @@ array(1) { Deprecated: Automatic conversion of false to array is deprecated in %s on line %d Illegal offset type -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/opcache/tests/jit/assign_dim_003.phpt b/ext/opcache/tests/jit/assign_dim_003.phpt index 862da74d3bb38..d13796efffc11 100644 --- a/ext/opcache/tests/jit/assign_dim_003.phpt +++ b/ext/opcache/tests/jit/assign_dim_003.phpt @@ -16,5 +16,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %sassign_dim_003.php on line 3 +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %sassign_dim_003.php on line 3 NULL \ No newline at end of file diff --git a/ext/opcache/tests/jit/assign_dim_004.phpt b/ext/opcache/tests/jit/assign_dim_004.phpt index 38a7a3e8d8672..a31c0d897d4c5 100644 --- a/ext/opcache/tests/jit/assign_dim_004.phpt +++ b/ext/opcache/tests/jit/assign_dim_004.phpt @@ -22,5 +22,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d offsetSet(, 1) diff --git a/ext/opcache/tests/jit/assign_dim_010.phpt b/ext/opcache/tests/jit/assign_dim_010.phpt index 56770835ffa96..323e7a79cea9e 100644 --- a/ext/opcache/tests/jit/assign_dim_010.phpt +++ b/ext/opcache/tests/jit/assign_dim_010.phpt @@ -18,7 +18,7 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 DONE diff --git a/ext/opcache/tests/jit/assign_dim_op_002.phpt b/ext/opcache/tests/jit/assign_dim_op_002.phpt index 45a5a79fb929e..fea847531f800 100644 --- a/ext/opcache/tests/jit/assign_dim_op_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_002.phpt @@ -12,4 +12,4 @@ opcache $a[] &= 1; ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/jit/assign_dim_op_003.phpt b/ext/opcache/tests/jit/assign_dim_op_003.phpt index 45b0468948c1e..d456acdfcb607 100644 --- a/ext/opcache/tests/jit/assign_dim_op_003.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_003.phpt @@ -13,4 +13,4 @@ $a[] &= $b; --EXTENSIONS-- opcache --EXPECTF-- -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/jit/assign_obj_002.phpt b/ext/opcache/tests/jit/assign_obj_002.phpt index 2f501ddc07aca..3d93897dc2b1e 100644 --- a/ext/opcache/tests/jit/assign_obj_002.phpt +++ b/ext/opcache/tests/jit/assign_obj_002.phpt @@ -29,8 +29,8 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to property Test::$prop2 of type int diff --git a/ext/opcache/tests/jit/bool_not_002.phpt b/ext/opcache/tests/jit/bool_not_002.phpt index 307c08825692c..5ed6fd915004d 100644 --- a/ext/opcache/tests/jit/bool_not_002.phpt +++ b/ext/opcache/tests/jit/bool_not_002.phpt @@ -19,9 +19,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sbool_not_002.php on line 6 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sbool_not_002.php on line 6 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sbool_not_002.php on line 6 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sbool_not_002.php on line 6 Deprecated: Implicit conversion from float %f to int loses precision in %sbool_not_002.php on line 6 diff --git a/ext/opcache/tests/jit/bw_not_001.phpt b/ext/opcache/tests/jit/bw_not_001.phpt index 3707c7fcaa28e..7e3a5ca100c94 100644 --- a/ext/opcache/tests/jit/bw_not_001.phpt +++ b/ext/opcache/tests/jit/bw_not_001.phpt @@ -12,9 +12,9 @@ $x[~"$x"]*=1; ?> DONE --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %sbw_not_001.php on line 2 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %sbw_not_001.php on line 2 -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %sbw_not_001.php on line 2 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %sbw_not_001.php on line 2 Warning: Undefined array key "" in %sbw_not_001.php on line 2 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/cmp_006.phpt b/ext/opcache/tests/jit/cmp_006.phpt index a43ccbfc759f5..c57898a434d18 100644 --- a/ext/opcache/tests/jit/cmp_006.phpt +++ b/ext/opcache/tests/jit/cmp_006.phpt @@ -44,14 +44,14 @@ test3(false); test4(false); ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d bool(false) diff --git a/ext/opcache/tests/jit/cmp_008.phpt b/ext/opcache/tests/jit/cmp_008.phpt index 3aa00aaa23558..a2e079fd02c78 100644 --- a/ext/opcache/tests/jit/cmp_008.phpt +++ b/ext/opcache/tests/jit/cmp_008.phpt @@ -15,9 +15,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %scmp_008.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %scmp_008.php on line 3 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %scmp_008.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %scmp_008.php on line 3 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %scmp_008.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/fe_reset_001.phpt b/ext/opcache/tests/jit/fe_reset_001.phpt index 3ff823d528e6f..32dc647aab976 100644 --- a/ext/opcache/tests/jit/fe_reset_001.phpt +++ b/ext/opcache/tests/jit/fe_reset_001.phpt @@ -14,23 +14,23 @@ for ($i = 0; $i < 5; $i++) { ?> OK --EXPECTF-- -Warning: Undefined variable $0 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 +Warning: Undefined variable $0 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $1 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 +Warning: Undefined variable $1 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $2 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 +Warning: Undefined variable $2 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $3 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 +Warning: Undefined variable $3 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $4 (This will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 +Warning: Undefined variable $4 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 OK diff --git a/ext/opcache/tests/jit/fe_reset_undef.phpt b/ext/opcache/tests/jit/fe_reset_undef.phpt index c97dc3377535e..56d3979520660 100644 --- a/ext/opcache/tests/jit/fe_reset_undef.phpt +++ b/ext/opcache/tests/jit/fe_reset_undef.phpt @@ -16,6 +16,6 @@ function test($c) { test(false); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt index 3356ddd5a3a22..6bfc17b34c5ee 100644 --- a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt +++ b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt @@ -17,7 +17,7 @@ function foo() { var_dump(foo()); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %sfetch_dim_rw_001.php on line 3 diff --git a/ext/opcache/tests/jit/fetch_obj_008.phpt b/ext/opcache/tests/jit/fetch_obj_008.phpt index 0f4a0d635aac2..1a2c6ed6c72e9 100644 --- a/ext/opcache/tests/jit/fetch_obj_008.phpt +++ b/ext/opcache/tests/jit/fetch_obj_008.phpt @@ -25,7 +25,7 @@ $a->prop = new B; ?> DONE --EXPECTF-- -Warning: Undefined variable $e (This will become an error in PHP 9.0) in %sfetch_obj_008.php on line 9 +Warning: Undefined variable $e (this will become an error in PHP 9.0) in %sfetch_obj_008.php on line 9 Warning: Attempt to read property "prop" on string in %sfetch_obj_008.php on line 10 DONE diff --git a/ext/opcache/tests/jit/inc_obj_005.phpt b/ext/opcache/tests/jit/inc_obj_005.phpt index f02b596e0c5e1..711cf9645323b 100644 --- a/ext/opcache/tests/jit/inc_obj_005.phpt +++ b/ext/opcache/tests/jit/inc_obj_005.phpt @@ -11,7 +11,7 @@ opcache.protect_memory=1 json_encode($y)->y++; ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sinc_obj_005.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sinc_obj_005.php on line 2 Fatal error: Uncaught Error: Attempt to increment/decrement property "y" on string in %sinc_obj_005.php:2 Stack trace: diff --git a/ext/opcache/tests/jit/isset_001.phpt b/ext/opcache/tests/jit/isset_001.phpt index 7851df64d205d..ce4732ce03533 100644 --- a/ext/opcache/tests/jit/isset_001.phpt +++ b/ext/opcache/tests/jit/isset_001.phpt @@ -13,5 +13,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d bool(false) diff --git a/ext/opcache/tests/jit/mul_009.phpt b/ext/opcache/tests/jit/mul_009.phpt index 9e5491a4f375d..1f81a541168bc 100644 --- a/ext/opcache/tests/jit/mul_009.phpt +++ b/ext/opcache/tests/jit/mul_009.phpt @@ -12,7 +12,7 @@ $x[""][] = 1; $x[~"$y"] *= 1; ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %smul_009.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %smul_009.php on line 3 Fatal error: Uncaught TypeError: Unsupported operand types: array * int in %smul_009.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/qm_assign_002.phpt b/ext/opcache/tests/jit/qm_assign_002.phpt index dfd8759c76d81..40f18434b2f7a 100644 --- a/ext/opcache/tests/jit/qm_assign_002.phpt +++ b/ext/opcache/tests/jit/qm_assign_002.phpt @@ -19,11 +19,11 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sqm_assign_002.php on line 5 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sqm_assign_002.php on line 5 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 Warning: Array to string conversion in %sqm_assign_002.php on line 5 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_004.phpt b/ext/opcache/tests/jit/reg_alloc_004.phpt index 737ac574d3281..fedc8a3a30424 100644 --- a/ext/opcache/tests/jit/reg_alloc_004.phpt +++ b/ext/opcache/tests/jit/reg_alloc_004.phpt @@ -22,13 +22,13 @@ function createTree($depth) { createTree(4); ?> --EXPECTF-- -Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d (This will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 Fatal error: Uncaught Error: First array member is not a valid class name or object in %sreg_alloc_004.php:7 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_006.phpt b/ext/opcache/tests/jit/reg_alloc_006.phpt index 4c2f30896f501..665a97d1331eb 100644 --- a/ext/opcache/tests/jit/reg_alloc_006.phpt +++ b/ext/opcache/tests/jit/reg_alloc_006.phpt @@ -18,17 +18,17 @@ foo() ?> DONE --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_007.phpt b/ext/opcache/tests/jit/reg_alloc_007.phpt index 03bbb0ca872ed..31ee9bdab9538 100644 --- a/ext/opcache/tests/jit/reg_alloc_007.phpt +++ b/ext/opcache/tests/jit/reg_alloc_007.phpt @@ -17,7 +17,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sreg_alloc_007.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sreg_alloc_007.php on line 4 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %sreg_alloc_007.php:6 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_008.phpt b/ext/opcache/tests/jit/reg_alloc_008.phpt index 9f4936c7ecca5..81d49c71d3ae7 100644 --- a/ext/opcache/tests/jit/reg_alloc_008.phpt +++ b/ext/opcache/tests/jit/reg_alloc_008.phpt @@ -14,4 +14,4 @@ function foo($a) { foo(7); ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_008.php on line 4 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_008.php on line 4 diff --git a/ext/opcache/tests/jit/reg_alloc_009.phpt b/ext/opcache/tests/jit/reg_alloc_009.phpt index 7127f0442671f..a8c2044c3c600 100644 --- a/ext/opcache/tests/jit/reg_alloc_009.phpt +++ b/ext/opcache/tests/jit/reg_alloc_009.phpt @@ -15,7 +15,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $j (This will become an error in PHP 9.0) in %sreg_alloc_009.php on line 4 +Warning: Undefined variable $j (this will become an error in PHP 9.0) in %sreg_alloc_009.php on line 4 Fatal error: Uncaught ArithmeticError: Bit shift by negative number in %sreg_alloc_009.php:4 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_010.phpt b/ext/opcache/tests/jit/reg_alloc_010.phpt index 5ebfc371ffc73..6d01f4b67b07d 100644 --- a/ext/opcache/tests/jit/reg_alloc_010.phpt +++ b/ext/opcache/tests/jit/reg_alloc_010.phpt @@ -18,7 +18,7 @@ foo(null); ?> DONE --EXPECTF-- -Warning: Undefined variable $cnt (This will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 +Warning: Undefined variable $cnt (this will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 -Warning: Undefined variable $cnt (This will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 +Warning: Undefined variable $cnt (this will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_013.phpt b/ext/opcache/tests/jit/reg_alloc_013.phpt index de213f6538e56..e327d61ad948b 100644 --- a/ext/opcache/tests/jit/reg_alloc_013.phpt +++ b/ext/opcache/tests/jit/reg_alloc_013.phpt @@ -15,5 +15,5 @@ foo(); ?> DONE --EXPECTF-- -Warning: Undefined variable $j (This will become an error in PHP 9.0) in %sreg_alloc_013.php on line 3 +Warning: Undefined variable $j (this will become an error in PHP 9.0) in %sreg_alloc_013.php on line 3 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_014.phpt b/ext/opcache/tests/jit/reg_alloc_014.phpt index a073a32e8f6e5..b486a5b515165 100644 --- a/ext/opcache/tests/jit/reg_alloc_014.phpt +++ b/ext/opcache/tests/jit/reg_alloc_014.phpt @@ -17,5 +17,5 @@ foo(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sreg_alloc_014.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sreg_alloc_014.php on line 4 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_015.phpt b/ext/opcache/tests/jit/reg_alloc_015.phpt index b05fb618dc7e6..ee14bc00db0c5 100644 --- a/ext/opcache/tests/jit/reg_alloc_015.phpt +++ b/ext/opcache/tests/jit/reg_alloc_015.phpt @@ -16,7 +16,7 @@ foo() ?> DONE --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 DONE diff --git a/ext/opcache/tests/jit/send_val_002.phpt b/ext/opcache/tests/jit/send_val_002.phpt index 1ecdea292ac92..af511043bf8f0 100644 --- a/ext/opcache/tests/jit/send_val_002.phpt +++ b/ext/opcache/tests/jit/send_val_002.phpt @@ -13,7 +13,7 @@ function o(){ o(); ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %ssend_val_002.php on line 3 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %ssend_val_002.php on line 3 Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %ssend_val_002.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/shift_right_004.phpt b/ext/opcache/tests/jit/shift_right_004.phpt index 0790dce01f351..bffa394ffec0e 100644 --- a/ext/opcache/tests/jit/shift_right_004.phpt +++ b/ext/opcache/tests/jit/shift_right_004.phpt @@ -21,11 +21,11 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sshift_right_004.php on line 8 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sshift_right_004.php on line 8 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sshift_right_004.php on line 8 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sshift_right_004.php on line 8 -Warning: Undefined variable $c (This will become an error in PHP 9.0) in %sshift_right_004.php on line 7 +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %sshift_right_004.php on line 7 Warning: Undefined array key 0 in %sshift_right_004.php on line 7 diff --git a/ext/opcache/tests/jit/undef_to_typed_ref.phpt b/ext/opcache/tests/jit/undef_to_typed_ref.phpt index 3c6e94610bce5..e333db432af0d 100644 --- a/ext/opcache/tests/jit/undef_to_typed_ref.phpt +++ b/ext/opcache/tests/jit/undef_to_typed_ref.phpt @@ -88,20 +88,20 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string diff --git a/ext/opcache/tests/jit/verify_return_undef.phpt b/ext/opcache/tests/jit/verify_return_undef.phpt index 5617ade1fc0dd..a4143da111151 100644 --- a/ext/opcache/tests/jit/verify_return_undef.phpt +++ b/ext/opcache/tests/jit/verify_return_undef.phpt @@ -20,5 +20,5 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d test(): Return value must be of type int, null returned diff --git a/ext/opcache/tests/jmpz_jmp_elim.phpt b/ext/opcache/tests/jmpz_jmp_elim.phpt index 1d6f32f1c0eee..76d67460ec591 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-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d done diff --git a/ext/opcache/tests/opt/assign_op_001.phpt b/ext/opcache/tests/opt/assign_op_001.phpt index b99e76500eecd..03ea6335f703a 100644 --- a/ext/opcache/tests/opt/assign_op_001.phpt +++ b/ext/opcache/tests/opt/assign_op_001.phpt @@ -17,9 +17,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_op_001.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_op_001.php on line 4 -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sassign_op_001.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_op_001.php on line 4 Warning: Undefined array key "b" in %sassign_op_001.php on line 7 diff --git a/ext/opcache/tests/opt/coalesce_002.phpt b/ext/opcache/tests/opt/coalesce_002.phpt index 3d507c453b9ba..7cbc3e6602e78 100644 --- a/ext/opcache/tests/opt/coalesce_002.phpt +++ b/ext/opcache/tests/opt/coalesce_002.phpt @@ -12,7 +12,7 @@ function t() { t(); ?> --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %scoalesce_002.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %scoalesce_002.php on line 3 Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %scoalesce_002.php:3 Stack trace: diff --git a/ext/opcache/tests/opt/dce_011.phpt b/ext/opcache/tests/opt/dce_011.phpt index a07ca323f330e..1dd2c84e30862 100644 --- a/ext/opcache/tests/opt/dce_011.phpt +++ b/ext/opcache/tests/opt/dce_011.phpt @@ -6,7 +6,7 @@ Incorrect DCE of ADD_ARRAY_ELEMENT ?> DONE --EXPECTF-- -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %sdce_011.php on line 2 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sdce_011.php on line 2 -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %sdce_011.php on line 2 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sdce_011.php on line 2 DONE diff --git a/ext/opcache/tests/opt/inference_001.phpt b/ext/opcache/tests/opt/inference_001.phpt index 141e70853d9df..636823ecaef3e 100644 --- a/ext/opcache/tests/opt/inference_001.phpt +++ b/ext/opcache/tests/opt/inference_001.phpt @@ -28,13 +28,13 @@ test2(); ?> DONE --EXPECTF-- -Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "x" on null in %s on line %d Warning: Undefined property: stdClass::$x in %s on line %d -Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "x" on null in %s on line %d DONE diff --git a/ext/opcache/tests/opt/sccp_034.phpt b/ext/opcache/tests/opt/sccp_034.phpt index 390bb216ae672..ffaedf4d09cd2 100644 --- a/ext/opcache/tests/opt/sccp_034.phpt +++ b/ext/opcache/tests/opt/sccp_034.phpt @@ -10,7 +10,7 @@ is_array(["$y $y"]); ?> DONE --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %ssccp_034.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %ssccp_034.php on line 2 -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %ssccp_034.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %ssccp_034.php on line 2 DONE diff --git a/ext/opcache/tests/opt/sccp_040.phpt b/ext/opcache/tests/opt/sccp_040.phpt index 0dfbdafa64581..0675387044e46 100644 --- a/ext/opcache/tests/opt/sccp_040.phpt +++ b/ext/opcache/tests/opt/sccp_040.phpt @@ -13,7 +13,7 @@ function f() { f(); ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %ssccp_040.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %ssccp_040.php on line 3 Fatal error: Uncaught Error: Array callback must have exactly two elements in %ssccp_040.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/tmp_001.phpt b/ext/opcache/tests/opt/tmp_001.phpt index 5f636cd8324a1..4582ab5486066 100644 --- a/ext/opcache/tests/opt/tmp_001.phpt +++ b/ext/opcache/tests/opt/tmp_001.phpt @@ -9,7 +9,7 @@ opcache.optimization_level=-1 is_a((int)" $y " + 0); ?> --EXPECTF-- -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %stmp_001.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %stmp_001.php on line 2 Fatal error: Uncaught ArgumentCountError: is_a() expects at least 2 arguments, 1 given in %stmp_001.php:2 Stack trace: diff --git a/ext/opcache/tests/wrong_inlining_003.phpt b/ext/opcache/tests/wrong_inlining_003.phpt index 793a8f25437f3..86696fb57ecf5 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-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d int(42) diff --git a/ext/pdo_sqlite/tests/bug43831.phpt b/ext/pdo_sqlite/tests/bug43831.phpt index 5ad4de0a1dce5..bb633eb0fbe0c 100644 --- a/ext/pdo_sqlite/tests/bug43831.phpt +++ b/ext/pdo_sqlite/tests/bug43831.phpt @@ -49,5 +49,5 @@ object(PDO)#%d (0) { object(MyPDO)#%d (0) { } -Warning: Undefined variable $bar (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $bar (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/pgsql/tests/bug72195.phpt b/ext/pgsql/tests/bug72195.phpt index 00de91e7948ca..b9675d2c885e1 100644 --- a/ext/pgsql/tests/bug72195.phpt +++ b/ext/pgsql/tests/bug72195.phpt @@ -14,5 +14,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $var1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $var1 (this will become an error in PHP 9.0) in %s on line %d pg_pconnect() expects at most 2 arguments, 4 given diff --git a/ext/reflection/tests/ReflectionParameter_003.phpt b/ext/reflection/tests/ReflectionParameter_003.phpt index 33a2ca247e1bd..d9e36f420288c 100644 --- a/ext/reflection/tests/ReflectionParameter_003.phpt +++ b/ext/reflection/tests/ReflectionParameter_003.phpt @@ -56,7 +56,7 @@ foreach($refParameters as $parameter) { hello from test third is jack -Warning: Undefined variable $theIncrement (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $theIncrement (this will become an error in PHP 9.0) in %s on line %d parameter names from staticMethod method: object(ReflectionParameter)#%d (1) { diff --git a/ext/session/tests/session_decode_variation3.phpt b/ext/session/tests/session_decode_variation3.phpt index 1d0d46cfda77d..263348a8e5485 100644 --- a/ext/session/tests/session_decode_variation3.phpt +++ b/ext/session/tests/session_decode_variation3.phpt @@ -33,7 +33,7 @@ ob_end_flush(); Warning: session_start(): Cannot find session serialization handler "blah" - session startup failed in %s on line %d bool(false) -Warning: Undefined global variable $_SESSION (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $_SESSION (this will become an error in PHP 9.0) in %s on line %d NULL array(3) { ["foo"]=> diff --git a/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt b/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt index 3e7ff2e890e7f..904329f0dcbed 100644 --- a/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt +++ b/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt @@ -45,7 +45,7 @@ var_dump(session_id(), $oldHandler, ini_get('session.save_handler'), $handler->i Open: SessionHandler::open() expects exactly 2 arguments, 0 given -Warning: Undefined global variable $_SESSION (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined global variable $_SESSION (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(5) "files" string(4) "user" diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt index f48fe517df34c..57944845d2358 100644 --- a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt +++ b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt @@ -17,5 +17,5 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $x (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d simplexml_load_string(): Argument #3 ($options) is too large diff --git a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt index 903e3c669c1be..c7c84a2fc4b86 100644 --- a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt +++ b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt @@ -84,7 +84,7 @@ array(2) { --> exchangeArray() with no arg: Exception: ArrayObject::exchangeArray() expects exactly 1 argument, 0 given -Warning: Undefined variable $copy (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $copy (this will become an error in PHP 9.0) in %s on line %d object(ArrayObject)#2 (1) { ["storage":"ArrayObject":private]=> object(C)#3 (2) { @@ -106,7 +106,7 @@ NULL --> exchangeArray() with bad arg type: ArrayObject::exchangeArray(): Argument #1 ($array) must be of type array, null given -Warning: Undefined variable $copy (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $copy (this will become an error in PHP 9.0) in %s on line %d object(ArrayObject)#3 (1) { ["storage":"ArrayObject":private]=> object(C)#2 (2) { diff --git a/ext/spl/tests/array_026.phpt b/ext/spl/tests/array_026.phpt index 60b43695c0cfa..43a6a4488b99d 100644 --- a/ext/spl/tests/array_026.phpt +++ b/ext/spl/tests/array_026.phpt @@ -8,7 +8,7 @@ $test['d1']['d3'] = 'world'; var_dump($test, $test3['mmmmm']); ?> --EXPECTF-- -Warning: Undefined variable $test3 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $test3 (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d object(ArrayObject)#1 (1) { diff --git a/ext/spl/tests/bug62978.phpt b/ext/spl/tests/bug62978.phpt index 17e6ee5edc9ff..47c9fb4f42779 100644 --- a/ext/spl/tests/bug62978.phpt +++ b/ext/spl/tests/bug62978.phpt @@ -32,7 +32,7 @@ NULL Warning: Undefined array key "epic_magic" in %s on line %d NULL -Warning: Undefined variable $c (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL diff --git a/ext/spl/tests/bug72888.phpt b/ext/spl/tests/bug72888.phpt index 8d9e964ac60e9..1675f02f665c2 100644 --- a/ext/spl/tests/bug72888.phpt +++ b/ext/spl/tests/bug72888.phpt @@ -14,5 +14,5 @@ var_dump($y); --EXPECTF-- string(60) "Trying to clone an uncloneable object of class SplFileObject" -Warning: Undefined variable $y (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/standard/array.c b/ext/standard/array.c index 0de5dacf591e5..125d38c06c2ca 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2478,7 +2478,7 @@ static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_valu zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data); } } else { - php_error_docref(NULL, E_WARNING, "Undefined variable $%s (This will become an error in PHP 9.0)", ZSTR_VAL(Z_STR_P(entry))); + php_error_docref(NULL, E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(Z_STR_P(entry))); } } else if (Z_TYPE_P(entry) == IS_ARRAY) { if (Z_REFCOUNTED_P(entry)) { diff --git a/ext/standard/tests/array/array_fill_keys_variation4.phpt b/ext/standard/tests/array/array_fill_keys_variation4.phpt index 42e5abe3242e5..a4e77ac535adc 100644 --- a/ext/standard/tests/array/array_fill_keys_variation4.phpt +++ b/ext/standard/tests/array/array_fill_keys_variation4.phpt @@ -77,7 +77,7 @@ array(1) { -- Testing array_fill_keys() function with unset var -- -Warning: Undefined variable $unset_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $unset_var (this will become an error in PHP 9.0) in %s on line %d array(1) { ["one"]=> NULL diff --git a/ext/standard/tests/array/bug30074.phpt b/ext/standard/tests/array/bug30074.phpt index 7087050dd0f32..ca3764c56b1e9 100644 --- a/ext/standard/tests/array/bug30074.phpt +++ b/ext/standard/tests/array/bug30074.phpt @@ -7,7 +7,7 @@ var_dump(array($a)); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undefined (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undefined (this will become an error in PHP 9.0) in %s on line %d array(1) { [0]=> NULL diff --git a/ext/standard/tests/array/bug69198.phpt b/ext/standard/tests/array/bug69198.phpt index 36a858461351e..528226601b260 100644 --- a/ext/standard/tests/array/bug69198.phpt +++ b/ext/standard/tests/array/bug69198.phpt @@ -9,7 +9,7 @@ $result = compact('willNeverBeDefined'); var_dump($result, empty($result), $result === array(), empty($willNeverBeDefined)); ?> --EXPECTF-- -Warning: compact(): Undefined variable $willNeverBeDefined (This will become an error in PHP 9.0) in %s on line %d +Warning: compact(): Undefined variable $willNeverBeDefined (this will become an error in PHP 9.0) in %s on line %d array(0) { } bool(true) diff --git a/ext/standard/tests/array/compact.phpt b/ext/standard/tests/array/compact.phpt index bfe2f472bb42d..a63748daf00ba 100644 --- a/ext/standard/tests/array/compact.phpt +++ b/ext/standard/tests/array/compact.phpt @@ -20,7 +20,7 @@ var_dump($result); ?> --EXPECTF-- -Warning: compact(): Undefined variable $c\u0327ity (This will become an error in PHP 9.0) in %s on line %d +Warning: compact(): Undefined variable $c\u0327ity (this will become an error in PHP 9.0) in %s on line %d array(2) { ["event"]=> string(8) "SIGGRAPH" diff --git a/ext/standard/tests/array/compact_basic.phpt b/ext/standard/tests/array/compact_basic.phpt index eb62490540201..5425383378b6f 100644 --- a/ext/standard/tests/array/compact_basic.phpt +++ b/ext/standard/tests/array/compact_basic.phpt @@ -67,7 +67,7 @@ array(2) { float(0.2) } -Warning: compact(): Undefined variable $g (This will become an error in PHP 9.0) in %s on line %d +Warning: compact(): Undefined variable $g (this will become an error in PHP 9.0) in %s on line %d array(0) { } Done diff --git a/ext/standard/tests/array/compact_variation2.phpt b/ext/standard/tests/array/compact_variation2.phpt index ee1444ca4395b..9ebb0dd63afcf 100644 --- a/ext/standard/tests/array/compact_variation2.phpt +++ b/ext/standard/tests/array/compact_variation2.phpt @@ -20,7 +20,7 @@ f(); --EXPECTF-- *** Testing compact() : usage variations - variables outside of current scope *** -Warning: compact(): Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: compact(): Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d array(2) { ["b"]=> string(3) "f.b" @@ -28,7 +28,7 @@ array(2) { string(3) "f.c" } -Warning: compact(): Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: compact(): Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d array(2) { ["b"]=> string(3) "f.b" diff --git a/ext/standard/tests/class_object/get_class_variation_001.phpt b/ext/standard/tests/class_object/get_class_variation_001.phpt index 5be3babcf16a1..557d4456426f5 100644 --- a/ext/standard/tests/class_object/get_class_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_variation_001.phpt @@ -74,9 +74,9 @@ echo "Done"; --EXPECTF-- *** Testing get_class() : usage variations *** -Warning: Undefined variable $undefined_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undefined_var (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $unset_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $unset_var (this will become an error in PHP 9.0) in %s on line %d Arg value: 0 (type: integer) get_class(): Argument #1 ($object) must be of type object, int given diff --git a/ext/standard/tests/class_object/is_a_variation_001.phpt b/ext/standard/tests/class_object/is_a_variation_001.phpt index 81e220f859281..ebc19570a3061 100644 --- a/ext/standard/tests/class_object/is_a_variation_001.phpt +++ b/ext/standard/tests/class_object/is_a_variation_001.phpt @@ -72,9 +72,9 @@ echo "Done"; --EXPECTF-- *** Testing is_a() : usage variations *** -Warning: Undefined variable $undefined_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undefined_var (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $unset_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $unset_var (this will become an error in PHP 9.0) in %s on line %d Arg value 0 bool(false) diff --git a/ext/standard/tests/file/005_variation2.phpt b/ext/standard/tests/file/005_variation2.phpt index 89faa81115c98..8dcd0b9c878ce 100644 --- a/ext/standard/tests/file/005_variation2.phpt +++ b/ext/standard/tests/file/005_variation2.phpt @@ -55,7 +55,7 @@ echo "Done"; *** testing touch *** -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) diff --git a/ext/standard/tests/general_functions/bug32647.phpt b/ext/standard/tests/general_functions/bug32647.phpt index 86ffd8d841bf8..3a36ed7fdc589 100644 --- a/ext/standard/tests/general_functions/bug32647.phpt +++ b/ext/standard/tests/general_functions/bug32647.phpt @@ -72,10 +72,10 @@ register_shutdown_function(array($obj,'barfoo')); ?> --EXPECTF-- -Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object -Warning: Undefined variable $obj (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object register_shutdown_function(): Argument #1 ($callback) must be a valid callback, class bar does not have a method "foo" diff --git a/ext/standard/tests/general_functions/bug60723.phpt b/ext/standard/tests/general_functions/bug60723.phpt index 9ef62cb31779c..0589acdfd1daf 100644 --- a/ext/standard/tests/general_functions/bug60723.phpt +++ b/ext/standard/tests/general_functions/bug60723.phpt @@ -14,6 +14,6 @@ readfile($log); unlink($log); ?> --EXPECTF-- -Warning: Undefined variable $aa (This will become an error in PHP 9.0) in %s on line %d -[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $aa (this will become an error in PHP 9.0) in %s on line %d +[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa (this will become an error in PHP 9.0) in %s on line %d [%s ASIA/Chongqing] dummy diff --git a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt index 736ac52033bd3..fdc4a798bda4f 100644 --- a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt +++ b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt @@ -142,7 +142,7 @@ int(10) -- Value of $ref_first_var -- -Warning: Undefined variable $ref_first_var (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $ref_first_var (this will become an error in PHP 9.0) in %s on line %d NULL -- Value of $first_var -- @@ -161,7 +161,7 @@ int(10) -- Value of $var_3: (after unsetting var_3) -- -Warning: Undefined variable $var_3 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $var_3 (this will become an error in PHP 9.0) in %s on line %d NULL -- Value of $var_2: -- @@ -172,7 +172,7 @@ int(10) -- Value of $var_1: (after unsetting variable_1) -- -Warning: Undefined variable $var_1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $var_1 (this will become an error in PHP 9.0) in %s on line %d NULL -- Value of $var_2: -- diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt index f9bbb80c5bdb0..8c8ff46bcf87b 100644 --- a/ext/standard/tests/general_functions/error_get_last.phpt +++ b/ext/standard/tests/general_functions/error_get_last.phpt @@ -22,7 +22,7 @@ NULL error_get_last() expects exactly 0 arguments, 1 given NULL -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d array(4) { ["type"]=> int(2) diff --git a/ext/standard/tests/serialize/serialization_objects_002.phpt b/ext/standard/tests/serialize/serialization_objects_002.phpt index d336fafc0b8ce..936f9a27e86f1 100644 --- a/ext/standard/tests/serialize/serialization_objects_002.phpt +++ b/ext/standard/tests/serialize/serialization_objects_002.phpt @@ -71,9 +71,9 @@ echo "\nDone"; --EXPECTF-- --- Testing Variations in objects --- -Warning: Undefined variable $file_handle (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $file_handle (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $file_handle (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $file_handle (this will become an error in PHP 9.0) in %s on line %d After Serialization => string(493) "O:1:"C":8:{s:1:"a";i:10;s:1:"b";s:6:"string";s:1:"c";b:1;s:1:"d";d:-2.344440000000000079438677857979200780391693115234375;s:1:"e";a:7:{i:0;i:1;i:1;d:2.220000000000000195399252334027551114559173583984375;i:2;s:6:"string";i:3;b:1;i:4;a:0:{}i:5;O:7:"members":3:{s:20:"%0members%0var_private";i:10;s:16:"%0*%0var_protected";s:6:"string";s:10:"var_public";a:3:{i:0;d:-100.1230000000000046611603465862572193145751953125;i:1;s:6:"string";i:2;b:1;}}i:6;N;}s:1:"f";O:9:"nomembers":0:{}s:1:"g";N;s:1:"h";N;}" After Unserialization => object(C)#%d (8) { ["a"]=> diff --git a/ext/standard/tests/strings/crc32_variation3.phpt b/ext/standard/tests/strings/crc32_variation3.phpt index f01b74cba734e..8a2293957c8d3 100644 --- a/ext/standard/tests/strings/crc32_variation3.phpt +++ b/ext/standard/tests/strings/crc32_variation3.phpt @@ -71,9 +71,9 @@ echo "Done"; --EXPECTF-- *** Testing crc32() : with different strings in double quotes *** -Warning: Undefined variable $hello (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $hello (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $world (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $world (this will become an error in PHP 9.0) in %s on line %d -- Iteration 1 -- int(0) diff --git a/ext/standard/tests/strings/lcfirst.phpt b/ext/standard/tests/strings/lcfirst.phpt index ce535e45088c1..15692a49aa655 100644 --- a/ext/standard/tests/strings/lcfirst.phpt +++ b/ext/standard/tests/strings/lcfirst.phpt @@ -189,7 +189,7 @@ string(0) "" string(5) "world" string(7) "world'S" -Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(6) "worldS" string(6) "worldS" diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt index f48b96b6864f1..79cb47bb73b11 100644 --- a/ext/standard/tests/strings/str_replace_variation3.phpt +++ b/ext/standard/tests/strings/str_replace_variation3.phpt @@ -220,7 +220,7 @@ int(0) string(5) "FOUND" string(5) "FOUND" -Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(5) "FOUND" string(5) "FOUND" diff --git a/ext/standard/tests/strings/str_word_count1.phpt b/ext/standard/tests/strings/str_word_count1.phpt index cdc6c8c6556da..16d2ecaace7eb 100644 --- a/ext/standard/tests/strings/str_word_count1.phpt +++ b/ext/standard/tests/strings/str_word_count1.phpt @@ -23,8 +23,8 @@ var_dump($a); int(0) str_word_count(): Argument #2 ($format) must be a valid format value -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d str_word_count(): Argument #2 ($format) must be a valid format value -Warning: Undefined variable $a (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index b2596878f7a1f..b4236b7d03d55 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -120,44 +120,44 @@ Array ( [0] => a [1] => A - [2] => € - [3] => ÿ + [2] => � + [3] => � [4] => %0 ) Iteration 0 - strcasecmp of 'a' and 'a' is => int(0) - strcasecmp of 'a' and 'A' is => int(0) -- strcasecmp of 'a' and '€' is => int(-%d) -- strcasecmp of 'a' and 'ÿ' is => int(-%d) +- strcasecmp of 'a' and '�' is => int(-%d) +- strcasecmp of 'a' and '�' is => int(-%d) - strcasecmp of 'a' and '%0' is => int(%d) Iteration 1 - strcasecmp of 'A' and 'a' is => int(0) - strcasecmp of 'A' and 'A' is => int(0) -- strcasecmp of 'A' and '€' is => int(-%d) -- strcasecmp of 'A' and 'ÿ' is => int(-%d) +- strcasecmp of 'A' and '�' is => int(-%d) +- strcasecmp of 'A' and '�' is => int(-%d) - strcasecmp of 'A' and '%0' is => int(%d) Iteration 2 -- strcasecmp of '€' and 'a' is => int(%d) -- strcasecmp of '€' and 'A' is => int(%d) -- strcasecmp of '€' and '€' is => int(0) -- strcasecmp of '€' and 'ÿ' is => int(-%d) -- strcasecmp of '€' and '%0' is => int(%d) +- strcasecmp of '�' and 'a' is => int(%d) +- strcasecmp of '�' and 'A' is => int(%d) +- strcasecmp of '�' and '�' is => int(0) +- strcasecmp of '�' and '�' is => int(-%d) +- strcasecmp of '�' and '%0' is => int(%d) Iteration 3 -- strcasecmp of 'ÿ' and 'a' is => int(%d) -- strcasecmp of 'ÿ' and 'A' is => int(%d) -- strcasecmp of 'ÿ' and '€' is => int(%d) -- strcasecmp of 'ÿ' and 'ÿ' is => int(0) -- strcasecmp of 'ÿ' and '%0' is => int(%d) +- strcasecmp of '�' and 'a' is => int(%d) +- strcasecmp of '�' and 'A' is => int(%d) +- strcasecmp of '�' and '�' is => int(%d) +- strcasecmp of '�' and '�' is => int(0) +- strcasecmp of '�' and '%0' is => int(%d) Iteration 4 - strcasecmp of '%0' and 'a' is => int(-%d) - strcasecmp of '%0' and 'A' is => int(-%d) -- strcasecmp of '%0' and '€' is => int(-%d) -- strcasecmp of '%0' and 'ÿ' is => int(-%d) +- strcasecmp of '%0' and '�' is => int(-%d) +- strcasecmp of '%0' and '�' is => int(-%d) - strcasecmp of '%0' and '%0' is => int(0) *** comparing the strings in an @@ -542,7 +542,7 @@ int(-%d) int(-%d) int(-%d) -Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d int(%d) int(-%d) int(-%d) diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index 01648cc022112..a077cbc5b7aa3 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -122,8 +122,8 @@ Array [1] => A [2] => a [3] => A - [4] => € - [5] => ÿ + [4] => � + [5] => � [6] => %0 ) @@ -132,8 +132,8 @@ Iteration 0 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '€' is => int(-%d) -- strcmp of 'a' and 'ÿ' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 1 @@ -141,8 +141,8 @@ Iteration 1 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '€' is => int(-%d) -- strcmp of 'A' and 'ÿ' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 2 @@ -150,8 +150,8 @@ Iteration 2 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '€' is => int(-%d) -- strcmp of 'a' and 'ÿ' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '�' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 3 @@ -159,35 +159,35 @@ Iteration 3 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '€' is => int(-%d) -- strcmp of 'A' and 'ÿ' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '�' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 4 -- strcmp of '€' and 'a' is => int(%d) -- strcmp of '€' and 'A' is => int(%d) -- strcmp of '€' and 'a' is => int(%d) -- strcmp of '€' and 'A' is => int(%d) -- strcmp of '€' and '€' is => int(0) -- strcmp of '€' and 'ÿ' is => int(-%d) -- strcmp of '€' and '%0' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and '�' is => int(0) +- strcmp of '�' and '�' is => int(-%d) +- strcmp of '�' and '%0' is => int(%d) Iteration 5 -- strcmp of 'ÿ' and 'a' is => int(%d) -- strcmp of 'ÿ' and 'A' is => int(%d) -- strcmp of 'ÿ' and 'a' is => int(%d) -- strcmp of 'ÿ' and 'A' is => int(%d) -- strcmp of 'ÿ' and '€' is => int(%d) -- strcmp of 'ÿ' and 'ÿ' is => int(0) -- strcmp of 'ÿ' and '%0' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and 'a' is => int(%d) +- strcmp of '�' and 'A' is => int(%d) +- strcmp of '�' and '�' is => int(%d) +- strcmp of '�' and '�' is => int(0) +- strcmp of '�' and '%0' is => int(%d) Iteration 6 - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) -- strcmp of '%0' and '€' is => int(-%d) -- strcmp of '%0' and 'ÿ' is => int(-%d) +- strcmp of '%0' and '�' is => int(-%d) +- strcmp of '%0' and '�' is => int(-%d) - strcmp of '%0' and '%0' is => int(0) *** comparing the strings in an @@ -550,7 +550,7 @@ int(-%d) int(-%d) int(-%d) -Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d int(%d) int(-%d) int(-%d) diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index 3d1fb792e1454..68302dee026fe 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -181,7 +181,7 @@ int(0) int(5) int(7) -Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d int(0) int(6) int(6) diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt index 2a90122016123..561dcca5bbb92 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt @@ -271,7 +271,7 @@ bool(false) int(7) int(7) -Warning: Undefined variable $needleS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $needleS (this will become an error in PHP 9.0) in %s on line %d int(0) int(7) int(7) diff --git a/ext/standard/tests/strings/strstr.phpt b/ext/standard/tests/strings/strstr.phpt index 127cda5d41e5c..6f64eb924a225 100644 --- a/ext/standard/tests/strings/strstr.phpt +++ b/ext/standard/tests/strings/strstr.phpt @@ -338,7 +338,7 @@ bool(false) string(5) "world" string(7) "world'S" -Warning: Undefined variable $needleS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $needleS (this will become an error in PHP 9.0) in %s on line %d string(13) "Hello, worldS" string(6) "worldS" string(6) "worldS" diff --git a/ext/standard/tests/strings/ucfirst.phpt b/ext/standard/tests/strings/ucfirst.phpt index 42f723b800013..87b4b235da8f3 100644 --- a/ext/standard/tests/strings/ucfirst.phpt +++ b/ext/standard/tests/strings/ucfirst.phpt @@ -157,7 +157,7 @@ string(0) "" string(5) "World" string(7) "World'S" -Warning: Undefined variable $strS (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(6) "WorldS" string(6) "WorldS" diff --git a/ext/zend_test/tests/observer_error_03.phpt b/ext/zend_test/tests/observer_error_03.phpt index 20be5dd5ff6ad..459c4eaf72294 100644 --- a/ext/zend_test/tests/observer_error_03.phpt +++ b/ext/zend_test/tests/observer_error_03.phpt @@ -31,7 +31,7 @@ echo 'Done.' . PHP_EOL; -Warning: Undefined variable $this_does_not_exit (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $this_does_not_exit (this will become an error in PHP 9.0) in %s on line %d After error. diff --git a/ext/zend_test/tests/observer_retval_05.phpt b/ext/zend_test/tests/observer_retval_05.phpt index c32d05ea6dfde..98e617c7ec3a8 100644 --- a/ext/zend_test/tests/observer_retval_05.phpt +++ b/ext/zend_test/tests/observer_retval_05.phpt @@ -23,11 +23,11 @@ echo 'Done' . PHP_EOL; -Warning: Undefined variable $i_do_not_exist (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i_do_not_exist (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $i_do_not_exist (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $i_do_not_exist (this will become an error in PHP 9.0) in %s on line %d Done diff --git a/tests/basic/025.phpt b/tests/basic/025.phpt index b4c3faff0a145..1b1524b5cbaba 100644 --- a/tests/basic/025.phpt +++ b/tests/basic/025.phpt @@ -13,7 +13,7 @@ var_dump($_POST, $HTTP_RAW_POST_DATA); --EXPECTF-- Warning: PHP Request Startup: POST Content-Length of 2050 bytes exceeds the limit of 1024 bytes in Unknown on line 0 -Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d array(0) { } NULL diff --git a/tests/basic/enable_post_data_reading_01.phpt b/tests/basic/enable_post_data_reading_01.phpt index 597e84f63be91..02787238f75e4 100644 --- a/tests/basic/enable_post_data_reading_01.phpt +++ b/tests/basic/enable_post_data_reading_01.phpt @@ -19,7 +19,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/basic/enable_post_data_reading_03.phpt b/tests/basic/enable_post_data_reading_03.phpt index 472fb3e3510c7..65871e16708fc 100644 --- a/tests/basic/enable_post_data_reading_03.phpt +++ b/tests/basic/enable_post_data_reading_03.phpt @@ -20,7 +20,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/basic/enable_post_data_reading_04.phpt b/tests/basic/enable_post_data_reading_04.phpt index f7f2871710621..03f10681d0b02 100644 --- a/tests/basic/enable_post_data_reading_04.phpt +++ b/tests/basic/enable_post_data_reading_04.phpt @@ -20,7 +20,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/classes/constants_basic_001.phpt b/tests/classes/constants_basic_001.phpt index a4a0b7e7fec99..4b61fdff16315 100644 --- a/tests/classes/constants_basic_001.phpt +++ b/tests/classes/constants_basic_001.phpt @@ -55,7 +55,7 @@ Class constant declarations echo "\nYou should not see this."; ?> --EXPECTF-- -Warning: Undefined variable $undef (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Attempt to access various kinds of class constants: int(1) diff --git a/tests/lang/bison1.phpt b/tests/lang/bison1.phpt index bcb55f88be7d3..a6bb22bb8777f 100644 --- a/tests/lang/bison1.phpt +++ b/tests/lang/bison1.phpt @@ -5,5 +5,5 @@ Bison weirdness echo "blah-$foo\n"; ?> --EXPECTF-- -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d blah- diff --git a/tests/lang/bug23584.phpt b/tests/lang/bug23584.phpt index b1851cc1225cb..b05c302931409 100644 --- a/tests/lang/bug23584.phpt +++ b/tests/lang/bug23584.phpt @@ -10,4 +10,4 @@ echo $foo; ?> --EXPECTF-- -Warning: Undefined variable $foo (This will become an error in PHP 9.0) in %s on line 6 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line 6 diff --git a/tests/lang/passByReference_003.phpt b/tests/lang/passByReference_003.phpt index adf6816f72bc4..45abc288917ab 100644 --- a/tests/lang/passByReference_003.phpt +++ b/tests/lang/passByReference_003.phpt @@ -25,7 +25,7 @@ var_dump($undef2) --EXPECTF-- Passing undefined by value -Warning: Undefined variable $undef1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef1 (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -34,7 +34,7 @@ NULL After call -Warning: Undefined variable $undef1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $undef1 (this will become an error in PHP 9.0) in %s on line %d NULL Passing undefined by reference diff --git a/tests/lang/passByReference_005.phpt b/tests/lang/passByReference_005.phpt index 774327dcd080f..0304883db6a4b 100644 --- a/tests/lang/passByReference_005.phpt +++ b/tests/lang/passByReference_005.phpt @@ -170,31 +170,31 @@ var_dump($u1, $u2); --EXPECTF-- ---- Pass by ref / pass by val: functions ---- -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" @@ -203,31 +203,31 @@ string(12) "Ref2 changed" ---- Pass by ref / pass by val: static method calls ---- -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" @@ -236,37 +236,37 @@ string(12) "Ref2 changed" ---- Pass by ref / pass by val: instance method calls ---- -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" diff --git a/tests/lang/short_tags.004.phpt b/tests/lang/short_tags.004.phpt index d9491b85ed972..167c736819edf 100644 --- a/tests/lang/short_tags.004.phpt +++ b/tests/lang/short_tags.004.phpt @@ -29,6 +29,6 @@ This gets echoed twice -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b (This will become an error in PHP 9.0) in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d From 8858ca789eb26501a8f5400f1d558ba0fe479d21 Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Mon, 2 Jan 2023 22:33:31 +0000 Subject: [PATCH 6/8] Lowercase this at request of CMB --- Zend/tests/bug61767.phpt | 2 +- Zend/tests/bug79599.phpt | 4 +- Zend/tests/exception_before_fatal.phpt | 14 ++--- Zend/tests/incdec_undef.phpt | 8 +-- Zend/tests/nullsafe_operator/039.phpt | 2 +- Zend/tests/str_offset_006.phpt | 4 +- Zend/tests/str_offset_007.phpt | 2 +- Zend/tests/str_offset_008.phpt | 2 +- Zend/tests/undef_index_to_exception.phpt | 4 +- Zend/zend_vm_def.h | 4 +- Zend/zend_vm_execute.h | 12 ++--- ext/opcache/tests/jit/assign_043.phpt | 2 +- ext/opcache/tests/jit/assign_dim_005.phpt | 4 +- ext/opcache/tests/jit/assign_dim_014.phpt | 2 +- ext/opcache/tests/jit/assign_dim_015.phpt | 2 +- ext/opcache/tests/jit/assign_dim_op_005.phpt | 4 +- .../tests/jit/assign_dim_undef_exception.phpt | 4 +- .../tests/jit/qm_assign_undef_exception.phpt | 2 +- ext/opcache/tests/jit/type_check_001.phpt | 2 +- .../get_class_methods_variation_001.phpt | 4 +- .../get_parent_class_variation_002.phpt | 4 +- .../is_subclass_of_variation_001.phpt | 4 +- .../is_subclass_of_variation_004.phpt | 4 +- .../method_exists_variation_001.phpt | 4 +- .../general_functions/error_clear_last.phpt | 2 +- .../general_functions/error_get_last.phpt | 2 +- .../tests/image/getimagesize_variation2.phpt | 4 +- ext/standard/tests/strings/strcasecmp.phpt | 36 ++++++------- ext/standard/tests/strings/strcmp.phpt | 52 +++++++++---------- tests/lang/bug25922.phpt | 2 +- 30 files changed, 99 insertions(+), 99 deletions(-) diff --git a/Zend/tests/bug61767.phpt b/Zend/tests/bug61767.phpt index 7173ef47472e2..430ce8bf8ea24 100644 --- a/Zend/tests/bug61767.phpt +++ b/Zend/tests/bug61767.phpt @@ -16,7 +16,7 @@ register_shutdown_function(function(){ $undefined->foo(); ?> --EXPECTF-- -Error handler called (Undefined variable $undefined (This will become an error in PHP 9.0)) +Error handler called (Undefined variable $undefined (this will become an error in PHP 9.0)) Fatal error: Uncaught ErrorException: Undefined variable $undefined (this will become an error in PHP 9.0) in %sbug61767.php:%d Stack trace: diff --git a/Zend/tests/bug79599.phpt b/Zend/tests/bug79599.phpt index 415dbc9f621cd..38fdcd310f7ee 100644 --- a/Zend/tests/bug79599.phpt +++ b/Zend/tests/bug79599.phpt @@ -23,5 +23,5 @@ try{ } ?> --EXPECT-- -string(60) "Undefined variable $b (This will become an error in PHP 9.0)" -string(60) "Undefined variable $c (This will become an error in PHP 9.0)" +string(60) "Undefined variable $b (this will become an error in PHP 9.0)" +string(60) "Undefined variable $c (this will become an error in PHP 9.0)" diff --git a/Zend/tests/exception_before_fatal.phpt b/Zend/tests/exception_before_fatal.phpt index ef8c70de0feca..7d59765b765fd 100644 --- a/Zend/tests/exception_before_fatal.phpt +++ b/Zend/tests/exception_before_fatal.phpt @@ -55,10 +55,10 @@ try { } ?> --EXPECT-- -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" -string(62) "Undefined variable $foo (This will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" diff --git a/Zend/tests/incdec_undef.phpt b/Zend/tests/incdec_undef.phpt index 7c25a2f118626..5e448eaf4f10d 100644 --- a/Zend/tests/incdec_undef.phpt +++ b/Zend/tests/incdec_undef.phpt @@ -15,11 +15,11 @@ unset($x); var_dump(++$x); ?> --EXPECT-- -Undefined variable $x (This will become an error in PHP 9.0) +Undefined variable $x (this will become an error in PHP 9.0) NULL -Undefined variable $x (This will become an error in PHP 9.0) +Undefined variable $x (this will become an error in PHP 9.0) NULL -Undefined variable $x (This will become an error in PHP 9.0) +Undefined variable $x (this will become an error in PHP 9.0) NULL -Undefined variable $x (This will become an error in PHP 9.0) +Undefined variable $x (this will become an error in PHP 9.0) int(1) diff --git a/Zend/tests/nullsafe_operator/039.phpt b/Zend/tests/nullsafe_operator/039.phpt index cf21f8b089b3f..3c61bd01dd6c4 100644 --- a/Zend/tests/nullsafe_operator/039.phpt +++ b/Zend/tests/nullsafe_operator/039.phpt @@ -15,4 +15,4 @@ try { ?> --EXPECT-- -Undefined variable $foo (This will become an error in PHP 9.0) +Undefined variable $foo (this will become an error in PHP 9.0) diff --git a/Zend/tests/str_offset_006.phpt b/Zend/tests/str_offset_006.phpt index bdb688ab2cce7..f23c0c73f593f 100644 --- a/Zend/tests/str_offset_006.phpt +++ b/Zend/tests/str_offset_006.phpt @@ -10,7 +10,7 @@ $a[$y]=$a.=($y); var_dump($a); ?> --EXPECT-- -Err: Undefined variable $y (This will become an error in PHP 9.0) -Err: Undefined variable $y (This will become an error in PHP 9.0) +Err: Undefined variable $y (this will become an error in PHP 9.0) +Err: Undefined variable $y (this will become an error in PHP 9.0) Err: String offset cast occurred NULL diff --git a/Zend/tests/str_offset_007.phpt b/Zend/tests/str_offset_007.phpt index 159ea2701eaff..a3cc00d22dce9 100644 --- a/Zend/tests/str_offset_007.phpt +++ b/Zend/tests/str_offset_007.phpt @@ -11,6 +11,6 @@ $a[0][$d]='b'; var_dump($a); ?> --EXPECT-- -Err: Undefined variable $d (This will become an error in PHP 9.0) +Err: Undefined variable $d (this will become an error in PHP 9.0) Err: String offset cast occurred string(0) "" diff --git a/Zend/tests/str_offset_008.phpt b/Zend/tests/str_offset_008.phpt index edd1ddfab1932..d3a4defb11c45 100644 --- a/Zend/tests/str_offset_008.phpt +++ b/Zend/tests/str_offset_008.phpt @@ -12,7 +12,7 @@ var_dump($a[0][$b]); var_dump($a); ?> --EXPECT-- -Err: Undefined variable $b (This will become an error in PHP 9.0) +Err: Undefined variable $b (this will become an error in PHP 9.0) Err: String offset cast occurred string(1) "x" int(8) diff --git a/Zend/tests/undef_index_to_exception.phpt b/Zend/tests/undef_index_to_exception.phpt index 8e7b2aefe617b..3902589e074bf 100644 --- a/Zend/tests/undef_index_to_exception.phpt +++ b/Zend/tests/undef_index_to_exception.phpt @@ -42,5 +42,5 @@ array(0) { Undefined array key "key" array(0) { } -Undefined global variable $test (This will become an error in PHP 9.0) -Undefined variable $test (This will become an error in PHP 9.0) +Undefined global variable $test (this will become an error in PHP 9.0) +Undefined variable $test (this will become an error in PHP 9.0) diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index a59dd85d262eb..52e36aa819bce 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -1748,7 +1748,7 @@ ZEND_VM_C_LABEL(fetch_this): } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -1768,7 +1768,7 @@ ZEND_VM_C_LABEL(fetch_this): } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index fb729b7319fe5..7891411c33f57 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -9873,7 +9873,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -9893,7 +9893,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); @@ -17678,7 +17678,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -17698,7 +17698,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); @@ -47207,7 +47207,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -47227,7 +47227,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s (This will become an error in PHP 9.0)", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); diff --git a/ext/opcache/tests/jit/assign_043.phpt b/ext/opcache/tests/jit/assign_043.phpt index 7d8af443e8a56..8becdd7a50802 100644 --- a/ext/opcache/tests/jit/assign_043.phpt +++ b/ext/opcache/tests/jit/assign_043.phpt @@ -19,4 +19,4 @@ try { } ?> --EXPECT-- -Undefined variable $b (This will become an error in PHP 9.0) +Undefined variable $b (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_dim_005.phpt b/ext/opcache/tests/jit/assign_dim_005.phpt index ac76baeeaaced..34f492c4ff115 100644 --- a/ext/opcache/tests/jit/assign_dim_005.phpt +++ b/ext/opcache/tests/jit/assign_dim_005.phpt @@ -17,6 +17,6 @@ $a[$c] = 'x' ; var_dump($a); ?> --EXPECT-- -Error: Undefined variable $c (This will become an error in PHP 9.0) -Error: Undefined variable $c (This will become an error in PHP 9.0) +Error: Undefined variable $c (this will become an error in PHP 9.0) +Error: Undefined variable $c (this will become an error in PHP 9.0) NULL diff --git a/ext/opcache/tests/jit/assign_dim_014.phpt b/ext/opcache/tests/jit/assign_dim_014.phpt index a51fc103e26fc..b7dfdd72be38d 100644 --- a/ext/opcache/tests/jit/assign_dim_014.phpt +++ b/ext/opcache/tests/jit/assign_dim_014.phpt @@ -15,5 +15,5 @@ $a[$y] = function(){}; ?> DONE --EXPECT-- -Error: Undefined variable $y (This will become an error in PHP 9.0) +Error: Undefined variable $y (this will become an error in PHP 9.0) DONE diff --git a/ext/opcache/tests/jit/assign_dim_015.phpt b/ext/opcache/tests/jit/assign_dim_015.phpt index 08a34768595eb..03a7fb1922815 100644 --- a/ext/opcache/tests/jit/assign_dim_015.phpt +++ b/ext/opcache/tests/jit/assign_dim_015.phpt @@ -15,5 +15,5 @@ $my_var[] = $y; ?> DONE --EXPECT-- -Error: Undefined variable $y (This will become an error in PHP 9.0) +Error: Undefined variable $y (this will become an error in PHP 9.0) DONE diff --git a/ext/opcache/tests/jit/assign_dim_op_005.phpt b/ext/opcache/tests/jit/assign_dim_op_005.phpt index 389fb1fc2090a..3e6f92b38372d 100644 --- a/ext/opcache/tests/jit/assign_dim_op_005.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_005.phpt @@ -28,5 +28,5 @@ try { } ?> --EXPECT-- -Undefined variable $undef (This will become an error in PHP 9.0) -Undefined variable $a (This will become an error in PHP 9.0) +Undefined variable $undef (this will become an error in PHP 9.0) +Undefined variable $a (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_dim_undef_exception.phpt b/ext/opcache/tests/jit/assign_dim_undef_exception.phpt index e047dbf755923..cd5f1f32444dd 100644 --- a/ext/opcache/tests/jit/assign_dim_undef_exception.phpt +++ b/ext/opcache/tests/jit/assign_dim_undef_exception.phpt @@ -34,5 +34,5 @@ try { } ?> --EXPECT-- -Undefined variable $undef (This will become an error in PHP 9.0) -Undefined variable $undef (This will become an error in PHP 9.0) +Undefined variable $undef (this will become an error in PHP 9.0) +Undefined variable $undef (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/qm_assign_undef_exception.phpt b/ext/opcache/tests/jit/qm_assign_undef_exception.phpt index 15ae53d727e6c..f2c5e3218a766 100644 --- a/ext/opcache/tests/jit/qm_assign_undef_exception.phpt +++ b/ext/opcache/tests/jit/qm_assign_undef_exception.phpt @@ -19,4 +19,4 @@ try { } ?> --EXPECT-- -Undefined variable $b (This will become an error in PHP 9.0) +Undefined variable $b (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/type_check_001.phpt b/ext/opcache/tests/jit/type_check_001.phpt index fcd0cb5206a07..7528d41b24787 100644 --- a/ext/opcache/tests/jit/type_check_001.phpt +++ b/ext/opcache/tests/jit/type_check_001.phpt @@ -22,4 +22,4 @@ try { } ?> --EXPECT-- -Exception: Undefined variable $a (This will become an error in PHP 9.0) +Exception: Undefined variable $a (this will become an error in PHP 9.0) diff --git a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt index 6e8fe0fe0bc88..4aec3edd57347 100644 --- a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt @@ -80,8 +80,8 @@ echo "Done"; ?> --EXPECT-- *** Testing get_class_methods() : usage variations *** -Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) -Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, int given diff --git a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt index eb3d5fc64ba13..94dc3f4416124 100644 --- a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt +++ b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt @@ -83,8 +83,8 @@ echo "Done"; ?> --EXPECT-- *** Testing get_parent_class() : usage variations *** -Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) -Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, int given diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt index a0662e58f701a..aed0fcd80c990 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECT-- *** Testing is_subclass_of() : usage variations *** -Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) -Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt index eb0a4fcdafbbe..32e8fdb08f16d 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECT-- *** Testing is_subclass_of() : usage variations *** -Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) -Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/method_exists_variation_001.phpt b/ext/standard/tests/class_object/method_exists_variation_001.phpt index 5ed74f6a3b215..50072c8a141f8 100644 --- a/ext/standard/tests/class_object/method_exists_variation_001.phpt +++ b/ext/standard/tests/class_object/method_exists_variation_001.phpt @@ -83,8 +83,8 @@ echo "Done"; ?> --EXPECT-- *** Testing method_exists() : usage variations *** -Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) -Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given diff --git a/ext/standard/tests/general_functions/error_clear_last.phpt b/ext/standard/tests/general_functions/error_clear_last.phpt index 5e3e31e8648ff..c2ec24aa1af8d 100644 --- a/ext/standard/tests/general_functions/error_clear_last.phpt +++ b/ext/standard/tests/general_functions/error_clear_last.phpt @@ -22,7 +22,7 @@ array(4) { ["type"]=> int(2) ["message"]=> - string(60) "Undefined variable $b (This will become an error in PHP 9.0)" + string(60) "Undefined variable $b (this will become an error in PHP 9.0)" ["file"]=> string(%d) "%s" ["line"]=> diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt index 8c8ff46bcf87b..ed916d1d411b8 100644 --- a/ext/standard/tests/general_functions/error_get_last.phpt +++ b/ext/standard/tests/general_functions/error_get_last.phpt @@ -27,7 +27,7 @@ array(4) { ["type"]=> int(2) ["message"]=> - string(60) "Undefined variable $b (This will become an error in PHP 9.0)" + string(60) "Undefined variable $b (this will become an error in PHP 9.0)" ["file"]=> string(%d) "%s" ["line"]=> diff --git a/ext/standard/tests/image/getimagesize_variation2.phpt b/ext/standard/tests/image/getimagesize_variation2.phpt index e853b2bb21757..e72560099aef9 100644 --- a/ext/standard/tests/image/getimagesize_variation2.phpt +++ b/ext/standard/tests/image/getimagesize_variation2.phpt @@ -74,8 +74,8 @@ foreach($values as $key => $value) { ?> --EXPECT-- *** Testing getimagesize() : usage variations *** -Error: 2 - Undefined variable $undefined_var (This will become an error in PHP 9.0) -Error: 2 - Undefined variable $unset_var (This will become an error in PHP 9.0) +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) -- Arg value 0 -- string(28) "4a46494600010201006000600000" diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index b4236b7d03d55..b85f7ad303100 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -120,44 +120,44 @@ Array ( [0] => a [1] => A - [2] => � - [3] => � + [2] => € + [3] => ÿ [4] => %0 ) Iteration 0 - strcasecmp of 'a' and 'a' is => int(0) - strcasecmp of 'a' and 'A' is => int(0) -- strcasecmp of 'a' and '�' is => int(-%d) -- strcasecmp of 'a' and '�' is => int(-%d) +- strcasecmp of 'a' and '€' is => int(-%d) +- strcasecmp of 'a' and 'ÿ' is => int(-%d) - strcasecmp of 'a' and '%0' is => int(%d) Iteration 1 - strcasecmp of 'A' and 'a' is => int(0) - strcasecmp of 'A' and 'A' is => int(0) -- strcasecmp of 'A' and '�' is => int(-%d) -- strcasecmp of 'A' and '�' is => int(-%d) +- strcasecmp of 'A' and '€' is => int(-%d) +- strcasecmp of 'A' and 'ÿ' is => int(-%d) - strcasecmp of 'A' and '%0' is => int(%d) Iteration 2 -- strcasecmp of '�' and 'a' is => int(%d) -- strcasecmp of '�' and 'A' is => int(%d) -- strcasecmp of '�' and '�' is => int(0) -- strcasecmp of '�' and '�' is => int(-%d) -- strcasecmp of '�' and '%0' is => int(%d) +- strcasecmp of '€' and 'a' is => int(%d) +- strcasecmp of '€' and 'A' is => int(%d) +- strcasecmp of '€' and '€' is => int(0) +- strcasecmp of '€' and 'ÿ' is => int(-%d) +- strcasecmp of '€' and '%0' is => int(%d) Iteration 3 -- strcasecmp of '�' and 'a' is => int(%d) -- strcasecmp of '�' and 'A' is => int(%d) -- strcasecmp of '�' and '�' is => int(%d) -- strcasecmp of '�' and '�' is => int(0) -- strcasecmp of '�' and '%0' is => int(%d) +- strcasecmp of 'ÿ' and 'a' is => int(%d) +- strcasecmp of 'ÿ' and 'A' is => int(%d) +- strcasecmp of 'ÿ' and '€' is => int(%d) +- strcasecmp of 'ÿ' and 'ÿ' is => int(0) +- strcasecmp of 'ÿ' and '%0' is => int(%d) Iteration 4 - strcasecmp of '%0' and 'a' is => int(-%d) - strcasecmp of '%0' and 'A' is => int(-%d) -- strcasecmp of '%0' and '�' is => int(-%d) -- strcasecmp of '%0' and '�' is => int(-%d) +- strcasecmp of '%0' and '€' is => int(-%d) +- strcasecmp of '%0' and 'ÿ' is => int(-%d) - strcasecmp of '%0' and '%0' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index a077cbc5b7aa3..95764cd1809ba 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -122,8 +122,8 @@ Array [1] => A [2] => a [3] => A - [4] => � - [5] => � + [4] => € + [5] => ÿ [6] => %0 ) @@ -132,8 +132,8 @@ Iteration 0 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '�' is => int(-%d) -- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '€' is => int(-%d) +- strcmp of 'a' and 'ÿ' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 1 @@ -141,8 +141,8 @@ Iteration 1 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '�' is => int(-%d) -- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '€' is => int(-%d) +- strcmp of 'A' and 'ÿ' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 2 @@ -150,8 +150,8 @@ Iteration 2 - strcmp of 'a' and 'A' is => int(%d) - strcmp of 'a' and 'a' is => int(0) - strcmp of 'a' and 'A' is => int(%d) -- strcmp of 'a' and '�' is => int(-%d) -- strcmp of 'a' and '�' is => int(-%d) +- strcmp of 'a' and '€' is => int(-%d) +- strcmp of 'a' and 'ÿ' is => int(-%d) - strcmp of 'a' and '%0' is => int(%d) Iteration 3 @@ -159,35 +159,35 @@ Iteration 3 - strcmp of 'A' and 'A' is => int(0) - strcmp of 'A' and 'a' is => int(-%d) - strcmp of 'A' and 'A' is => int(0) -- strcmp of 'A' and '�' is => int(-%d) -- strcmp of 'A' and '�' is => int(-%d) +- strcmp of 'A' and '€' is => int(-%d) +- strcmp of 'A' and 'ÿ' is => int(-%d) - strcmp of 'A' and '%0' is => int(%d) Iteration 4 -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and '�' is => int(0) -- strcmp of '�' and '�' is => int(-%d) -- strcmp of '�' and '%0' is => int(%d) +- strcmp of '€' and 'a' is => int(%d) +- strcmp of '€' and 'A' is => int(%d) +- strcmp of '€' and 'a' is => int(%d) +- strcmp of '€' and 'A' is => int(%d) +- strcmp of '€' and '€' is => int(0) +- strcmp of '€' and 'ÿ' is => int(-%d) +- strcmp of '€' and '%0' is => int(%d) Iteration 5 -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and 'a' is => int(%d) -- strcmp of '�' and 'A' is => int(%d) -- strcmp of '�' and '�' is => int(%d) -- strcmp of '�' and '�' is => int(0) -- strcmp of '�' and '%0' is => int(%d) +- strcmp of 'ÿ' and 'a' is => int(%d) +- strcmp of 'ÿ' and 'A' is => int(%d) +- strcmp of 'ÿ' and 'a' is => int(%d) +- strcmp of 'ÿ' and 'A' is => int(%d) +- strcmp of 'ÿ' and '€' is => int(%d) +- strcmp of 'ÿ' and 'ÿ' is => int(0) +- strcmp of 'ÿ' and '%0' is => int(%d) Iteration 6 - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) - strcmp of '%0' and 'a' is => int(-%d) - strcmp of '%0' and 'A' is => int(-%d) -- strcmp of '%0' and '�' is => int(-%d) -- strcmp of '%0' and '�' is => int(-%d) +- strcmp of '%0' and '€' is => int(-%d) +- strcmp of '%0' and 'ÿ' is => int(-%d) - strcmp of '%0' and '%0' is => int(0) *** comparing the strings in an diff --git a/tests/lang/bug25922.phpt b/tests/lang/bug25922.phpt index 2258b0d905d56..7f2d46503b480 100644 --- a/tests/lang/bug25922.phpt +++ b/tests/lang/bug25922.phpt @@ -19,6 +19,6 @@ function test() test(); ?> --EXPECT-- -Undefined variable $data (This will become an error in PHP 9.0) +Undefined variable $data (this will become an error in PHP 9.0) Trying to access array offset on value of type null Undefined index here: '' From 54845419201fb61bfa926b1c34d82b2ee02d6473 Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Tue, 3 Jan 2023 04:50:47 +0000 Subject: [PATCH 7/8] Fix missed tests --- ext/opcache/tests/opt/assign_obj_001.phpt | 2 +- ext/opcache/tests/opt/assign_obj_op_001.phpt | 4 ++-- ext/opcache/tests/opt/inference_012.phpt | 4 ++-- ext/opcache/tests/opt/match_001.phpt | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ext/opcache/tests/opt/assign_obj_001.phpt b/ext/opcache/tests/opt/assign_obj_001.phpt index 205f111233e86..8244cc411fa4c 100644 --- a/ext/opcache/tests/opt/assign_obj_001.phpt +++ b/ext/opcache/tests/opt/assign_obj_001.phpt @@ -15,7 +15,7 @@ test(); --EXPECTF-- Warning: Undefined variable $y in %sassign_obj_001.php on line 3 -Warning: Undefined variable $a in %sassign_obj_001.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_obj_001.php on line 3 Fatal error: Uncaught Error: Attempt to assign property "y" on string in %sassign_obj_001.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/assign_obj_op_001.phpt b/ext/opcache/tests/opt/assign_obj_op_001.phpt index 9f26249289fb5..ddf6664cfbbe6 100644 --- a/ext/opcache/tests/opt/assign_obj_op_001.phpt +++ b/ext/opcache/tests/opt/assign_obj_op_001.phpt @@ -13,9 +13,9 @@ function s() { s(); ?> --EXPECTF-- -Warning: Undefined variable $y in %sassign_obj_op_001.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_obj_op_001.php on line 3 -Warning: Undefined variable $a in %sassign_obj_op_001.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_obj_op_001.php on line 3 Fatal error: Uncaught Error: Attempt to assign property "y" on string in %sassign_obj_op_001.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/inference_012.phpt b/ext/opcache/tests/opt/inference_012.phpt index 2c123b32fac08..b81c9e579579a 100644 --- a/ext/opcache/tests/opt/inference_012.phpt +++ b/ext/opcache/tests/opt/inference_012.phpt @@ -20,7 +20,7 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $x in %sinference_012.php on line 4 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %sinference_012.php on line 4 -Warning: Undefined variable $arr in %sinference_012.php on line 5 +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %sinference_012.php on line 5 DONE diff --git a/ext/opcache/tests/opt/match_001.phpt b/ext/opcache/tests/opt/match_001.phpt index f244f2624546a..e5fa3ae727cf2 100644 --- a/ext/opcache/tests/opt/match_001.phpt +++ b/ext/opcache/tests/opt/match_001.phpt @@ -9,9 +9,9 @@ opcache.optimization_level=-1 +$y . +$y . match(y) {} ?> --EXPECTF-- -Warning: Undefined variable $y in %smatch_001.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %smatch_001.php on line 2 -Warning: Undefined variable $y in %smatch_001.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %smatch_001.php on line 2 Fatal error: Uncaught Error: Undefined constant "y" in %smatch_001.php:2 Stack trace: From 6c9b20ddac53eb8c7e6deb5b0e6dcf7672d4d2be Mon Sep 17 00:00:00 2001 From: Mark Randall Date: Tue, 3 Jan 2023 05:35:25 +0000 Subject: [PATCH 8/8] Finally finally. --- ext/opcache/tests/opt/assign_obj_001.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/tests/opt/assign_obj_001.phpt b/ext/opcache/tests/opt/assign_obj_001.phpt index 8244cc411fa4c..da49323acb2ab 100644 --- a/ext/opcache/tests/opt/assign_obj_001.phpt +++ b/ext/opcache/tests/opt/assign_obj_001.phpt @@ -13,7 +13,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $y in %sassign_obj_001.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_obj_001.php on line 3 Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_obj_001.php on line 3