summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/008.phpt2
-rw-r--r--Zend/tests/009.phpt4
-rw-r--r--Zend/tests/arrow_functions/006.phpt4
-rw-r--r--Zend/tests/bug31720.phpt2
-rw-r--r--Zend/tests/bug39003.phpt2
-rw-r--r--Zend/tests/bug42802.phpt2
-rw-r--r--Zend/tests/bug43332_1.phpt2
-rw-r--r--Zend/tests/bug45186.phpt2
-rw-r--r--Zend/tests/bug45186_2.phpt4
-rw-r--r--Zend/tests/bug48770_2.phpt8
-rw-r--r--Zend/tests/bug48770_3.phpt4
-rw-r--r--Zend/tests/bug61273.phpt2
-rw-r--r--Zend/tests/bug68446.phpt2
-rw-r--r--Zend/tests/bug70895.phpt6
-rw-r--r--Zend/tests/bug70898.phpt2
-rw-r--r--Zend/tests/bug72101.phpt2
-rw-r--r--Zend/tests/bug72598.phpt4
-rw-r--r--Zend/tests/bug72598_2.phpt4
-rw-r--r--Zend/tests/bug73954.phpt2
-rw-r--r--Zend/tests/bug74164.phpt2
-rw-r--r--Zend/tests/call_user_func_001.phpt4
-rw-r--r--Zend/tests/call_user_func_002.phpt8
-rw-r--r--Zend/tests/call_user_func_006.phpt4
-rw-r--r--Zend/tests/call_user_func_007.phpt2
-rw-r--r--Zend/tests/call_user_func_008.phpt16
-rw-r--r--Zend/tests/call_user_func_009.phpt4
-rw-r--r--Zend/tests/call_user_func_array_invalid_type.phpt2
-rw-r--r--Zend/tests/closure_027.phpt4
-rw-r--r--Zend/tests/closure_059.phpt6
-rw-r--r--Zend/tests/errmsg_013.phpt2
-rw-r--r--Zend/tests/exception_017.phpt2
-rw-r--r--Zend/tests/exception_handler_004.phpt4
-rw-r--r--Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt4
-rw-r--r--Zend/tests/function_arguments/variadic_argument_type_error.phpt22
-rw-r--r--Zend/tests/generators/generator_with_type_check.phpt2
-rw-r--r--Zend/tests/generators/generator_with_type_check_2.phpt4
-rw-r--r--Zend/tests/generators/throw_not_an_exception.phpt2
-rw-r--r--Zend/tests/methods-on-non-objects-call-user-func.phpt2
-rw-r--r--Zend/tests/ns_071.phpt2
-rw-r--r--Zend/tests/ns_072.phpt2
-rw-r--r--Zend/tests/object_types/return_type_in_class.phpt2
-rw-r--r--Zend/tests/object_types/return_type_in_function.phpt2
-rw-r--r--Zend/tests/object_types/return_type_inheritance_in_class.phpt2
-rw-r--r--Zend/tests/object_types/return_type_inheritance_in_interface.phpt2
-rw-r--r--Zend/tests/object_types/type_hint_in_class_method.phpt2
-rw-r--r--Zend/tests/object_types/type_hint_in_function.phpt2
-rw-r--r--Zend/tests/objects_022.phpt2
-rw-r--r--Zend/tests/return_types/001.phpt2
-rw-r--r--Zend/tests/return_types/002.phpt2
-rw-r--r--Zend/tests/return_types/003.phpt2
-rw-r--r--Zend/tests/return_types/004.phpt2
-rw-r--r--Zend/tests/return_types/005.phpt2
-rw-r--r--Zend/tests/return_types/010.phpt2
-rw-r--r--Zend/tests/return_types/013.phpt2
-rw-r--r--Zend/tests/return_types/028.phpt2
-rw-r--r--Zend/tests/return_types/029.phpt2
-rw-r--r--Zend/tests/return_types/030.phpt2
-rw-r--r--Zend/tests/return_types/bug70557.phpt2
-rw-r--r--Zend/tests/return_types/bug71092.phpt2
-rw-r--r--Zend/tests/return_types/internal_functions001.phpt2
-rw-r--r--Zend/tests/return_types/rfc001.phpt2
-rw-r--r--Zend/tests/return_types/rfc003.phpt2
-rw-r--r--Zend/tests/trait_type_errors.phpt6
-rw-r--r--Zend/tests/type_declarations/array_001.phpt2
-rw-r--r--Zend/tests/type_declarations/callable_001.phpt2
-rw-r--r--Zend/tests/type_declarations/explicit_weak_include_strict.phpt2
-rw-r--r--Zend/tests/type_declarations/inexistent_class_hint_with_scalar_arg.phpt2
-rw-r--r--Zend/tests/type_declarations/internal_function_strict_mode.phpt6
-rw-r--r--Zend/tests/type_declarations/iterable_001.phpt2
-rw-r--r--Zend/tests/type_declarations/iterable_003.phpt2
-rw-r--r--Zend/tests/type_declarations/scalar_basic.phpt48
-rw-r--r--Zend/tests/type_declarations/scalar_constant_defaults.phpt4
-rw-r--r--Zend/tests/type_declarations/scalar_constant_defaults_error.phpt2
-rw-r--r--Zend/tests/type_declarations/scalar_null.phpt8
-rw-r--r--Zend/tests/type_declarations/scalar_return_basic.phpt48
-rw-r--r--Zend/tests/type_declarations/scalar_return_basic_64bit.phpt48
-rw-r--r--Zend/tests/type_declarations/scalar_strict.phpt102
-rw-r--r--Zend/tests/type_declarations/scalar_strict_64bit.phpt102
-rw-r--r--Zend/tests/type_declarations/scalar_strict_basic.phpt60
-rw-r--r--Zend/tests/type_declarations/static_type_return.phpt6
-rw-r--r--Zend/tests/type_declarations/static_type_trait.phpt2
-rw-r--r--Zend/tests/type_declarations/strict_call_weak.phpt2
-rw-r--r--Zend/tests/type_declarations/strict_call_weak_explicit.phpt2
-rw-r--r--Zend/tests/type_declarations/typed_properties_078.phpt2
-rw-r--r--Zend/tests/type_declarations/union_types/legal_default_values.phpt2
-rw-r--r--Zend/tests/type_declarations/union_types/multiple_classes.phpt2
-rw-r--r--Zend/tests/type_declarations/union_types/type_checking_strict.phpt170
-rw-r--r--Zend/tests/type_declarations/union_types/type_checking_weak.phpt72
-rw-r--r--Zend/tests/type_declarations/weak_include_strict.phpt2
-rw-r--r--Zend/tests/typehints/or_null.phpt48
-rw-r--r--Zend/tests/variadic/typehint_error.phpt2
-rw-r--r--Zend/tests/variadic/typehint_suppressed_error.phpt2
-rw-r--r--Zend/zend_API.c88
-rw-r--r--Zend/zend_API.h27
-rw-r--r--Zend/zend_builtin_functions.c6
-rw-r--r--Zend/zend_execute.c142
-rw-r--r--Zend/zend_execute.h2
-rw-r--r--Zend/zend_execute_API.c42
-rw-r--r--Zend/zend_vm_def.h8
-rw-r--r--Zend/zend_vm_execute.h22
-rw-r--r--ext/curl/tests/curl_setopt_error.phpt2
-rw-r--r--ext/date/tests/014.phpt2
-rw-r--r--ext/date/tests/68062.phpt2
-rw-r--r--ext/date/tests/DateTimeImmutable_createFromMutable.phpt2
-rw-r--r--ext/date/tests/DateTime_createFromImmutable.phpt2
-rw-r--r--ext/date/tests/bug36988.phpt2
-rw-r--r--ext/date/tests/bug52062.phpt2
-rw-r--r--ext/date/tests/bug70245.phpt4
-rw-r--r--ext/date/tests/microtime_error.phpt4
-rw-r--r--ext/date/tests/timezone_offset_get_error.phpt13
-rw-r--r--ext/ffi/tests/045.phpt2
-rw-r--r--ext/fileinfo/tests/finfo_open_001.phpt2
-rw-r--r--ext/fileinfo/tests/finfo_open_error.phpt4
-rw-r--r--ext/gd/tests/imagegd2_nullbyte_injection.phpt2
-rw-r--r--ext/gd/tests/imagegd_nullbyte_injection.phpt2
-rw-r--r--ext/gd/tests/imagexbm_nullbyte_injection.phpt2
-rw-r--r--ext/gmp/tests/gmp_clrbit.phpt2
-rw-r--r--ext/gmp/tests/gmp_pow.phpt2
-rw-r--r--ext/gmp/tests/gmp_setbit.phpt4
-rw-r--r--ext/imap/tests/imap_expunge_error.phpt4
-rw-r--r--ext/imap/tests/imap_gc_error.phpt4
-rw-r--r--ext/imap/tests/imap_headers.phpt4
-rw-r--r--ext/imap/tests/imap_num_msg_error.phpt4
-rw-r--r--ext/imap/tests/imap_num_recent_error.phpt4
-rw-r--r--ext/imap/tests/imap_ping_error.phpt4
-rw-r--r--ext/imap/tests/imap_timeout_basic.phpt2
-rw-r--r--ext/intl/tests/breakiter___construct_error.phpt2
-rw-r--r--ext/intl/tests/bug48227.phpt4
-rw-r--r--ext/intl/tests/calendar_add_error.phpt2
-rw-r--r--ext/intl/tests/calendar_before_after_error.phpt4
-rw-r--r--ext/intl/tests/calendar_clear_error.phpt2
-rw-r--r--ext/intl/tests/calendar_equals_error.phpt6
-rw-r--r--ext/intl/tests/calendar_fieldDifference_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getDayOfWeekType_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getErrorCode_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getErrorMessage_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getTimeZone_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getTime_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getType_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getWeekendTransition_error.phpt2
-rw-r--r--ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt8
-rw-r--r--ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt6
-rw-r--r--ext/intl/tests/calendar_inDaylightTime_error.phpt2
-rw-r--r--ext/intl/tests/calendar_isEquivalentTo_error.phpt8
-rw-r--r--ext/intl/tests/calendar_isLenient_error.phpt2
-rw-r--r--ext/intl/tests/calendar_isSet_error.phpt2
-rw-r--r--ext/intl/tests/calendar_isWeekend_error.phpt2
-rw-r--r--ext/intl/tests/calendar_roll_error.phpt2
-rw-r--r--ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt2
-rw-r--r--ext/intl/tests/calendar_setLenient_error.phpt2
-rw-r--r--ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt2
-rw-r--r--ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt2
-rw-r--r--ext/intl/tests/calendar_setTimeZone_error.phpt2
-rw-r--r--ext/intl/tests/calendar_set_error.phpt2
-rw-r--r--ext/intl/tests/calendar_toDateTime_error.phpt2
-rw-r--r--ext/intl/tests/formatter_fail.phpt6
-rw-r--r--ext/intl/tests/gregoriancalendar___construct_error.phpt2
-rw-r--r--ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt2
-rw-r--r--ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt2
-rw-r--r--ext/intl/tests/msgfmt_fail2.phpt6
-rw-r--r--ext/intl/tests/timezone_getDSTSavings_error.phpt2
-rw-r--r--ext/intl/tests/timezone_getDisplayName_error.phpt2
-rw-r--r--ext/intl/tests/timezone_getErrorCode_error.phpt2
-rw-r--r--ext/intl/tests/timezone_getErrorMessage_error.phpt2
-rw-r--r--ext/intl/tests/timezone_getID_error.phpt2
-rw-r--r--ext/intl/tests/timezone_getOffset_error.phpt2
-rw-r--r--ext/intl/tests/timezone_getRawOffset_error.phpt2
-rw-r--r--ext/intl/tests/timezone_hasSameRules_error.phpt4
-rw-r--r--ext/intl/tests/timezone_toDateTimeZone_error.phpt2
-rw-r--r--ext/intl/tests/timezone_useDaylightTime_error.phpt2
-rw-r--r--ext/intl/tests/transliterator_create_inverse_error.phpt2
-rw-r--r--ext/intl/tests/transliterator_get_error_code_error.phpt2
-rw-r--r--ext/intl/tests/transliterator_get_error_message_error.phpt2
-rw-r--r--ext/libxml/tests/004.phpt12
-rw-r--r--ext/libxml/tests/bug63389.phpt2
-rw-r--r--ext/mbstring/tests/mb_ereg1.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_warning.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_embedded_connect.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_fetch_object.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_fetch_object_oo.phpt4
-rw-r--r--ext/oci8/tests/bug51291_1.phpt4
-rw-r--r--ext/oci8/tests/conn_attr_4.phpt22
-rw-r--r--ext/oci8/tests/lob_002.phpt4
-rw-r--r--ext/oci8/tests/lob_021.phpt2
-rw-r--r--ext/oci8/tests/lob_026.phpt2
-rw-r--r--ext/oci8/tests/null_byte_1.phpt4
-rw-r--r--ext/oci8/tests/privileged_connect.phpt2
-rw-r--r--ext/oci8/tests/privileged_connect1.phpt2
-rw-r--r--ext/odbc/tests/odbc_exec_001.phpt4
-rw-r--r--ext/opcache/tests/iterable_type_optimization.phpt2
-rw-r--r--ext/opcache/tests/ssa_bug_003.phpt4
-rw-r--r--ext/openssl/tests/openssl_csr_export_bacis.phpt2
-rw-r--r--ext/openssl/tests/openssl_csr_export_to_file_basic.phpt2
-rw-r--r--ext/openssl/tests/openssl_pkey_new_error.phpt6
-rw-r--r--ext/pcre/tests/preg_grep_error1.phpt4
-rw-r--r--ext/pcre/tests/preg_match_all_error1.phpt4
-rw-r--r--ext/pcre/tests/preg_match_all_error2.phpt4
-rw-r--r--ext/pcre/tests/preg_match_error1.phpt4
-rw-r--r--ext/pcre/tests/preg_match_error2.phpt6
-rw-r--r--ext/pcre/tests/preg_split_error1.phpt4
-rw-r--r--ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt2
-rw-r--r--ext/phar/tests/badparameters.phpt36
-rw-r--r--ext/phar/tests/bug64931/bug64931.phpt4
-rw-r--r--ext/phar/tests/create_path_error.phpt2
-rw-r--r--ext/phar/tests/fgc_edgecases.phpt2
-rw-r--r--ext/phar/tests/fopen_edgecases2.phpt2
-rw-r--r--ext/phar/tests/opendir_edgecases.phpt2
-rw-r--r--ext/phar/tests/phar_extract.phpt2
-rw-r--r--ext/phar/tests/phar_oo_006.phpt2
-rw-r--r--ext/phar/tests/phar_unlinkarchive.phpt2
-rw-r--r--ext/phar/tests/pharfileinfo_construct.phpt2
-rw-r--r--ext/reflection/tests/ReflectionClass_getMethod_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_getProperty_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt2
-rw-r--r--ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt2
-rw-r--r--ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt2
-rw-r--r--ext/reflection/tests/ReflectionExtension_constructor_error.phpt2
-rw-r--r--ext/reflection/tests/ReflectionFunction_construct.001.phpt4
-rw-r--r--ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt2
-rw-r--r--ext/reflection/tests/ReflectionMethod_invoke_basic.phpt2
-rw-r--r--ext/reflection/tests/ReflectionMethod_invoke_error1.phpt4
-rw-r--r--ext/reflection/tests/ReflectionReference_errors.phpt2
-rw-r--r--ext/reflection/tests/bug42976.phpt4
-rw-r--r--ext/reflection/tests/request38992.phpt4
-rw-r--r--ext/session/tests/session_set_save_handler_iface_002.phpt4
-rw-r--r--ext/simplexml/tests/bug37565.phpt4
-rw-r--r--ext/snmp/tests/snmp-object-error.phpt4
-rw-r--r--ext/soap/tests/bug77088.phpt2
-rw-r--r--ext/sodium/tests/sodium_error_001.phpt2
-rw-r--r--ext/spl/tests/CallbackFilterIteratorTest-002.phpt4
-rw-r--r--ext/spl/tests/SplFileInfo_setFileClass_error.phpt2
-rw-r--r--ext/spl/tests/SplFileInfo_setInfoClass_error.phpt2
-rw-r--r--ext/spl/tests/SplFixedArray__construct_param_array.phpt2
-rw-r--r--ext/spl/tests/SplFixedArray__construct_param_string.phpt2
-rw-r--r--ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt2
-rw-r--r--ext/spl/tests/SplTempFileObject_constructor_error.phpt2
-rw-r--r--ext/spl/tests/arrayObject___construct_error1.phpt4
-rw-r--r--ext/spl/tests/arrayObject_asort_basic1.phpt2
-rw-r--r--ext/spl/tests/arrayObject_ksort_basic1.phpt2
-rw-r--r--ext/spl/tests/arrayObject_setIteratorClass_error1.phpt10
-rw-r--r--ext/spl/tests/bug54291.phpt2
-rw-r--r--ext/spl/tests/bug54292.phpt2
-rw-r--r--ext/spl/tests/bug77431.phpt4
-rw-r--r--ext/spl/tests/bug78863.phpt2
-rw-r--r--ext/spl/tests/fixedarray_005.phpt6
-rw-r--r--ext/spl/tests/fixedarray_009.phpt2
-rw-r--r--ext/spl/tests/fixedarray_015.phpt2
-rw-r--r--ext/spl/tests/iterator_042.phpt2
-rw-r--r--ext/spl/tests/iterator_044.phpt8
-rw-r--r--ext/spl/tests/iterator_count.phpt2
-rw-r--r--ext/spl/tests/iterator_to_array.phpt2
-rw-r--r--ext/spl/tests/recursive_tree_iterator_003.phpt2
-rw-r--r--ext/spl/tests/spl_004.phpt4
-rw-r--r--ext/standard/filestat.c4
-rw-r--r--ext/standard/string.c4
-rw-r--r--ext/standard/tests/array/array_change_key_case_variation.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_error.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation10.phpt4
-rw-r--r--ext/standard/tests/array/array_filter_variation9.phpt6
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation8.phpt4
-rw-r--r--ext/standard/tests/array/array_key_exists.phpt4
-rw-r--r--ext/standard/tests/array/array_map_object1.phpt12
-rw-r--r--ext/standard/tests/array/array_map_object2.phpt6
-rw-r--r--ext/standard/tests/array/array_map_object3.phpt6
-rw-r--r--ext/standard/tests/array/array_map_variation12.phpt4
-rw-r--r--ext/standard/tests/array/array_map_variation14.phpt6
-rw-r--r--ext/standard/tests/array/array_map_variation15.phpt2
-rw-r--r--ext/standard/tests/array/array_map_variation16.phpt18
-rw-r--r--ext/standard/tests/array/array_map_variation17.phpt40
-rw-r--r--ext/standard/tests/array/array_search_variation3.phpt6
-rw-r--r--ext/standard/tests/array/array_slice_variation1.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_objects.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_rec_objects.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_recursive_variation8.phpt4
-rw-r--r--ext/standard/tests/array/array_walk_variation8.phpt4
-rw-r--r--ext/standard/tests/array/bug40191.phpt2
-rw-r--r--ext/standard/tests/array/in_array_variation3.phpt6
-rw-r--r--ext/standard/tests/array/range_errors.phpt8
-rw-r--r--ext/standard/tests/array/range_variation.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_variation_001.phpt52
-rw-r--r--ext/standard/tests/file/006_variation2.phpt18
-rw-r--r--ext/standard/tests/file/bug39863.phpt2
-rw-r--r--ext/standard/tests/file/chgrp.phpt4
-rw-r--r--ext/standard/tests/file/disk_free_space_variation.phpt16
-rw-r--r--ext/standard/tests/file/disk_total_space_variation.phpt8
-rw-r--r--ext/standard/tests/file/file_get_contents_variation8-win32.phpt4
-rw-r--r--ext/standard/tests/file/file_get_contents_variation8.phpt4
-rw-r--r--ext/standard/tests/file/file_put_contents_variation8-win32.phpt4
-rw-r--r--ext/standard/tests/file/file_put_contents_variation8.phpt6
-rw-r--r--ext/standard/tests/file/filegroup_variation3.phpt4
-rw-r--r--ext/standard/tests/file/fileinode_variation3.phpt4
-rw-r--r--ext/standard/tests/file/fileowner_variation3.phpt4
-rw-r--r--ext/standard/tests/file/fileperms_variation3.phpt4
-rw-r--r--ext/standard/tests/file/flock_error.phpt10
-rw-r--r--ext/standard/tests/file/fnmatch_variation.phpt66
-rw-r--r--ext/standard/tests/file/fopen_variation10-win32.phpt10
-rw-r--r--ext/standard/tests/file/fopen_variation11-win32.phpt10
-rw-r--r--ext/standard/tests/file/glob_variation-win32-mb.phpt4
-rw-r--r--ext/standard/tests/file/glob_variation-win32.phpt4
-rw-r--r--ext/standard/tests/file/glob_variation.phpt4
-rw-r--r--ext/standard/tests/file/is_dir_variation4.phpt6
-rw-r--r--ext/standard/tests/file/is_executable_variation1.phpt6
-rw-r--r--ext/standard/tests/file/is_file_variation4.phpt6
-rw-r--r--ext/standard/tests/file/is_readable_variation1.phpt6
-rw-r--r--ext/standard/tests/file/is_writable_variation1.phpt12
-rw-r--r--ext/standard/tests/file/mkdir_rmdir_variation2.phpt4
-rw-r--r--ext/standard/tests/file/readfile_variation10-win32.phpt4
-rw-r--r--ext/standard/tests/file/readfile_variation10.phptbin1727 -> 1739 bytes
-rw-r--r--ext/standard/tests/file/stream_rfc2397_006.phpt4
-rw-r--r--ext/standard/tests/file/tempnam_variation3-win32.phpt4
-rw-r--r--ext/standard/tests/file/tempnam_variation3.phpt4
-rw-r--r--ext/standard/tests/file/tempnam_variation7-win32.phpt4
-rw-r--r--ext/standard/tests/file/tempnam_variation7.phpt4
-rw-r--r--ext/standard/tests/file/windows_links/bug78862.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41970.phpt8
-rw-r--r--ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt2
-rw-r--r--ext/standard/tests/general_functions/callbacks_001.phpt2
-rw-r--r--ext/standard/tests/general_functions/callbacks_002.phpt6
-rw-r--r--ext/standard/tests/math/abs_variation.phpt16
-rw-r--r--ext/standard/tests/math/bindec_variation1.phpt4
-rw-r--r--ext/standard/tests/math/bindec_variation1_64bit.phpt4
-rw-r--r--ext/standard/tests/math/ceil_variation1.phpt16
-rw-r--r--ext/standard/tests/math/floor_variation1.phpt16
-rw-r--r--ext/standard/tests/math/hexdec_variation1.phpt4
-rw-r--r--ext/standard/tests/math/hexdec_variation1_64bit.phpt4
-rw-r--r--ext/standard/tests/math/octdec_variation1.phpt4
-rw-r--r--ext/standard/tests/math/round_variation1.phpt16
-rw-r--r--ext/standard/tests/password/password_hash_error.phpt6
-rw-r--r--ext/standard/tests/password/password_needs_rehash_error.phpt6
-rw-r--r--ext/standard/tests/strings/addcslashes_001.phptbin1627 -> 1646 bytes
-rw-r--r--ext/standard/tests/strings/bug54322.phpt2
-rw-r--r--ext/standard/tests/strings/chunk_split_variation5.phptbin2206 -> 2226 bytes
-rw-r--r--ext/standard/tests/strings/chunk_split_variation8.phpt2
-rw-r--r--ext/standard/tests/strings/implode1.phptbin6073 -> 6313 bytes
-rw-r--r--ext/standard/tests/strings/join_error.phpt2
-rw-r--r--ext/standard/tests/strings/join_variation1.phpt14
-rw-r--r--ext/standard/tests/strings/join_variation2.phpt46
-rw-r--r--ext/standard/tests/strings/join_variation4.phptbin2258 -> 2290 bytes
-rw-r--r--ext/standard/tests/strings/join_variation5.phpt2
-rw-r--r--ext/standard/tests/strings/printf_variation1.phpt38
-rw-r--r--ext/standard/tests/strings/sprintf_variation1.phpt38
-rw-r--r--ext/standard/tests/strings/str_pad_variation1.phpt3
-rw-r--r--ext/standard/tests/strings/str_replace_basic.phpt2
-rw-r--r--ext/standard/tests/strings/str_replace_variation3.phpt4
-rw-r--r--ext/standard/tests/strings/stripos_variation10.phpt12
-rw-r--r--ext/standard/tests/strings/stripos_variation11.phpt26
-rw-r--r--ext/standard/tests/strings/stristr_variation2.phpt8
-rw-r--r--ext/standard/tests/strings/strpos.phptbin7996 -> 8050 bytes
-rw-r--r--ext/standard/tests/strings/strrchr_variation10.phpt12
-rw-r--r--ext/standard/tests/strings/strrchr_variation11.phpt12
-rw-r--r--ext/standard/tests/strings/strripos_offset.phpt2
-rw-r--r--ext/standard/tests/strings/strrpos_offset.phpt2
-rw-r--r--ext/standard/tests/strings/strrpos_variation10.phpt12
-rw-r--r--ext/standard/tests/strings/strrpos_variation11.phpt26
-rw-r--r--ext/standard/tests/strings/strtr_variation6.phpt4
-rw-r--r--ext/standard/tests/strings/strtr_variation8.phpt4
-rw-r--r--ext/standard/tests/strings/vfprintf_error3.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_error4.phpt4
-rw-r--r--ext/standard/tests/strings/vfprintf_variation20.phpt14
-rw-r--r--ext/standard/tests/strings/vprintf_variation1.phpt14
-rw-r--r--ext/standard/tests/strings/vsprintf_variation1.phpt14
-rw-r--r--tests/classes/abstract_user_call.phpt2
-rw-r--r--tests/classes/autoload_009.phpt2
-rw-r--r--tests/classes/autoload_012.phpt2
-rw-r--r--tests/classes/bug27504.phpt2
-rw-r--r--tests/classes/tostring_004.phpt2
-rw-r--r--tests/classes/type_hinting_001.phpt2
-rw-r--r--tests/classes/type_hinting_002.phpt2
-rw-r--r--tests/classes/type_hinting_003.phpt2
-rw-r--r--tests/classes/type_hinting_004.phpt12
-rw-r--r--tests/lang/bug24658.phpt2
-rw-r--r--tests/lang/catchable_error_001.phpt2
-rw-r--r--tests/lang/catchable_error_002.phpt2
-rw-r--r--tests/lang/type_hints_001.phpt2
-rw-r--r--tests/output/sapi_windows_vt100_support_winko_err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winko_in-err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winko_in-out-err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winko_in-out.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winko_out-err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winko_out.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winok_err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winok_in-err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winok_in-out-err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winok_in-out.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winok_out-err.phpt50
-rw-r--r--tests/output/sapi_windows_vt100_support_winok_out.phpt50
389 files changed, 1678 insertions, 1691 deletions
diff --git a/Zend/tests/008.phpt b/Zend/tests/008.phpt
index 6f885c0dc5..f597812fa8 100644
--- a/Zend/tests/008.phpt
+++ b/Zend/tests/008.phpt
@@ -25,7 +25,7 @@ var_dump(constant("test const"));
echo "Done\n";
?>
--EXPECTF--
-TypeError: define() expects parameter 1 to be string, array given
+TypeError: define() expects argument #1 ($constant_name) to be of type string, array given
Notice: Constant TRUE already defined in %s on line %d
bool(false)
diff --git a/Zend/tests/009.phpt b/Zend/tests/009.phpt
index d6ac1be4e2..222fd36297 100644
--- a/Zend/tests/009.phpt
+++ b/Zend/tests/009.phpt
@@ -46,8 +46,8 @@ string(3) "foo"
Warning: get_class() called without object from outside a class in %s on line %d
bool(false)
-get_class() expects parameter 1 to be object, string given
+get_class() expects argument #1 ($object) to be of type object, string given
string(3) "foo"
string(4) "foo2"
-get_class() expects parameter 1 to be object, null given
+get_class() expects argument #1 ($object) to be of type object, null given
Done
diff --git a/Zend/tests/arrow_functions/006.phpt b/Zend/tests/arrow_functions/006.phpt
index 16427146a8..e0ca1e1b5c 100644
--- a/Zend/tests/arrow_functions/006.phpt
+++ b/Zend/tests/arrow_functions/006.phpt
@@ -32,7 +32,7 @@ try {
--EXPECTF--
int(2)
int(10)
-Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+{closure}() expects argument #1 ($x) to be of type int, string given, called in %s on line %d
array(3) {
[0]=>
int(20)
@@ -41,4 +41,4 @@ array(3) {
[2]=>
int(30)
}
-Argument 2 passed to {closure}() must be of the type int or null, string given, called in %s on line %d
+{closure}() expects argument #2 ($args) to be of type ?int, string given, called in %s on line %d
diff --git a/Zend/tests/bug31720.phpt b/Zend/tests/bug31720.phpt
index 1e01d41772..ea4ba7753c 100644
--- a/Zend/tests/bug31720.phpt
+++ b/Zend/tests/bug31720.phpt
@@ -12,4 +12,4 @@ try {
?>
--EXPECTF--
Warning: Undefined variable: nonesuchvar in %s on line %d
-array_walk() expects parameter 2 to be a valid callback, first array member is not a valid class name or object
+array_walk() expects argument #2 ($funcname) to be a valid callback, first array member is not a valid class name or object
diff --git a/Zend/tests/bug39003.phpt b/Zend/tests/bug39003.phpt
index 9fa3e0d26b..758e3f9c83 100644
--- a/Zend/tests/bug39003.phpt
+++ b/Zend/tests/bug39003.phpt
@@ -20,7 +20,7 @@ test($obj);
echo "Done\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of OtherClassName, instance of ClassName given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: test() expects argument #1 ($object) to be of type OtherClassName, ClassName given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): test(Object(ClassName))
#1 {main}
diff --git a/Zend/tests/bug42802.phpt b/Zend/tests/bug42802.phpt
index 1294bdbb2f..084b7c0e9d 100644
--- a/Zend/tests/bug42802.phpt
+++ b/Zend/tests/bug42802.phpt
@@ -37,7 +37,7 @@ ok
ok
ok
-Fatal error: Uncaught TypeError: Argument 1 passed to foo\test5() must be an instance of bar, instance of foo\bar given, called in %sbug42802.php on line %d and defined in %sbug42802.php:%d
+Fatal error: Uncaught TypeError: foo\test5() expects argument #1 ($bar) to be of type bar, foo\bar given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo\test5(Object(foo\bar))
#1 {main}
diff --git a/Zend/tests/bug43332_1.phpt b/Zend/tests/bug43332_1.phpt
index fc035ab2b6..e7f52eae9c 100644
--- a/Zend/tests/bug43332_1.phpt
+++ b/Zend/tests/bug43332_1.phpt
@@ -12,7 +12,7 @@ $foo = new foo;
$foo->bar($foo); // Ok!
$foo->bar(new \stdclass); // Error, ok!
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to foobar\foo::bar() must be an instance of foobar\foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php:5
+Fatal error: Uncaught TypeError: foobar\foo::bar() expects argument #1 ($a) to be of type foobar\foo, stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php:5
Stack trace:
#0 %s(%d): foobar\foo->bar(Object(stdClass))
#1 {main}
diff --git a/Zend/tests/bug45186.phpt b/Zend/tests/bug45186.phpt
index 11968091e3..d60cab5088 100644
--- a/Zend/tests/bug45186.phpt
+++ b/Zend/tests/bug45186.phpt
@@ -54,4 +54,4 @@ string(1) "y"
ok
__callstatic:
string(3) "www"
-call_user_func() expects parameter 1 to be a valid callback, cannot access self:: when no class scope is active
+call_user_func() expects argument #1 ($function) to be a valid callback, cannot access self:: when no class scope is active
diff --git a/Zend/tests/bug45186_2.phpt b/Zend/tests/bug45186_2.phpt
index 5e962dd29a..262b379180 100644
--- a/Zend/tests/bug45186_2.phpt
+++ b/Zend/tests/bug45186_2.phpt
@@ -52,5 +52,5 @@ string(1) "y"
__call:
string(1) "y"
ok
-call_user_func() expects parameter 1 to be a valid callback, class 'bar' does not have a method 'www'
-call_user_func() expects parameter 1 to be a valid callback, cannot access self:: when no class scope is active
+call_user_func() expects argument #1 ($function) to be a valid callback, class 'bar' does not have a method 'www'
+call_user_func() expects argument #1 ($function) to be a valid callback, cannot access self:: when no class scope is active
diff --git a/Zend/tests/bug48770_2.phpt b/Zend/tests/bug48770_2.phpt
index d94ae1b217..c5c17acb83 100644
--- a/Zend/tests/bug48770_2.phpt
+++ b/Zend/tests/bug48770_2.phpt
@@ -24,13 +24,13 @@ class B extends A {
public function func($str) {
call_user_func_array(array($this, 'parent::func2'), array($str));
call_user_func_array(array($this, 'parent::func3'), array($str));
-
+
try {
call_user_func_array(array($this, 'parent::func22'), array($str));
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
-
+
try {
call_user_func_array(array($this, 'parent::inexistent'), array($str));
} catch (\TypeError $e) {
@@ -58,5 +58,5 @@ $c->func('This should work!');
--EXPECT--
string(27) "A::func2: This should work!"
string(27) "A::func3: This should work!"
-call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method A::func22()
-call_user_func_array() expects parameter 1 to be a valid callback, class 'A' does not have a method 'inexistent'
+call_user_func_array() expects argument #1 ($function) to be a valid callback, cannot access private method A::func22()
+call_user_func_array() expects argument #1 ($function) to be a valid callback, class 'A' does not have a method 'inexistent'
diff --git a/Zend/tests/bug48770_3.phpt b/Zend/tests/bug48770_3.phpt
index cbd74df25a..07cc8025df 100644
--- a/Zend/tests/bug48770_3.phpt
+++ b/Zend/tests/bug48770_3.phpt
@@ -24,7 +24,7 @@ class B extends A {
public function func($str) {
call_user_func_array(array($this, 'self::func2'), array($str));
call_user_func_array(array($this, 'self::func3'), array($str));
-
+
try {
call_user_func_array(array($this, 'self::inexistent'), array($str));
} catch (\TypeError $e) {
@@ -52,4 +52,4 @@ $c->func('This should work!');
--EXPECT--
string(27) "B::func2: This should work!"
string(27) "B::func3: This should work!"
-call_user_func_array() expects parameter 1 to be a valid callback, class 'B' does not have a method 'inexistent'
+call_user_func_array() expects argument #1 ($function) to be a valid callback, class 'B' does not have a method 'inexistent'
diff --git a/Zend/tests/bug61273.phpt b/Zend/tests/bug61273.phpt
index aee35c6f4f..e9d67f9d2a 100644
--- a/Zend/tests/bug61273.phpt
+++ b/Zend/tests/bug61273.phpt
@@ -11,5 +11,5 @@ $args = array_fill(0, 64 * 1024 - 64, 0);
call_user_func_array(function(&$a) {}, $args);
echo strval("okey");
--EXPECTF--
-Warning: Parameter 1 to {closure}() expected to be a reference, value given in %sbug61273.php on line %d
+Warning: {closure}() expects argument #1 ($a) to be passed by reference, value given in %s on line %d
okey
diff --git a/Zend/tests/bug68446.phpt b/Zend/tests/bug68446.phpt
index 1f682af9aa..c9d833a37f 100644
--- a/Zend/tests/bug68446.phpt
+++ b/Zend/tests/bug68446.phpt
@@ -32,7 +32,7 @@ array(1) {
int(1)
}
-Fatal error: Uncaught TypeError: Argument 1 passed to a() must be of the type array, null given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: a() expects argument #1 ($a) to be of type array, null given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): a(NULL)
#1 {main}
diff --git a/Zend/tests/bug70895.phpt b/Zend/tests/bug70895.phpt
index 71ff19a0b5..0d4dc47004 100644
--- a/Zend/tests/bug70895.phpt
+++ b/Zend/tests/bug70895.phpt
@@ -20,6 +20,6 @@ try {
}
?>
--EXPECT--
-array_map() expects parameter 1 to be a valid callback, function '%n' not found or invalid function name
-array_map() expects parameter 1 to be a valid callback, function '%n %i' not found or invalid function name
-array_map() expects parameter 1 to be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '%n' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '%n %i' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name
diff --git a/Zend/tests/bug70898.phpt b/Zend/tests/bug70898.phpt
index fa6e96d83f..2a0fabd138 100644
--- a/Zend/tests/bug70898.phpt
+++ b/Zend/tests/bug70898.phpt
@@ -13,4 +13,4 @@ try {
}
?>
--EXPECT--
-array_map() expects parameter 1 to be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
diff --git a/Zend/tests/bug72101.phpt b/Zend/tests/bug72101.phpt
index 23861958fd..04252a43a1 100644
--- a/Zend/tests/bug72101.phpt
+++ b/Zend/tests/bug72101.phpt
@@ -76,7 +76,7 @@ $foo->bar($a, $b, $c);
--EXPECTF--
Fatal error: Uncaught Error: Class 'DoesNotExists' not found in %sbug72101.php:61
Stack trace:
-#0 %sbug72101.php(8): {closure}(2, 'Parameter 1 to ...', '%s', 8)
+#0 %sbug72101.php(8): {closure}(2, 'MethodCallbackB...', '%s', 8)
#1 %sbug72101.php(27): PHPUnit_Framework_MockObject_Stub_ReturnCallback->invoke(Object(PHPUnit_Framework_MockObject_Invocation_Static))
#2 %sbug72101.php(19): PHPUnit_Framework_MockObject_Matcher->invoked(Object(PHPUnit_Framework_MockObject_Invocation_Static))
#3 %sbug72101.php(52): PHPUnit_Framework_MockObject_InvocationMocker->invoke(Object(PHPUnit_Framework_MockObject_Invocation_Static))
diff --git a/Zend/tests/bug72598.phpt b/Zend/tests/bug72598.phpt
index eeee510279..acf40cbba0 100644
--- a/Zend/tests/bug72598.phpt
+++ b/Zend/tests/bug72598.phpt
@@ -17,10 +17,10 @@ new class {
};
?>
--EXPECTF--
-Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598.php on line 11
+Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
object(class@anonymous)#1 (0) {
}
-Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598.php on line 11
+Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
object(class@anonymous)#1 (0) {
}
diff --git a/Zend/tests/bug72598_2.phpt b/Zend/tests/bug72598_2.phpt
index d58e18c978..75c4894dff 100644
--- a/Zend/tests/bug72598_2.phpt
+++ b/Zend/tests/bug72598_2.phpt
@@ -20,8 +20,8 @@ new class {
};
?>
--EXPECTF--
-Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598_2.php on line 14
+Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
int(0)
-Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598_2.php on line 14
+Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
int(0)
diff --git a/Zend/tests/bug73954.phpt b/Zend/tests/bug73954.phpt
index fb0a6b8f3d..062d438b60 100644
--- a/Zend/tests/bug73954.phpt
+++ b/Zend/tests/bug73954.phpt
@@ -16,7 +16,7 @@ takes_int(log(tan(3.14)));
float(NAN)
bool(true)
-Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type int, float given, called in %s on line 9 and defined in %s:6
+Fatal error: Uncaught TypeError: takes_int() expects argument #1 ($int) to be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(9): takes_int(NAN)
#1 {main}
diff --git a/Zend/tests/bug74164.phpt b/Zend/tests/bug74164.phpt
index b623dcb1db..e0dbed9a19 100644
--- a/Zend/tests/bug74164.phpt
+++ b/Zend/tests/bug74164.phpt
@@ -12,7 +12,7 @@ set_error_handler(function ($type, $msg) {
call_user_func(function (array &$ref) {var_dump("xxx");}, 'not_an_array_variable');
?>
--EXPECTF--
-Fatal error: Uncaught Exception: Parameter 1 to Foo\{closure}() expected to be a reference, value given in %sbug74164.php:%d
+Fatal error: Uncaught Exception: Foo\{closure}() expects argument #1 ($ref) to be passed by reference, value given in %s:%d
Stack trace:
#0 [internal function]: Foo\{closure}(%s)
#1 %sbug74164.php(%d): call_user_func(%s)
diff --git a/Zend/tests/call_user_func_001.phpt b/Zend/tests/call_user_func_001.phpt
index 3d2becdc78..8ad7656459 100644
--- a/Zend/tests/call_user_func_001.phpt
+++ b/Zend/tests/call_user_func_001.phpt
@@ -37,5 +37,5 @@ namespace testing {
?>
--EXPECT--
string(6) "foobar"
-call_user_func() expects parameter 1 to be a valid callback, cannot access private method testing\foo::priv()
-call_user_func() expects parameter 1 to be a valid callback, cannot access protected method testing\foo::prot()
+call_user_func() expects argument #1 ($function) to be a valid callback, cannot access private method testing\foo::priv()
+call_user_func() expects argument #1 ($function) to be a valid callback, cannot access protected method testing\foo::prot()
diff --git a/Zend/tests/call_user_func_002.phpt b/Zend/tests/call_user_func_002.phpt
index cc07ffab16..3ac9308543 100644
--- a/Zend/tests/call_user_func_002.phpt
+++ b/Zend/tests/call_user_func_002.phpt
@@ -31,11 +31,11 @@ try {
?>
--EXPECTF--
string(3) "foo"
-call_user_func() expects parameter 1 to be a valid callback, class 'foo' not found
-call_user_func() expects parameter 1 to be a valid callback, class '' not found
+call_user_func() expects argument #1 ($function) to be a valid callback, class 'foo' not found
+call_user_func() expects argument #1 ($function) to be a valid callback, class '' not found
Warning: Undefined variable: foo in %s on line %d
-call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
+call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
Warning: Undefined variable: foo in %s on line %d
-call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
+call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
diff --git a/Zend/tests/call_user_func_006.phpt b/Zend/tests/call_user_func_006.phpt
index 16a59bcf5b..624ce2391c 100644
--- a/Zend/tests/call_user_func_006.phpt
+++ b/Zend/tests/call_user_func_006.phpt
@@ -21,8 +21,8 @@ var_dump($y);
?>
--EXPECTF--
-Warning: Parameter 1 to Foo\bar() expected to be a reference, value given in %s on line %d
+Warning: Foo\bar() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
int(42)
-Warning: Parameter 1 to Foo\bar() expected to be a reference, value given in %s on line %d
+Warning: Foo\bar() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
int(42)
diff --git a/Zend/tests/call_user_func_007.phpt b/Zend/tests/call_user_func_007.phpt
index d3f2747c13..8efa3ab901 100644
--- a/Zend/tests/call_user_func_007.phpt
+++ b/Zend/tests/call_user_func_007.phpt
@@ -15,6 +15,6 @@ Notice: Undefined offset: 0 in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d
-Warning: Parameter 1 to foo() expected to be a reference, value given in %s on line %d
+Warning: foo() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
array(0) {
}
diff --git a/Zend/tests/call_user_func_008.phpt b/Zend/tests/call_user_func_008.phpt
index 3e727e7f43..c710360a13 100644
--- a/Zend/tests/call_user_func_008.phpt
+++ b/Zend/tests/call_user_func_008.phpt
@@ -25,30 +25,30 @@ var_dump($i, $j);
?>
--EXPECTF--
-Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
-Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
-Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
-Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
-Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
-Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
-Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
-Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
+Warning: test() expects argument #2 ($ref2) to be passed by reference, value given in %s on line %d
bool(true)
int(0)
int(0)
diff --git a/Zend/tests/call_user_func_009.phpt b/Zend/tests/call_user_func_009.phpt
index d45380db15..ebbecd73e6 100644
--- a/Zend/tests/call_user_func_009.phpt
+++ b/Zend/tests/call_user_func_009.phpt
@@ -10,8 +10,8 @@ var_dump(\call_user_func('sort', []));
?>
--EXPECTF--
-Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
+Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
bool(true)
-Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
+Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
bool(true)
diff --git a/Zend/tests/call_user_func_array_invalid_type.phpt b/Zend/tests/call_user_func_array_invalid_type.phpt
index d1c70f0fef..a7b5fb3cb7 100644
--- a/Zend/tests/call_user_func_array_invalid_type.phpt
+++ b/Zend/tests/call_user_func_array_invalid_type.phpt
@@ -15,4 +15,4 @@ try {
}
?>
--EXPECT--
-call_user_func_array() expects parameter 2 to be array, null given
+call_user_func_array() expects argument #2 ($args) to be of type array, null given
diff --git a/Zend/tests/closure_027.phpt b/Zend/tests/closure_027.phpt
index ab5fde2026..bffd69c11a 100644
--- a/Zend/tests/closure_027.phpt
+++ b/Zend/tests/closure_027.phpt
@@ -3,7 +3,7 @@ Closure 027: Testing Closure type-hint
--FILE--
<?php
-function test(closure $a) {
+function test(Closure $a) {
var_dump($a());
}
@@ -30,7 +30,7 @@ NULL
Warning: Undefined variable: y 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: Argument 1 passed to test() must be an instance of Closure, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: test() expects argument #1 ($a) to be of type Closure, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): test(Object(stdClass))
#1 {main}
diff --git a/Zend/tests/closure_059.phpt b/Zend/tests/closure_059.phpt
index 68fd10321f..c63e654f2d 100644
--- a/Zend/tests/closure_059.phpt
+++ b/Zend/tests/closure_059.phpt
@@ -33,6 +33,6 @@ try {
echo "Exception: " . $e->getMessage() . "\n";
}
--EXPECTF--
-Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
-Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
-Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
+Exception: {closure}() expects argument #1 ($a) to be of type A, B given, called in %s on line %d
+Exception: {closure}() expects argument #1 ($a) to be of type A, B given
+Exception: {closure}() expects argument #1 ($a) to be of type A, B given
diff --git a/Zend/tests/errmsg_013.phpt b/Zend/tests/errmsg_013.phpt
index 6346868679..74c7bc2e8e 100644
--- a/Zend/tests/errmsg_013.phpt
+++ b/Zend/tests/errmsg_013.phpt
@@ -1,5 +1,5 @@
--TEST--
-errmsg: default value for parameters with array type can only be an array or NULL
+errmsg: default value for parameters with array type can only be an array or null
--FILE--
<?php
diff --git a/Zend/tests/exception_017.phpt b/Zend/tests/exception_017.phpt
index 260cfbd8e2..4299ada5c0 100644
--- a/Zend/tests/exception_017.phpt
+++ b/Zend/tests/exception_017.phpt
@@ -28,7 +28,7 @@ Error: Cannot call abstract method C::foo() in %s:%d
Stack trace:
#0 {main}
-TypeError: Argument 1 passed to foo() must be callable, string given, called in %s on line %d and defined in %s:%d
+TypeError: foo() expects argument #1 ($x) to be of type callable, string given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo('C::foo')
#1 {main}
diff --git a/Zend/tests/exception_handler_004.phpt b/Zend/tests/exception_handler_004.phpt
index 6552141b73..e4684e942d 100644
--- a/Zend/tests/exception_handler_004.phpt
+++ b/Zend/tests/exception_handler_004.phpt
@@ -9,7 +9,7 @@ set_exception_handler(array("", ""));
echo "Done\n";
?>
--EXPECTF--
-Warning: set_exception_handler() expects the argument (fo) to be a valid callback in %s on line %d
+Warning: set_exception_handler() expects argument #1 ($exception_handler) to be a valid callback in %s on line %d
-Warning: set_exception_handler() expects the argument (::) to be a valid callback in %s on line %d
+Warning: set_exception_handler() expects argument #1 ($exception_handler) to be a valid callback in %s on line %d
Done
diff --git a/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt b/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt
index e47d03d5f6..c8977ece99 100644
--- a/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt
+++ b/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt
@@ -49,6 +49,6 @@ Too few arguments to function bar(), 1 passed in %s and exactly 2 expected
ArgumentCountError
Too few arguments to function bat(), 1 passed in %s and exactly 2 expected
TypeError
-Argument 1 passed to bat() must be of the type int, string given, called in %s
+bat() expects argument #1 ($foo) to be of type int, string given, called in %s on line %d
TypeError
-Argument 2 passed to bat() must be of the type string, int given, called in %s
+bat() expects argument #2 ($bar) to be of type string, int given, called in %s on line %d
diff --git a/Zend/tests/function_arguments/variadic_argument_type_error.phpt b/Zend/tests/function_arguments/variadic_argument_type_error.phpt
new file mode 100644
index 0000000000..ee244ab4a1
--- /dev/null
+++ b/Zend/tests/function_arguments/variadic_argument_type_error.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Call userland function with incorrect variadic argument type
+--FILE--
+<?php
+
+function foo($foo, int ...$bar) {}
+
+try {
+ foo(1, []);
+} catch (TypeError $exception) {
+ echo $exception->getMessage() . "\n";
+}
+
+try {
+ foo(1, 1, 1, []);
+} catch (TypeError $exception) {
+ echo $exception->getMessage() . "\n";
+}
+
+--EXPECTF--
+foo() expects argument #2 ($bar) to be of type int, array given, called in %s on line %d
+foo() expects argument #4 ($bar) to be of type int, array given, called in %s on line %d
diff --git a/Zend/tests/generators/generator_with_type_check.phpt b/Zend/tests/generators/generator_with_type_check.phpt
index 12e6d46d76..90636406b4 100644
--- a/Zend/tests/generators/generator_with_type_check.phpt
+++ b/Zend/tests/generators/generator_with_type_check.phpt
@@ -6,7 +6,7 @@ function gen(array $a) { yield; }
gen(42);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to gen() must be of the type array, int given, called in %sgenerator_with_type_check.php on line 3 and defined in %sgenerator_with_type_check.php:2
+Fatal error: Uncaught TypeError: gen() expects argument #1 ($a) to be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %sgenerator_with_type_check.php(3): gen(42)
#1 {main}
diff --git a/Zend/tests/generators/generator_with_type_check_2.phpt b/Zend/tests/generators/generator_with_type_check_2.phpt
index d4ebbd2ad3..445c8f4a9f 100644
--- a/Zend/tests/generators/generator_with_type_check_2.phpt
+++ b/Zend/tests/generators/generator_with_type_check_2.phpt
@@ -18,5 +18,5 @@ try {
}
?>
--EXPECTF--
-Argument 1 passed to gen() must be of the type array, int given, called in %sgenerator_with_type_check_2.php on line 4
-Argument 1 passed to gen() must be of the type array, int given, called in %sgenerator_with_type_check_2.php on line 10
+gen() expects argument #1 ($a) to be of type array, int given, called in %s on line %d
+gen() expects argument #1 ($a) to be of type array, int given, called in %s on line %d
diff --git a/Zend/tests/generators/throw_not_an_exception.phpt b/Zend/tests/generators/throw_not_an_exception.phpt
index abf9a3c894..dcb1d3d0b0 100644
--- a/Zend/tests/generators/throw_not_an_exception.phpt
+++ b/Zend/tests/generators/throw_not_an_exception.phpt
@@ -12,7 +12,7 @@ $gen->throw(new stdClass);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Generator::throw() expects parameter 1 to be Throwable, object given in %s:%d
+Fatal error: Uncaught TypeError: Generator::throw() expects argument #1 ($exception) to be of type Throwable, object given in %s:%d
Stack trace:
#0 %s(%d): Generator->throw(Object(stdClass))
#1 {main}
diff --git a/Zend/tests/methods-on-non-objects-call-user-func.phpt b/Zend/tests/methods-on-non-objects-call-user-func.phpt
index 63884abc79..5ccf9e0d26 100644
--- a/Zend/tests/methods-on-non-objects-call-user-func.phpt
+++ b/Zend/tests/methods-on-non-objects-call-user-func.phpt
@@ -10,4 +10,4 @@ try {
}
?>
--EXPECT--
-call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
+call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
diff --git a/Zend/tests/ns_071.phpt b/Zend/tests/ns_071.phpt
index 7acdffba82..cee6431be0 100644
--- a/Zend/tests/ns_071.phpt
+++ b/Zend/tests/ns_071.phpt
@@ -18,7 +18,7 @@ new bar(new \stdclass);
--EXPECTF--
NULL
-Fatal error: Uncaught TypeError: Argument 1 passed to foo\bar::__construct() must be of the type array or null, object given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo\bar::__construct() expects argument #1 ($x) to be of type ?array, object given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo\bar->__construct(Object(stdClass))
#1 {main}
diff --git a/Zend/tests/ns_072.phpt b/Zend/tests/ns_072.phpt
index c422eedd4e..6429632658 100644
--- a/Zend/tests/ns_072.phpt
+++ b/Zend/tests/ns_072.phpt
@@ -30,7 +30,7 @@ object(foo\test)#%d (0) {
}
NULL
-Fatal error: Uncaught TypeError: Argument 1 passed to foo\bar::__construct() must implement interface foo\foo or be null, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo\bar::__construct() expects argument #1 ($x) to be of type ?foo\foo, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo\bar->__construct(Object(stdClass))
#1 {main}
diff --git a/Zend/tests/object_types/return_type_in_class.phpt b/Zend/tests/object_types/return_type_in_class.phpt
index 3edb015df7..44e3fbf871 100644
--- a/Zend/tests/object_types/return_type_in_class.phpt
+++ b/Zend/tests/object_types/return_type_in_class.phpt
@@ -18,7 +18,7 @@ $three = new class extends Two {
};
$three->a();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be an object, int returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be of type object, int returned in %s:%d
Stack trace:
#0 %s(%d): Two@anonymous->a()
#1 {main}
diff --git a/Zend/tests/object_types/return_type_in_function.phpt b/Zend/tests/object_types/return_type_in_function.phpt
index 61f6845b47..1c60759bb3 100644
--- a/Zend/tests/object_types/return_type_in_function.phpt
+++ b/Zend/tests/object_types/return_type_in_function.phpt
@@ -8,7 +8,7 @@ function a() : object {
}
a();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of a() must be an object, int returned in %s:4
+Fatal error: Uncaught TypeError: Return value of a() must be of type object, int returned in %s:4
Stack trace:
#0 %s(6): a()
#1 {main}
diff --git a/Zend/tests/object_types/return_type_inheritance_in_class.phpt b/Zend/tests/object_types/return_type_inheritance_in_class.phpt
index 23528531ec..21dec61e30 100644
--- a/Zend/tests/object_types/return_type_inheritance_in_class.phpt
+++ b/Zend/tests/object_types/return_type_inheritance_in_class.phpt
@@ -18,7 +18,7 @@ $three = new class extends Two {
};
$three->a();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be an object, int returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be of type object, int returned in %s:%d
Stack trace:
#0 %s(%d): Two@anonymous->a()
#1 {main}
diff --git a/Zend/tests/object_types/return_type_inheritance_in_interface.phpt b/Zend/tests/object_types/return_type_inheritance_in_interface.phpt
index 793cc980aa..b1af678911 100644
--- a/Zend/tests/object_types/return_type_inheritance_in_interface.phpt
+++ b/Zend/tests/object_types/return_type_inheritance_in_interface.phpt
@@ -18,7 +18,7 @@ $three = new class implements Two {
};
$three->a();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be an object, int returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be of type object, int returned in %s:%d
Stack trace:
#0 %s(%d): Two@anonymous->a()
#1 {main}
diff --git a/Zend/tests/object_types/type_hint_in_class_method.phpt b/Zend/tests/object_types/type_hint_in_class_method.phpt
index f8814e4bbb..098bfc0c52 100644
--- a/Zend/tests/object_types/type_hint_in_class_method.phpt
+++ b/Zend/tests/object_types/type_hint_in_class_method.phpt
@@ -11,7 +11,7 @@ $one = new One();
$one->a(new One());
$one->a(123);
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to One::a() must be an object, int given, called in %s:4
+Fatal error: Uncaught TypeError: One::a() expects argument #1 ($obj) to be of type object, int given, called in %s:%d
Stack trace:
#0 %s(9): One->a(123)
#1 {main}
diff --git a/Zend/tests/object_types/type_hint_in_function.phpt b/Zend/tests/object_types/type_hint_in_function.phpt
index 39e075efdb..e834997f4d 100644
--- a/Zend/tests/object_types/type_hint_in_function.phpt
+++ b/Zend/tests/object_types/type_hint_in_function.phpt
@@ -9,7 +9,7 @@ function a(object $obj) {}
a(new A());
a(123);
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to a() must be an object, int given, called in %s.php on line 7 and defined in %s:4
+Fatal error: Uncaught TypeError: a() expects argument #1 ($obj) to be of type object, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(7): a(123)
#1 {main}
diff --git a/Zend/tests/objects_022.phpt b/Zend/tests/objects_022.phpt
index d5a695739f..ce2d2f7c00 100644
--- a/Zend/tests/objects_022.phpt
+++ b/Zend/tests/objects_022.phpt
@@ -36,7 +36,7 @@ object(bar)#%d (0) {
object(baz)#%d (0) {
}
-Fatal error: Uncaught TypeError: Argument 1 passed to foo::testFoo() must be an instance of foo, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo::testFoo() expects argument #1 ($obj) to be of type foo, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo->testFoo(Object(stdClass))
#1 {main}
diff --git a/Zend/tests/return_types/001.phpt b/Zend/tests/return_types/001.phpt
index 2b87a562f6..fc2bc326a9 100644
--- a/Zend/tests/return_types/001.phpt
+++ b/Zend/tests/return_types/001.phpt
@@ -7,7 +7,7 @@ function test1() : array {
test1();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, none returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of test1() must be of type array, none returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}
diff --git a/Zend/tests/return_types/002.phpt b/Zend/tests/return_types/002.phpt
index 615317cf83..07101ca760 100644
--- a/Zend/tests/return_types/002.phpt
+++ b/Zend/tests/return_types/002.phpt
@@ -8,7 +8,7 @@ function test1() : array {
test1();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, null returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of test1() must be of type array, null returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}
diff --git a/Zend/tests/return_types/003.phpt b/Zend/tests/return_types/003.phpt
index ed78d51823..5d60da25ed 100644
--- a/Zend/tests/return_types/003.phpt
+++ b/Zend/tests/return_types/003.phpt
@@ -7,7 +7,7 @@ function test1() : array {
}
test1();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, int returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of test1() must be of type array, int returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}
diff --git a/Zend/tests/return_types/004.phpt b/Zend/tests/return_types/004.phpt
index 6098d51334..eae7018ded 100644
--- a/Zend/tests/return_types/004.phpt
+++ b/Zend/tests/return_types/004.phpt
@@ -8,7 +8,7 @@ function test1() : array {
test1();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, string returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of test1() must be of type array, string returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}
diff --git a/Zend/tests/return_types/005.phpt b/Zend/tests/return_types/005.phpt
index f8d666fae5..6313ae69ce 100644
--- a/Zend/tests/return_types/005.phpt
+++ b/Zend/tests/return_types/005.phpt
@@ -13,7 +13,7 @@ class qux {
$qux = new qux();
$qux->foo();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of qux::foo() must be an instance of foo, instance of qux returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of qux::foo() must be of type foo, qux returned in %s:%d
Stack trace:
#0 %s(%d): qux->foo()
#1 {main}
diff --git a/Zend/tests/return_types/010.phpt b/Zend/tests/return_types/010.phpt
index 2cfe97dac2..6ff9d7f25c 100644
--- a/Zend/tests/return_types/010.phpt
+++ b/Zend/tests/return_types/010.phpt
@@ -9,7 +9,7 @@ function &foo(array &$in) : array {
$array = [1, 2, 3];
var_dump(foo($array));
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of foo() must be of the type array, null returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of foo() must be of type array, null returned in %s:%d
Stack trace:
#0 %s(%d): foo(Array)
#1 {main}
diff --git a/Zend/tests/return_types/013.phpt b/Zend/tests/return_types/013.phpt
index 5b2c06748d..1cbdd6184f 100644
--- a/Zend/tests/return_types/013.phpt
+++ b/Zend/tests/return_types/013.phpt
@@ -14,7 +14,7 @@ class foo {
$baz = new foo();
var_dump($func=$baz->bar(), $func());
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of foo::{closure}() must be of the type array, null returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of foo::{closure}() must be of type array, null returned in %s:%d
Stack trace:
#0 %s(%d): foo->{closure}()
#1 {main}
diff --git a/Zend/tests/return_types/028.phpt b/Zend/tests/return_types/028.phpt
index 5e69006af7..d50b09c3f6 100644
--- a/Zend/tests/return_types/028.phpt
+++ b/Zend/tests/return_types/028.phpt
@@ -17,4 +17,4 @@ try {
?>
--EXPECTF--
-Return value of foo() must be an instance of stdClass, array returned in %s on line %d
+Return value of foo() must be of type stdClass, array returned in %s on line %d
diff --git a/Zend/tests/return_types/029.phpt b/Zend/tests/return_types/029.phpt
index 5741763abb..0e25dea559 100644
--- a/Zend/tests/return_types/029.phpt
+++ b/Zend/tests/return_types/029.phpt
@@ -21,7 +21,7 @@ Stack trace:
#0 %s(%d): foo()
#1 {main}
-Next TypeError: Return value of foo() must be of the type array, null returned in %s29.php:%d
+Next TypeError: Return value of foo() must be of type array, null returned in %s29.php:%d
Stack trace:
#0 %s(%d): foo()
#1 {main}
diff --git a/Zend/tests/return_types/030.phpt b/Zend/tests/return_types/030.phpt
index 8117a7d7ce..907d47d66a 100644
--- a/Zend/tests/return_types/030.phpt
+++ b/Zend/tests/return_types/030.phpt
@@ -16,7 +16,7 @@ foo(0);
ok
ok
-Fatal error: Uncaught TypeError: Return value of foo() must be of the type array or null, int returned in %s030.php:3
+Fatal error: Uncaught TypeError: Return value of foo() must be of type ?array, int returned in %s030.php:3
Stack trace:
#0 %s030.php(10): foo(0)
#1 {main}
diff --git a/Zend/tests/return_types/bug70557.phpt b/Zend/tests/return_types/bug70557.phpt
index 5917197045..af8b92fb62 100644
--- a/Zend/tests/return_types/bug70557.phpt
+++ b/Zend/tests/return_types/bug70557.phpt
@@ -16,4 +16,4 @@ try {
}
?>
--EXPECT--
-string(68) "Return value of getNumber() must be of the type int, string returned"
+string(64) "Return value of getNumber() must be of type int, string returned"
diff --git a/Zend/tests/return_types/bug71092.phpt b/Zend/tests/return_types/bug71092.phpt
index abc43356bc..ed9a082349 100644
--- a/Zend/tests/return_types/bug71092.phpt
+++ b/Zend/tests/return_types/bug71092.phpt
@@ -16,7 +16,7 @@ function boom(): array {
boom();
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of boom() must be of the type array, null returned in %sbug71092.php:%d
+Fatal error: Uncaught TypeError: Return value of boom() must be of type array, null returned in %sbug71092.php:%d
Stack trace:
#0 %s(%d): boom()
#1 {main}
diff --git a/Zend/tests/return_types/internal_functions001.phpt b/Zend/tests/return_types/internal_functions001.phpt
index 7ec5b9c08f..14a60c83b4 100644
--- a/Zend/tests/return_types/internal_functions001.phpt
+++ b/Zend/tests/return_types/internal_functions001.phpt
@@ -11,4 +11,4 @@ if (!PHP_DEBUG) die('skip requires debug build');
zend_test_array_return();
?>
--EXPECTF--
-Fatal error: Return value of zend_test_array_return() must be of the type array, null returned in %s on line %d
+Fatal error: Return value of zend_test_array_return() must be of type array, null returned in %s on line %d
diff --git a/Zend/tests/return_types/rfc001.phpt b/Zend/tests/return_types/rfc001.phpt
index 3fdbf3443c..cbe2335afb 100644
--- a/Zend/tests/return_types/rfc001.phpt
+++ b/Zend/tests/return_types/rfc001.phpt
@@ -9,7 +9,7 @@ function get_config(): array {
get_config();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of get_config() must be of the type array, int returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of get_config() must be of type array, int returned in %s:%d
Stack trace:
#0 %s(%d): get_config()
#1 {main}
diff --git a/Zend/tests/return_types/rfc003.phpt b/Zend/tests/return_types/rfc003.phpt
index 6b9cc81c69..76a77c07c4 100644
--- a/Zend/tests/return_types/rfc003.phpt
+++ b/Zend/tests/return_types/rfc003.phpt
@@ -8,7 +8,7 @@ function foo(): DateTime {
foo();
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of foo() must be an instance of DateTime, null returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of foo() must be of type DateTime, null returned in %s:%d
Stack trace:
#0 %s(%d): foo()
#1 {main}
diff --git a/Zend/tests/trait_type_errors.phpt b/Zend/tests/trait_type_errors.phpt
index 50f5d619ad..1d29714a2f 100644
--- a/Zend/tests/trait_type_errors.phpt
+++ b/Zend/tests/trait_type_errors.phpt
@@ -38,6 +38,6 @@ try {
?>
--EXPECTF--
-Return value of C::test1() must be of the type int, string returned
-Argument 1 passed to C::test2() must be of the type int, string given, called in %s on line %d
-Argument 1 passed to C::test3() must be of the type int, string given, called in %s on line %d
+Return value of C::test1() must be of type int, string returned
+C::test2() expects argument #1 ($arg) to be of type int, string given, called in %s on line %d
+C::test3() expects argument #1 ($arg) to be of type int, string given, called in %s on line %d
diff --git a/Zend/tests/type_declarations/array_001.phpt b/Zend/tests/type_declarations/array_001.phpt
index 09af9a98f2..0e08bd8b7f 100644
--- a/Zend/tests/type_declarations/array_001.phpt
+++ b/Zend/tests/type_declarations/array_001.phpt
@@ -12,7 +12,7 @@ foo(123);
--EXPECTF--
3
-Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type array, int given, called in %s on line 7 and defined in %s:2
+Fatal error: Uncaught TypeError: foo() expects argument #1 ($a) to be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo(123)
#1 {main}
diff --git a/Zend/tests/type_declarations/callable_001.phpt b/Zend/tests/type_declarations/callable_001.phpt
index d93e70923a..e6c2702235 100644
--- a/Zend/tests/type_declarations/callable_001.phpt
+++ b/Zend/tests/type_declarations/callable_001.phpt
@@ -29,7 +29,7 @@ array(2) {
string(3) "foo"
}
-Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be callable, array given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo() expects argument #1 ($bar) to be of type callable, array given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo(Array)
#1 {main}
diff --git a/Zend/tests/type_declarations/explicit_weak_include_strict.phpt b/Zend/tests/type_declarations/explicit_weak_include_strict.phpt
index 9773775ae4..5ad7bd17fc 100644
--- a/Zend/tests/type_declarations/explicit_weak_include_strict.phpt
+++ b/Zend/tests/type_declarations/explicit_weak_include_strict.phpt
@@ -11,7 +11,7 @@ require 'weak_include_strict_2.inc';
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type int, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
+Fatal error: Uncaught TypeError: takes_int() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): takes_int(1)
#1 %s(%d): require('%s')
diff --git a/Zend/tests/type_declarations/inexistent_class_hint_with_scalar_arg.phpt b/Zend/tests/type_declarations/inexistent_class_hint_with_scalar_arg.phpt
index 8aec0c009f..661616fb92 100644
--- a/Zend/tests/type_declarations/inexistent_class_hint_with_scalar_arg.phpt
+++ b/Zend/tests/type_declarations/inexistent_class_hint_with_scalar_arg.phpt
@@ -8,7 +8,7 @@ foo(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of bar, null given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: foo() expects argument #1 ($ex) to be of type bar, null given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo(NULL)
#1 {main}
diff --git a/Zend/tests/type_declarations/internal_function_strict_mode.phpt b/Zend/tests/type_declarations/internal_function_strict_mode.phpt
index 1019aa5024..b3b9adc9d3 100644
--- a/Zend/tests/type_declarations/internal_function_strict_mode.phpt
+++ b/Zend/tests/type_declarations/internal_function_strict_mode.phpt
@@ -28,8 +28,8 @@ try {
?>
--EXPECT--
*** Trying Ord With Integer
-*** Caught ord() expects parameter 1 to be string, int given
+*** Caught ord() expects argument #1 ($character) to be of type string, int given
*** Trying Array Map With Invalid Callback
-*** Caught array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
+*** Caught array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
*** Trying Strlen With Float
-*** Caught strlen() expects parameter 1 to be string, float given
+*** Caught strlen() expects argument #1 ($str) to be of type string, float given
diff --git a/Zend/tests/type_declarations/iterable_001.phpt b/Zend/tests/type_declarations/iterable_001.phpt
index b6755c49b9..856dc63c4d 100644
--- a/Zend/tests/type_declarations/iterable_001.phpt
+++ b/Zend/tests/type_declarations/iterable_001.phpt
@@ -44,4 +44,4 @@ object(ArrayIterator)#1 (1) {
int(3)
}
}
-Argument 1 passed to test() must be iterable, int given, called in %s on line %d
+test() expects argument #1 ($iterable) to be of type iterable, int given, called in %s on line %d
diff --git a/Zend/tests/type_declarations/iterable_003.phpt b/Zend/tests/type_declarations/iterable_003.phpt
index 0b6c032b9f..eda77d490b 100644
--- a/Zend/tests/type_declarations/iterable_003.phpt
+++ b/Zend/tests/type_declarations/iterable_003.phpt
@@ -29,4 +29,4 @@ array(0) {
}
object(Generator)#2 (0) {
}
-Return value of baz() must be iterable, int returned
+Return value of baz() must be of type iterable, int returned
diff --git a/Zend/tests/type_declarations/scalar_basic.phpt b/Zend/tests/type_declarations/scalar_basic.phpt
index 1253f48c16..ef10e67ac0 100644
--- a/Zend/tests/type_declarations/scalar_basic.phpt
+++ b/Zend/tests/type_declarations/scalar_basic.phpt
@@ -78,16 +78,16 @@ E_NOTICE: A non well formed numeric value encountered on line %d
int(1)
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying int(%d)
int(%d)
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying bool(true)
int(1)
@@ -96,22 +96,22 @@ int(1)
int(0)
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
Testing 'float' type:
@@ -132,10 +132,10 @@ E_NOTICE: A non well formed numeric value encountered on line %d
float(1)
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying int(%d)
float(%s)
@@ -150,22 +150,22 @@ float(1)
float(0)
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type float, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
Testing 'string' type:
@@ -203,22 +203,22 @@ string(1) "1"
string(0) ""
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
string(6) "foobar"
*** Trying resource(%d) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type string, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
Testing 'bool' type:
@@ -256,21 +256,21 @@ bool(true)
bool(false)
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
Done
diff --git a/Zend/tests/type_declarations/scalar_constant_defaults.phpt b/Zend/tests/type_declarations/scalar_constant_defaults.phpt
index e42cb32bde..28f0252cdf 100644
--- a/Zend/tests/type_declarations/scalar_constant_defaults.phpt
+++ b/Zend/tests/type_declarations/scalar_constant_defaults.phpt
@@ -96,9 +96,9 @@ float(10.7)
Testing string add val
string(14) "this is a test"
Testing int with default null constant
-Argument 1 passed to int_val_default_null() must be of the type int, null given, called in %s on line %d
+int_val_default_null() expects argument #1 ($a) to be of type int, null given, called in %s on line %d
Testing int with null null constant
-Argument 1 passed to int_val_default_null() must be of the type int, null given, called in %s on line %d
+int_val_default_null() expects argument #1 ($a) to be of type int, null given, called in %s on line %d
Testing nullable int with default null constant
NULL
Testing nullable int with null null constant
diff --git a/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt b/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt
index d897bb4822..66d56e72df 100644
--- a/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt
+++ b/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt
@@ -13,7 +13,7 @@ var_dump(int_val());
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to int_val() must be of the type int, string given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: int_val() expects argument #1 ($a) to be of type int, string given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): int_val()
#1 {main}
diff --git a/Zend/tests/type_declarations/scalar_null.phpt b/Zend/tests/type_declarations/scalar_null.phpt
index d149053fd2..ab9647ba9c 100644
--- a/Zend/tests/type_declarations/scalar_null.phpt
+++ b/Zend/tests/type_declarations/scalar_null.phpt
@@ -27,13 +27,13 @@ echo PHP_EOL . "Done";
?>
--EXPECTF--
Testing int:
-*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
Testing float:
-*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
Testing string:
-*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
Testing bool:
-*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
Testing int nullable:
NULL
Testing float nullable:
diff --git a/Zend/tests/type_declarations/scalar_return_basic.phpt b/Zend/tests/type_declarations/scalar_return_basic.phpt
index c69196269f..9ee50f8457 100644
--- a/Zend/tests/type_declarations/scalar_return_basic.phpt
+++ b/Zend/tests/type_declarations/scalar_return_basic.phpt
@@ -75,30 +75,30 @@ int(1)
E_NOTICE: A non well formed numeric value encountered on line %d
int(1)
*** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
*** Trying string(0) ""
-*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
*** Trying int(2147483647)
int(2147483647)
*** Trying float(NAN)
-*** Caught Return value of {closure}() must be of the type int, float returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, float returned in %s on line %d
*** Trying bool(true)
int(1)
*** Trying bool(false)
int(0)
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type int, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type int, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
-*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type int, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, resource returned in %s on line %d
Testing 'float' type:
*** Trying int(1)
@@ -113,9 +113,9 @@ float(1.5)
E_NOTICE: A non well formed numeric value encountered on line %d
float(1)
*** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of the type float, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
*** Trying string(0) ""
-*** Caught Return value of {closure}() must be of the type float, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
*** Trying int(2147483647)
float(2147483647)
*** Trying float(NAN)
@@ -125,18 +125,18 @@ float(1)
*** Trying bool(false)
float(0)
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type float, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type float, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type float, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
-*** Caught Return value of {closure}() must be of the type float, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type float, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, resource returned in %s on line %d
Testing 'string' type:
*** Trying int(1)
@@ -162,18 +162,18 @@ string(1) "1"
*** Trying bool(false)
string(0) ""
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type string, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type string, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type string, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
string(6) "foobar"
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type string, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, resource returned in %s on line %d
Testing 'bool' type:
*** Trying int(1)
@@ -199,17 +199,17 @@ bool(true)
*** Trying bool(false)
bool(false)
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type bool, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type bool, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
-*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type bool, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, resource returned in %s on line %d
Done
diff --git a/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt b/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt
index 6f2ff11eb2..fa7aacdef3 100644
--- a/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt
+++ b/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt
@@ -75,30 +75,30 @@ int(1)
E_NOTICE: A non well formed numeric value encountered on line %d
int(1)
*** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
*** Trying string(0) ""
-*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
*** Trying int(9223372036854775807)
int(9223372036854775807)
*** Trying float(NAN)
-*** Caught Return value of {closure}() must be of the type int, float returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, float returned in %s on line %d
*** Trying bool(true)
int(1)
*** Trying bool(false)
int(0)
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type int, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type int, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
-*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type int, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type int, resource returned in %s on line %d
Testing 'float' type:
*** Trying int(1)
@@ -113,9 +113,9 @@ float(1.5)
E_NOTICE: A non well formed numeric value encountered on line %d
float(1)
*** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of the type float, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
*** Trying string(0) ""
-*** Caught Return value of {closure}() must be of the type float, string returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
*** Trying int(9223372036854775807)
float(9.2233720368548E+18)
*** Trying float(NAN)
@@ -125,18 +125,18 @@ float(1)
*** Trying bool(false)
float(0)
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type float, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type float, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type float, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
-*** Caught Return value of {closure}() must be of the type float, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type float, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type float, resource returned in %s on line %d
Testing 'string' type:
*** Trying int(1)
@@ -162,18 +162,18 @@ string(1) "1"
*** Trying bool(false)
string(0) ""
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type string, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type string, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type string, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
string(6) "foobar"
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type string, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type string, resource returned in %s on line %d
Testing 'bool' type:
*** Trying int(1)
@@ -199,17 +199,17 @@ bool(true)
*** Trying bool(false)
bool(false)
*** Trying NULL
-*** Caught Return value of {closure}() must be of the type bool, null returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, null returned in %s on line %d
*** Trying array(0) {
}
-*** Caught Return value of {closure}() must be of the type bool, array returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
-*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
-*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of the type bool, resource returned in %s on line %d
+*** Caught Return value of {closure}() must be of type bool, resource returned in %s on line %d
Done
diff --git a/Zend/tests/type_declarations/scalar_strict.phpt b/Zend/tests/type_declarations/scalar_strict.phpt
index 78b404f9f1..89ab6a024b 100644
--- a/Zend/tests/type_declarations/scalar_strict.phpt
+++ b/Zend/tests/type_declarations/scalar_strict.phpt
@@ -60,52 +60,52 @@ Testing 'int' type:
int(1)
*** Trying string(1) "1"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying float(1)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying int(2147483647)
int(2147483647)
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
Testing 'float' type:
@@ -113,7 +113,7 @@ Testing 'float' type:
float(1)
*** Trying string(1) "1"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying float(1)
float(1)
@@ -122,13 +122,13 @@ float(1)
float(1.5)
*** Trying string(2) "1a"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying int(2147483647)
float(2147483647)
@@ -137,42 +137,42 @@ float(2147483647)
float(NAN)
*** Trying bool(true)
-*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type float, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
Testing 'string' type:
*** Trying int(1)
-*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
*** Trying string(1) "1"
string(1) "1"
*** Trying float(1)
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying string(2) "1a"
string(2) "1a"
@@ -184,63 +184,63 @@ string(1) "a"
string(0) ""
*** Trying int(2147483647)
-*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type string, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
Testing 'bool' type:
*** Trying int(1)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
*** Trying string(1) "1"
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying float(1)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying int(2147483647)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying bool(true)
bool(true)
@@ -249,21 +249,21 @@ bool(true)
bool(false)
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
Done
diff --git a/Zend/tests/type_declarations/scalar_strict_64bit.phpt b/Zend/tests/type_declarations/scalar_strict_64bit.phpt
index d6d38213a4..0f39700b7f 100644
--- a/Zend/tests/type_declarations/scalar_strict_64bit.phpt
+++ b/Zend/tests/type_declarations/scalar_strict_64bit.phpt
@@ -60,52 +60,52 @@ Testing 'int' type:
int(1)
*** Trying string(1) "1"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying float(1)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying int(9223372036854775807)
int(9223372036854775807)
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
Testing 'float' type:
@@ -113,7 +113,7 @@ Testing 'float' type:
float(1)
*** Trying string(1) "1"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying float(1)
float(1)
@@ -122,13 +122,13 @@ float(1)
float(1.5)
*** Trying string(2) "1a"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying int(9223372036854775807)
float(9.2233720368548E+18)
@@ -137,42 +137,42 @@ float(9.2233720368548E+18)
float(NAN)
*** Trying bool(true)
-*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type float, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
Testing 'string' type:
*** Trying int(1)
-*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
*** Trying string(1) "1"
string(1) "1"
*** Trying float(1)
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying string(2) "1a"
string(2) "1a"
@@ -184,63 +184,63 @@ string(1) "a"
string(0) ""
*** Trying int(9223372036854775807)
-*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying bool(true)
-*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
*** Trying bool(false)
-*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type string, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
Testing 'bool' type:
*** Trying int(1)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
*** Trying string(1) "1"
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying float(1)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying float(1.5)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying string(2) "1a"
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying string(1) "a"
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying string(0) ""
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying int(9223372036854775807)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
*** Trying float(NAN)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying bool(true)
bool(true)
@@ -249,21 +249,21 @@ bool(true)
bool(false)
*** Trying NULL
-*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
*** Trying array(0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
*** Trying object(stdClass)#5 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying object(Stringable)#6 (0) {
}
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
-*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
Done
diff --git a/Zend/tests/type_declarations/scalar_strict_basic.phpt b/Zend/tests/type_declarations/scalar_strict_basic.phpt
index 016757e671..d3050314f4 100644
--- a/Zend/tests/type_declarations/scalar_strict_basic.phpt
+++ b/Zend/tests/type_declarations/scalar_strict_basic.phpt
@@ -57,28 +57,28 @@ Testing 'int' type:
int(1)
*** Trying float value
-*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
*** Trying string value
-*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
*** Trying true value
-*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
*** Trying false value
-*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
*** Trying null value
-*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
*** Trying array value
-*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
*** Trying object value
-*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
*** Trying resource value
-*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
Testing 'float' type:
@@ -89,65 +89,65 @@ float(1)
float(1)
*** Trying string value
-*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying true value
-*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
*** Trying false value
-*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
*** Trying null value
-*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
*** Trying array value
-*** Caught Argument 1 passed to {closure}() must be of the type float, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
*** Trying object value
-*** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
*** Trying resource value
-*** Caught Argument 1 passed to {closure}() must be of the type float, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
Testing 'string' type:
*** Trying integer value
-*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
*** Trying float value
-*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
*** Trying string value
string(1) "1"
*** Trying true value
-*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
*** Trying false value
-*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
*** Trying null value
-*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
*** Trying array value
-*** Caught Argument 1 passed to {closure}() must be of the type string, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
*** Trying object value
-*** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
*** Trying resource value
-*** Caught Argument 1 passed to {closure}() must be of the type string, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
Testing 'bool' type:
*** Trying integer value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, int given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
*** Trying float value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
*** Trying string value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
*** Trying true value
bool(true)
@@ -156,15 +156,15 @@ bool(true)
bool(false)
*** Trying null value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
*** Trying array value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
*** Trying object value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
*** Trying resource value
-*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
+*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
Done
diff --git a/Zend/tests/type_declarations/static_type_return.phpt b/Zend/tests/type_declarations/static_type_return.phpt
index 4a04cfff78..a5c8921e0a 100644
--- a/Zend/tests/type_declarations/static_type_return.phpt
+++ b/Zend/tests/type_declarations/static_type_return.phpt
@@ -75,7 +75,7 @@ object(B)#3 (0) {
object(A)#3 (0) {
}
-Return value of A::test2() must be an instance of B, instance of A returned
+Return value of A::test2() must be of type B, A returned
object(A)#3 (0) {
}
@@ -84,8 +84,8 @@ object(C)#3 (0) {
object(A)#3 (0) {
}
-Return value of A::test4() must be of type B|array, instance of A returned
+Return value of A::test4() must be of type B|array, A returned
-Return value of {closure}() must be an instance of static, instance of stdClass returned
+Return value of {closure}() must be of type static, stdClass returned
object(A)#1 (0) {
}
diff --git a/Zend/tests/type_declarations/static_type_trait.phpt b/Zend/tests/type_declarations/static_type_trait.phpt
index ede9fd62b1..41f861643b 100644
--- a/Zend/tests/type_declarations/static_type_trait.phpt
+++ b/Zend/tests/type_declarations/static_type_trait.phpt
@@ -31,7 +31,7 @@ object(P)#2 (0) {
object(P)#2 (0) {
}
-Fatal error: Uncaught TypeError: Return value of C::test() must be an instance of P, instance of C returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of C::test() must be of type P, C returned in %s:%d
Stack trace:
#0 %s(%d): C->test(Object(C))
#1 {main}
diff --git a/Zend/tests/type_declarations/strict_call_weak.phpt b/Zend/tests/type_declarations/strict_call_weak.phpt
index d8dc93bc1e..e20524b2d5 100644
--- a/Zend/tests/type_declarations/strict_call_weak.phpt
+++ b/Zend/tests/type_declarations/strict_call_weak.phpt
@@ -13,7 +13,7 @@ require 'strict_call_weak_2.inc';
function_declared_in_weak_mode(1.0);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to function_declared_in_weak_mode() must be of the type int, float given, called in %sstrict_call_weak.php on line 10 and defined in %sstrict_call_weak_2.inc:5
+Fatal error: Uncaught TypeError: function_declared_in_weak_mode() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): function_declared_in_weak_mode(1)
#1 {main}
diff --git a/Zend/tests/type_declarations/strict_call_weak_explicit.phpt b/Zend/tests/type_declarations/strict_call_weak_explicit.phpt
index e083d586e6..b6b382e5cc 100644
--- a/Zend/tests/type_declarations/strict_call_weak_explicit.phpt
+++ b/Zend/tests/type_declarations/strict_call_weak_explicit.phpt
@@ -13,7 +13,7 @@ require 'strict_call_weak_explicit_2.inc';
function_declared_in_weak_mode(1.0);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to function_declared_in_weak_mode() must be of the type int, float given, called in %sstrict_call_weak_explicit.php on line 10 and defined in %sstrict_call_weak_explicit_2.inc:5
+Fatal error: Uncaught TypeError: function_declared_in_weak_mode() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): function_declared_in_weak_mode(1)
#1 {main}
diff --git a/Zend/tests/type_declarations/typed_properties_078.phpt b/Zend/tests/type_declarations/typed_properties_078.phpt
index c92ed5afc4..07e9384b6f 100644
--- a/Zend/tests/type_declarations/typed_properties_078.phpt
+++ b/Zend/tests/type_declarations/typed_properties_078.phpt
@@ -1,5 +1,5 @@
--TEST--
-Typed references must be kept track of and always be only the intersection of the types currently holding that reference
+Typed references must be kept track of and always be only the intersection of the type currently holding that reference
--FILE--
<?php
diff --git a/Zend/tests/type_declarations/union_types/legal_default_values.phpt b/Zend/tests/type_declarations/union_types/legal_default_values.phpt
index 2807397734..36f16da69a 100644
--- a/Zend/tests/type_declarations/union_types/legal_default_values.phpt
+++ b/Zend/tests/type_declarations/union_types/legal_default_values.phpt
@@ -1,5 +1,5 @@
--TEST--
-The default value must be legal for one of the types in the union
+The default value must be legal for one of the type in the union
--FILE--
<?php
diff --git a/Zend/tests/type_declarations/union_types/multiple_classes.phpt b/Zend/tests/type_declarations/union_types/multiple_classes.phpt
index 72d2e6c291..3187415586 100644
--- a/Zend/tests/type_declarations/union_types/multiple_classes.phpt
+++ b/Zend/tests/type_declarations/union_types/multiple_classes.phpt
@@ -68,7 +68,7 @@ int(42)
int(42)
int(42)
Cannot assign stdClass to property Test::$prop of type X|Y|Z|int
-Argument 1 passed to Test::method() must be of type X|Y|Z|int, instance of stdClass given, called in %s on line %d
+Test::method() expects argument #1 ($arg) to be of type X|Y|Z|int, stdClass given, called in %s on line %d
object(X)#4 (0) {
}
object(X)#6 (0) {
diff --git a/Zend/tests/type_declarations/union_types/type_checking_strict.phpt b/Zend/tests/type_declarations/union_types/type_checking_strict.phpt
index f098b638dc..81c75328d6 100644
--- a/Zend/tests/type_declarations/union_types/type_checking_strict.phpt
+++ b/Zend/tests/type_declarations/union_types/type_checking_strict.phpt
@@ -37,7 +37,7 @@ function test(string $type, array $values) {
} catch (TypeError $e) {
$msg = $e->getMessage();
$msg = strstr($msg, ', called in', true);
- $msg = str_replace('1 passed to {closure}()', '...', $msg);
+ $msg = str_replace('{closure}() expects argument #1', 'Argument ...', $msg);
echo $msg;
}
echo "\n";
@@ -70,86 +70,86 @@ Type int|float:
42 => 42
42.0 => 42.0
INF => INF
-"42" => Argument ... must be of type int|float, string given
-"42.0" => Argument ... must be of type int|float, string given
-"42x" => Argument ... must be of type int|float, string given
-"x" => Argument ... must be of type int|float, string given
-"" => Argument ... must be of type int|float, string given
-true => Argument ... must be of type int|float, bool given
-false => Argument ... must be of type int|float, bool given
-null => Argument ... must be of type int|float, null given
-[] => Argument ... must be of type int|float, array given
-new stdClass => Argument ... must be of type int|float, object given
-new WithToString => Argument ... must be of type int|float, object given
+"42" => Argument ... ($arg) to be of type int|float, string given
+"42.0" => Argument ... ($arg) to be of type int|float, string given
+"42x" => Argument ... ($arg) to be of type int|float, string given
+"x" => Argument ... ($arg) to be of type int|float, string given
+"" => Argument ... ($arg) to be of type int|float, string given
+true => Argument ... ($arg) to be of type int|float, bool given
+false => Argument ... ($arg) to be of type int|float, bool given
+null => Argument ... ($arg) to be of type int|float, null given
+[] => Argument ... ($arg) to be of type int|float, array given
+new stdClass => Argument ... ($arg) to be of type int|float, object given
+new WithToString => Argument ... ($arg) to be of type int|float, object given
Type int|float|false:
42 => 42
42.0 => 42.0
INF => INF
-"42" => Argument ... must be of type int|float|false, string given
-"42.0" => Argument ... must be of type int|float|false, string given
-"42x" => Argument ... must be of type int|float|false, string given
-"x" => Argument ... must be of type int|float|false, string given
-"" => Argument ... must be of type int|float|false, string given
-true => Argument ... must be of type int|float|false, bool given
+"42" => Argument ... ($arg) to be of type int|float|false, string given
+"42.0" => Argument ... ($arg) to be of type int|float|false, string given
+"42x" => Argument ... ($arg) to be of type int|float|false, string given
+"x" => Argument ... ($arg) to be of type int|float|false, string given
+"" => Argument ... ($arg) to be of type int|float|false, string given
+true => Argument ... ($arg) to be of type int|float|false, bool given
false => false
-null => Argument ... must be of type int|float|false, null given
-[] => Argument ... must be of type int|float|false, array given
-new stdClass => Argument ... must be of type int|float|false, object given
-new WithToString => Argument ... must be of type int|float|false, object given
+null => Argument ... ($arg) to be of type int|float|false, null given
+[] => Argument ... ($arg) to be of type int|float|false, array given
+new stdClass => Argument ... ($arg) to be of type int|float|false, object given
+new WithToString => Argument ... ($arg) to be of type int|float|false, object given
Type int|float|bool:
42 => 42
42.0 => 42.0
INF => INF
-"42" => Argument ... must be of type int|float|bool, string given
-"42.0" => Argument ... must be of type int|float|bool, string given
-"42x" => Argument ... must be of type int|float|bool, string given
-"x" => Argument ... must be of type int|float|bool, string given
-"" => Argument ... must be of type int|float|bool, string given
+"42" => Argument ... ($arg) to be of type int|float|bool, string given
+"42.0" => Argument ... ($arg) to be of type int|float|bool, string given
+"42x" => Argument ... ($arg) to be of type int|float|bool, string given
+"x" => Argument ... ($arg) to be of type int|float|bool, string given
+"" => Argument ... ($arg) to be of type int|float|bool, string given
true => true
false => false
-null => Argument ... must be of type int|float|bool, null given
-[] => Argument ... must be of type int|float|bool, array given
-new stdClass => Argument ... must be of type int|float|bool, object given
-new WithToString => Argument ... must be of type int|float|bool, object given
+null => Argument ... ($arg) to be of type int|float|bool, null given
+[] => Argument ... ($arg) to be of type int|float|bool, array given
+new stdClass => Argument ... ($arg) to be of type int|float|bool, object given
+new WithToString => Argument ... ($arg) to be of type int|float|bool, object given
Type int|bool:
42 => 42
-42.0 => Argument ... must be of type int|bool, float given
-INF => Argument ... must be of type int|bool, float given
-"42" => Argument ... must be of type int|bool, string given
-"42.0" => Argument ... must be of type int|bool, string given
-"42x" => Argument ... must be of type int|bool, string given
-"x" => Argument ... must be of type int|bool, string given
-"" => Argument ... must be of type int|bool, string given
+42.0 => Argument ... ($arg) to be of type int|bool, float given
+INF => Argument ... ($arg) to be of type int|bool, float given
+"42" => Argument ... ($arg) to be of type int|bool, string given
+"42.0" => Argument ... ($arg) to be of type int|bool, string given
+"42x" => Argument ... ($arg) to be of type int|bool, string given
+"x" => Argument ... ($arg) to be of type int|bool, string given
+"" => Argument ... ($arg) to be of type int|bool, string given
true => true
false => false
-null => Argument ... must be of type int|bool, null given
-[] => Argument ... must be of type int|bool, array given
-new stdClass => Argument ... must be of type int|bool, object given
-new WithToString => Argument ... must be of type int|bool, object given
+null => Argument ... ($arg) to be of type int|bool, null given
+[] => Argument ... ($arg) to be of type int|bool, array given
+new stdClass => Argument ... ($arg) to be of type int|bool, object given
+new WithToString => Argument ... ($arg) to be of type int|bool, object given
Type int|string|null:
42 => 42
-42.0 => Argument ... must be of type string|int|null, float given
-INF => Argument ... must be of type string|int|null, float given
+42.0 => Argument ... ($arg) to be of type string|int|null, float given
+INF => Argument ... ($arg) to be of type string|int|null, float given
"42" => "42"
"42.0" => "42.0"
"42x" => "42x"
"x" => "x"
"" => ""
-true => Argument ... must be of type string|int|null, bool given
-false => Argument ... must be of type string|int|null, bool given
+true => Argument ... ($arg) to be of type string|int|null, bool given
+false => Argument ... ($arg) to be of type string|int|null, bool given
null => null
-[] => Argument ... must be of type string|int|null, array given
-new stdClass => Argument ... must be of type string|int|null, object given
-new WithToString => Argument ... must be of type string|int|null, object given
+[] => Argument ... ($arg) to be of type string|int|null, array given
+new stdClass => Argument ... ($arg) to be of type string|int|null, object given
+new WithToString => Argument ... ($arg) to be of type string|int|null, object given
Type string|bool:
-42 => Argument ... must be of type string|bool, int given
-42.0 => Argument ... must be of type string|bool, float given
-INF => Argument ... must be of type string|bool, float given
+42 => Argument ... ($arg) to be of type string|bool, int given
+42.0 => Argument ... ($arg) to be of type string|bool, float given
+INF => Argument ... ($arg) to be of type string|bool, float given
"42" => "42"
"42.0" => "42.0"
"42x" => "42x"
@@ -157,55 +157,55 @@ INF => Argument ... must be of type string|bool, float given
"" => ""
true => true
false => false
-null => Argument ... must be of type string|bool, null given
-[] => Argument ... must be of type string|bool, array given
-new stdClass => Argument ... must be of type string|bool, object given
-new WithToString => Argument ... must be of type string|bool, object given
+null => Argument ... ($arg) to be of type string|bool, null given
+[] => Argument ... ($arg) to be of type string|bool, array given
+new stdClass => Argument ... ($arg) to be of type string|bool, object given
+new WithToString => Argument ... ($arg) to be of type string|bool, object given
Type float|array:
42 => 42.0
42.0 => 42.0
INF => INF
-"42" => Argument ... must be of type array|float, string given
-"42.0" => Argument ... must be of type array|float, string given
-"42x" => Argument ... must be of type array|float, string given
-"x" => Argument ... must be of type array|float, string given
-"" => Argument ... must be of type array|float, string given
-true => Argument ... must be of type array|float, bool given
-false => Argument ... must be of type array|float, bool given
-null => Argument ... must be of type array|float, null given
+"42" => Argument ... ($arg) to be of type array|float, string given
+"42.0" => Argument ... ($arg) to be of type array|float, string given
+"42x" => Argument ... ($arg) to be of type array|float, string given
+"x" => Argument ... ($arg) to be of type array|float, string given
+"" => Argument ... ($arg) to be of type array|float, string given
+true => Argument ... ($arg) to be of type array|float, bool given
+false => Argument ... ($arg) to be of type array|float, bool given
+null => Argument ... ($arg) to be of type array|float, null given
[] => []
-new stdClass => Argument ... must be of type array|float, object given
-new WithToString => Argument ... must be of type array|float, object given
+new stdClass => Argument ... ($arg) to be of type array|float, object given
+new WithToString => Argument ... ($arg) to be of type array|float, object given
Type string|array:
-42 => Argument ... must be of type array|string, int given
-42.0 => Argument ... must be of type array|string, float given
-INF => Argument ... must be of type array|string, float given
+42 => Argument ... ($arg) to be of type array|string, int given
+42.0 => Argument ... ($arg) to be of type array|string, float given
+INF => Argument ... ($arg) to be of type array|string, float given
"42" => "42"
"42.0" => "42.0"
"42x" => "42x"
"x" => "x"
"" => ""
-true => Argument ... must be of type array|string, bool given
-false => Argument ... must be of type array|string, bool given
-null => Argument ... must be of type array|string, null given
+true => Argument ... ($arg) to be of type array|string, bool given
+false => Argument ... ($arg) to be of type array|string, bool given
+null => Argument ... ($arg) to be of type array|string, null given
[] => []
-new stdClass => Argument ... must be of type array|string, object given
-new WithToString => Argument ... must be of type array|string, object given
+new stdClass => Argument ... ($arg) to be of type array|string, object given
+new WithToString => Argument ... ($arg) to be of type array|string, object given
Type bool|array:
-42 => Argument ... must be of type array|bool, int given
-42.0 => Argument ... must be of type array|bool, float given
-INF => Argument ... must be of type array|bool, float given
-"42" => Argument ... must be of type array|bool, string given
-"42.0" => Argument ... must be of type array|bool, string given
-"42x" => Argument ... must be of type array|bool, string given
-"x" => Argument ... must be of type array|bool, string given
-"" => Argument ... must be of type array|bool, string given
+42 => Argument ... ($arg) to be of type array|bool, int given
+42.0 => Argument ... ($arg) to be of type array|bool, float given
+INF => Argument ... ($arg) to be of type array|bool, float given
+"42" => Argument ... ($arg) to be of type array|bool, string given
+"42.0" => Argument ... ($arg) to be of type array|bool, string given
+"42x" => Argument ... ($arg) to be of type array|bool, string given
+"x" => Argument ... ($arg) to be of type array|bool, string given
+"" => Argument ... ($arg) to be of type array|bool, string given
true => true
false => false
-null => Argument ... must be of type array|bool, null given
+null => Argument ... ($arg) to be of type array|bool, null given
[] => []
-new stdClass => Argument ... must be of type array|bool, object given
-new WithToString => Argument ... must be of type array|bool, object given
+new stdClass => Argument ... ($arg) to be of type array|bool, object given
+new WithToString => Argument ... ($arg) to be of type array|bool, object given
diff --git a/Zend/tests/type_declarations/union_types/type_checking_weak.phpt b/Zend/tests/type_declarations/union_types/type_checking_weak.phpt
index 441eaab854..c48e95f640 100644
--- a/Zend/tests/type_declarations/union_types/type_checking_weak.phpt
+++ b/Zend/tests/type_declarations/union_types/type_checking_weak.phpt
@@ -35,7 +35,7 @@ function test(string $type, array $values) {
} catch (TypeError $e) {
$msg = $e->getMessage();
$msg = strstr($msg, ', called in', true);
- $msg = str_replace('1 passed to {closure}()', '...', $msg);
+ $msg = str_replace('{closure}() expects argument #1', 'Argument ...', $msg);
echo $msg;
}
echo "\n";
@@ -71,14 +71,14 @@ INF => INF
"42" => 42
"42.0" => 42.0
"42x" => 42 (A non well formed numeric value encountered)
-"x" => Argument ... must be of type int|float, string given
-"" => Argument ... must be of type int|float, string given
+"x" => Argument ... ($arg) to be of type int|float, string given
+"" => Argument ... ($arg) to be of type int|float, string given
true => 1
false => 0
-null => Argument ... must be of type int|float, null given
-[] => Argument ... must be of type int|float, array given
-new stdClass => Argument ... must be of type int|float, object given
-new WithToString => Argument ... must be of type int|float, object given
+null => Argument ... ($arg) to be of type int|float, null given
+[] => Argument ... ($arg) to be of type int|float, array given
+new stdClass => Argument ... ($arg) to be of type int|float, object given
+new WithToString => Argument ... ($arg) to be of type int|float, object given
Type int|float|false:
42 => 42
@@ -87,14 +87,14 @@ INF => INF
"42" => 42
"42.0" => 42.0
"42x" => 42 (A non well formed numeric value encountered)
-"x" => Argument ... must be of type int|float|false, string given
-"" => Argument ... must be of type int|float|false, string given
+"x" => Argument ... ($arg) to be of type int|float|false, string given
+"" => Argument ... ($arg) to be of type int|float|false, string given
true => 1
false => false
-null => Argument ... must be of type int|float|false, null given
-[] => Argument ... must be of type int|float|false, array given
-new stdClass => Argument ... must be of type int|float|false, object given
-new WithToString => Argument ... must be of type int|float|false, object given
+null => Argument ... ($arg) to be of type int|float|false, null given
+[] => Argument ... ($arg) to be of type int|float|false, array given
+new stdClass => Argument ... ($arg) to be of type int|float|false, object given
+new WithToString => Argument ... ($arg) to be of type int|float|false, object given
Type int|float|bool:
42 => 42
@@ -107,10 +107,10 @@ INF => INF
"" => false
true => true
false => false
-null => Argument ... must be of type int|float|bool, null given
-[] => Argument ... must be of type int|float|bool, array given
-new stdClass => Argument ... must be of type int|float|bool, object given
-new WithToString => Argument ... must be of type int|float|bool, object given
+null => Argument ... ($arg) to be of type int|float|bool, null given
+[] => Argument ... ($arg) to be of type int|float|bool, array given
+new stdClass => Argument ... ($arg) to be of type int|float|bool, object given
+new WithToString => Argument ... ($arg) to be of type int|float|bool, object given
Type int|bool:
42 => 42
@@ -123,10 +123,10 @@ INF => true
"" => false
true => true
false => false
-null => Argument ... must be of type int|bool, null given
-[] => Argument ... must be of type int|bool, array given
-new stdClass => Argument ... must be of type int|bool, object given
-new WithToString => Argument ... must be of type int|bool, object given
+null => Argument ... ($arg) to be of type int|bool, null given
+[] => Argument ... ($arg) to be of type int|bool, array given
+new stdClass => Argument ... ($arg) to be of type int|bool, object given
+new WithToString => Argument ... ($arg) to be of type int|bool, object given
Type int|string|null:
42 => 42
@@ -140,8 +140,8 @@ INF => "INF"
true => 1
false => 0
null => null
-[] => Argument ... must be of type string|int|null, array given
-new stdClass => Argument ... must be of type string|int|null, object given
+[] => Argument ... ($arg) to be of type string|int|null, array given
+new stdClass => Argument ... ($arg) to be of type string|int|null, object given
new WithToString => "__toString()"
Type string|bool:
@@ -155,9 +155,9 @@ INF => "INF"
"" => ""
true => true
false => false
-null => Argument ... must be of type string|bool, null given
-[] => Argument ... must be of type string|bool, array given
-new stdClass => Argument ... must be of type string|bool, object given
+null => Argument ... ($arg) to be of type string|bool, null given
+[] => Argument ... ($arg) to be of type string|bool, array given
+new stdClass => Argument ... ($arg) to be of type string|bool, object given
new WithToString => "__toString()"
Type float|array:
@@ -167,14 +167,14 @@ INF => INF
"42" => 42.0
"42.0" => 42.0
"42x" => 42.0 (A non well formed numeric value encountered)
-"x" => Argument ... must be of type array|float, string given
-"" => Argument ... must be of type array|float, string given
+"x" => Argument ... ($arg) to be of type array|float, string given
+"" => Argument ... ($arg) to be of type array|float, string given
true => 1.0
false => 0.0
-null => Argument ... must be of type array|float, null given
+null => Argument ... ($arg) to be of type array|float, null given
[] => []
-new stdClass => Argument ... must be of type array|float, object given
-new WithToString => Argument ... must be of type array|float, object given
+new stdClass => Argument ... ($arg) to be of type array|float, object given
+new WithToString => Argument ... ($arg) to be of type array|float, object given
Type string|array:
42 => "42"
@@ -187,9 +187,9 @@ INF => "INF"
"" => ""
true => "1"
false => ""
-null => Argument ... must be of type array|string, null given
+null => Argument ... ($arg) to be of type array|string, null given
[] => []
-new stdClass => Argument ... must be of type array|string, object given
+new stdClass => Argument ... ($arg) to be of type array|string, object given
new WithToString => "__toString()"
Type bool|array:
@@ -203,7 +203,7 @@ INF => true
"" => false
true => true
false => false
-null => Argument ... must be of type array|bool, null given
+null => Argument ... ($arg) to be of type array|bool, null given
[] => []
-new stdClass => Argument ... must be of type array|bool, object given
-new WithToString => Argument ... must be of type array|bool, object given
+new stdClass => Argument ... ($arg) to be of type array|bool, object given
+new WithToString => Argument ... ($arg) to be of type array|bool, object given
diff --git a/Zend/tests/type_declarations/weak_include_strict.phpt b/Zend/tests/type_declarations/weak_include_strict.phpt
index 52f5f55cdb..61f33818e2 100644
--- a/Zend/tests/type_declarations/weak_include_strict.phpt
+++ b/Zend/tests/type_declarations/weak_include_strict.phpt
@@ -11,7 +11,7 @@ require 'weak_include_strict_2.inc';
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type int, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
+Fatal error: Uncaught TypeError: takes_int() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): takes_int(1)
#1 %s(%d): require('%s')
diff --git a/Zend/tests/typehints/or_null.phpt b/Zend/tests/typehints/or_null.phpt
index 552db7d058..55714620c2 100644
--- a/Zend/tests/typehints/or_null.phpt
+++ b/Zend/tests/typehints/or_null.phpt
@@ -219,99 +219,99 @@ try {
?>
--EXPECTF--
-TypeError: Argument 1 passed to unloadedClass() must be an instance of I\Dont\Exist or null, instance of stdClass given, called in %s on line 8 and defined in %s:5
+TypeError: unloadedClass() expects argument #1 ($param) to be of type ?I\Dont\Exist, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(8): unloadedClass(Object(stdClass))
#1 {main}
-TypeError: Argument 1 passed to loadedClass() must be an instance of RealClass or null, instance of stdClass given, called in %s on line 20 and defined in %s:16
+TypeError: loadedClass() expects argument #1 ($param) to be of type ?RealClass, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(20): loadedClass(Object(stdClass))
#1 {main}
-TypeError: Argument 1 passed to loadedInterface() must implement interface RealInterface or be null, instance of stdClass given, called in %s on line 26 and defined in %s:17
+TypeError: loadedInterface() expects argument #1 ($param) to be of type ?RealInterface, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(26): loadedInterface(Object(stdClass))
#1 {main}
-TypeError: Argument 1 passed to unloadedClass() must be an instance of I\Dont\Exist or null, int given, called in %s on line 32 and defined in %s:5
+TypeError: unloadedClass() expects argument #1 ($param) to be of type ?I\Dont\Exist, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(32): unloadedClass(1)
#1 {main}
-TypeError: Argument 1 passed to loadedClass() must be an instance of RealClass or null, int given, called in %s on line 38 and defined in %s:16
+TypeError: loadedClass() expects argument #1 ($param) to be of type ?RealClass, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(38): loadedClass(1)
#1 {main}
-TypeError: Argument 1 passed to loadedInterface() must implement interface RealInterface or be null, int given, called in %s on line 44 and defined in %s:17
+TypeError: loadedInterface() expects argument #1 ($param) to be of type ?RealInterface, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(44): loadedInterface(1)
#1 {main}
-TypeError: Argument 1 passed to callableF() must be callable or null, int given, called in %s on line 52 and defined in %s:49
+TypeError: callableF() expects argument #1 ($param) to be of type ?callable, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(52): callableF(1)
#1 {main}
-TypeError: Argument 1 passed to iterableF() must be iterable or null, int given, called in %s on line 60 and defined in %s:57
+TypeError: iterableF() expects argument #1 ($param) to be of type ?iterable, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(60): iterableF(1)
#1 {main}
-TypeError: Argument 1 passed to intF() must be of the type int or null, object given, called in %s on line 68 and defined in %s:65
+TypeError: intF() expects argument #1 ($param) to be of type ?int, object given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(68): intF(Object(stdClass))
#1 {main}
-TypeError: Return value of returnUnloadedClass() must be an instance of I\Dont\Exist or null, instance of stdClass returned in %s:74
+TypeError: Return value of returnUnloadedClass() must be of type ?I\Dont\Exist, stdClass returned in %s:74
Stack trace:
#0 %s(78): returnUnloadedClass()
#1 {main}
-TypeError: Return value of returnLoadedClass() must be an instance of RealClass or null, instance of stdClass returned in %s:84
+TypeError: Return value of returnLoadedClass() must be of type ?RealClass, stdClass returned in %s:84
Stack trace:
#0 %s(88): returnLoadedClass()
#1 {main}
-TypeError: Return value of returnLoadedInterface() must implement interface RealInterface or be null, instance of stdClass returned in %s:94
+TypeError: Return value of returnLoadedInterface() must be of type ?RealInterface, stdClass returned in %s:94
Stack trace:
#0 %s(98): returnLoadedInterface()
#1 {main}
-TypeError: Return value of returnUnloadedClassScalar() must be an instance of I\Dont\Exist or null, int returned in %s:104
+TypeError: Return value of returnUnloadedClassScalar() must be of type ?I\Dont\Exist, int returned in %s:104
Stack trace:
#0 %s(108): returnUnloadedClassScalar()
#1 {main}
-TypeError: Return value of returnLoadedClassScalar() must be an instance of RealClass or null, int returned in %s:114
+TypeError: Return value of returnLoadedClassScalar() must be of type ?RealClass, int returned in %s:114
Stack trace:
#0 %s(118): returnLoadedClassScalar()
#1 {main}
-TypeError: Return value of returnLoadedInterfaceScalar() must implement interface RealInterface or be null, int returned in %s:124
+TypeError: Return value of returnLoadedInterfaceScalar() must be of type ?RealInterface, int returned in %s:124
Stack trace:
#0 %s(128): returnLoadedInterfaceScalar()
#1 {main}
-TypeError: Return value of returnCallable() must be callable or null, int returned in %s:134
+TypeError: Return value of returnCallable() must be of type ?callable, int returned in %s:134
Stack trace:
#0 %s(138): returnCallable()
#1 {main}
-TypeError: Return value of returnIterable() must be iterable or null, int returned in %s:144
+TypeError: Return value of returnIterable() must be of type ?iterable, int returned in %s:144
Stack trace:
#0 %s(148): returnIterable()
#1 {main}
-TypeError: Return value of returnInt() must be of the type int or null, object returned in %s:154
+TypeError: Return value of returnInt() must be of type ?int, object returned in %s:154
Stack trace:
#0 %s(158): returnInt()
#1 {main}
-TypeError: Return value of returnMissingUnloadedClass() must be an instance of I\Dont\Exist or null, none returned in %s:164
+TypeError: Return value of returnMissingUnloadedClass() must be of type ?I\Dont\Exist, none returned in %s:164
Stack trace:
#0 %s(167): returnMissingUnloadedClass()
#1 {main}
-TypeError: Return value of returnMissingLoadedClass() must be an instance of RealClass or null, none returned in %s:173
+TypeError: Return value of returnMissingLoadedClass() must be of type ?RealClass, none returned in %s:173
Stack trace:
#0 %s(176): returnMissingLoadedClass()
#1 {main}
-TypeError: Return value of returnMissingLoadedInterface() must implement interface RealInterface or be null, none returned in %s:182
+TypeError: Return value of returnMissingLoadedInterface() must be of type ?RealInterface, none returned in %s:182
Stack trace:
#0 %s(185): returnMissingLoadedInterface()
#1 {main}
-TypeError: Return value of returnMissingCallable() must be callable or null, none returned in %s:191
+TypeError: Return value of returnMissingCallable() must be of type ?callable, none returned in %s:191
Stack trace:
#0 %s(194): returnMissingCallable()
#1 {main}
-TypeError: Return value of returnMissingIterable() must be iterable or null, none returned in %s:200
+TypeError: Return value of returnMissingIterable() must be of type ?iterable, none returned in %s:200
Stack trace:
#0 %s(203): returnMissingIterable()
#1 {main}
-TypeError: Return value of returnMissingInt() must be of the type int or null, none returned in %s:209
+TypeError: Return value of returnMissingInt() must be of type ?int, none returned in %s:209
Stack trace:
#0 %s(212): returnMissingInt()
#1 {main}
diff --git a/Zend/tests/variadic/typehint_error.phpt b/Zend/tests/variadic/typehint_error.phpt
index d9a5ea291f..712e21d3ac 100644
--- a/Zend/tests/variadic/typehint_error.phpt
+++ b/Zend/tests/variadic/typehint_error.phpt
@@ -33,7 +33,7 @@ array(3) {
}
}
-Fatal error: Uncaught TypeError: Argument 3 passed to test() must be of the type array, int given, called in %s:%d
+Fatal error: Uncaught TypeError: test() expects argument #3 ($args) to be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): test(Array, Array, 2)
#1 {main}
diff --git a/Zend/tests/variadic/typehint_suppressed_error.phpt b/Zend/tests/variadic/typehint_suppressed_error.phpt
index e7906ea2f2..d1168f4025 100644
--- a/Zend/tests/variadic/typehint_suppressed_error.phpt
+++ b/Zend/tests/variadic/typehint_suppressed_error.phpt
@@ -15,4 +15,4 @@ try {
?>
--EXPECTF--
-string(%d) "Argument 3 passed to test() must be of the type array, int given, called in %s on line %d"
+string(%d) "test() expects argument #3 ($args) to be of type array, int given, called in %s on line %d"
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index ed8440f104..595208033b 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -207,8 +207,6 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_count_error(int min_
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_error(int num, zend_expected_type expected_type, zval *arg) /* {{{ */
{
- const char *space;
- const char *class_name;
static const char * const expected_error[] = {
Z_EXPECTED_TYPES(Z_EXPECTED_TYPE_STR)
NULL
@@ -217,38 +215,55 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_error(int num, z
if (EG(exception)) {
return;
}
- class_name = get_active_class_name(&space);
- zend_type_error("%s%s%s() expects parameter %d to be %s, %s given",
- class_name, space, get_active_function_name(), num, expected_error[expected_type], zend_zval_type_name(arg));
+
+ zend_argument_type_error(num, "to be %s, %s given", expected_error[expected_type], zend_zval_type_name(arg));
}
/* }}} */
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num, const char *name, zval *arg) /* {{{ */
{
- const char *space;
- const char *class_name;
-
if (EG(exception)) {
return;
}
- class_name = get_active_class_name(&space);
- zend_type_error("%s%s%s() expects parameter %d to be %s, %s given",
- class_name, space, get_active_function_name(), num, name, zend_zval_type_name(arg));
+
+ zend_argument_type_error(num, "to be of type %s, %s given", name, zend_zval_type_name(arg));
}
/* }}} */
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error(int num, char *error) /* {{{ */
{
+ if (EG(exception)) {
+ return;
+ }
+
+ zend_argument_type_error(num, "to be a valid callback, %s", error);
+ efree(error);
+}
+/* }}} */
+
+ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_error(zend_class_entry *error_ce, uint32_t arg_num, const char *format, ...) /* {{{ */
+{
const char *space;
const char *class_name;
-
+ const char *arg_name;
+ char *message = NULL;
if (EG(exception)) {
return;
}
+
class_name = get_active_class_name(&space);
- zend_type_error("%s%s%s() expects parameter %d to be a valid callback, %s",
- class_name, space, get_active_function_name(), num, error);
- efree(error);
+ arg_name = get_active_function_arg_name(arg_num);
+
+ va_list va;
+ va_start(va, format);
+ zend_vspprintf(&message, 0, format, va);
+ va_end(va);
+
+ zend_throw_error(error_ce, "%s%s%s() expects argument #%d%s%s%s %s",
+ class_name, space, get_active_function_name(), arg_num,
+ arg_name ? " ($" : "", arg_name ? arg_name : "", arg_name ? ")" : "", message
+ );
+ efree(message);
}
/* }}} */
@@ -268,23 +283,13 @@ ZEND_API int ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **pc
*pce = zend_lookup_class(Z_STR_P(arg));
if (ce_base) {
if ((!*pce || !instanceof_function(*pce, ce_base))) {
- const char *space;
- const char *class_name = get_active_class_name(&space);
-
- zend_type_error("%s%s%s() expects parameter %d to be a class name derived from %s, '%s' given",
- class_name, space, get_active_function_name(), num,
- ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
+ zend_argument_type_error(num, "to be a class name derived from %s, '%s' given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
*pce = NULL;
return 0;
}
}
if (!*pce) {
- const char *space;
- const char *class_name = get_active_class_name(&space);
-
- zend_type_error("%s%s%s() expects parameter %d to be a valid class name, '%s' given",
- class_name, space, get_active_function_name(), num,
- Z_STRVAL_P(arg));
+ zend_argument_type_error(num, "to be a valid class name, '%s' given", Z_STRVAL_P(arg));
return 0;
}
return 1;
@@ -547,7 +552,8 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
char **p = va_arg(*va, char **);
size_t *pl = va_arg(*va, size_t *);
if (!zend_parse_arg_path(arg, p, pl, check_null)) {
- return "a valid path";
+ zend_spprintf(error, 0, "a valid path, %s given", zend_zval_type_name(arg));
+ return "";
}
}
break;
@@ -556,7 +562,8 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
{
zend_string **str = va_arg(*va, zend_string **);
if (!zend_parse_arg_path_str(arg, str, check_null)) {
- return "a valid path";
+ zend_spprintf(error, 0, "a valid path, %s given", zend_zval_type_name(arg));
+ return "";
}
}
break;
@@ -653,7 +660,7 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
}
if (!try_convert_to_string(arg)) {
*pce = NULL;
- return "valid class name";
+ return "a valid class name";
}
if ((lookup = zend_lookup_class(Z_STR_P(arg))) == NULL) {
@@ -663,14 +670,14 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
}
if (ce_base) {
if ((!*pce || !instanceof_function(*pce, ce_base))) {
- zend_spprintf(error, 0, "to be a class name derived from %s, '%s' given",
+ zend_spprintf(error, 0, "a class name derived from %s, '%s' given",
ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
*pce = NULL;
return "";
}
}
if (!*pce) {
- zend_spprintf(error, 0, "to be a valid class name, '%s' given",
+ zend_spprintf(error, 0, "a valid class name, '%s' given",
Z_STRVAL_P(arg));
return "";
}
@@ -697,11 +704,11 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
}
if (is_callable_error) {
- zend_spprintf(error, 0, "to be a valid callback, %s", is_callable_error);
+ zend_spprintf(error, 0, "a valid callback, %s", is_callable_error);
efree(is_callable_error);
return "";
} else {
- return "valid callback";
+ return "a valid callback";
}
}
@@ -737,19 +744,16 @@ static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec
return FAILURE;
}
if (!(flags & ZEND_PARSE_PARAMS_QUIET) && (*expected_type || error)) {
- const char *space;
- const char *class_name = get_active_class_name(&space);
-
if (error) {
- zend_type_error("%s%s%s() expects parameter %d %s",
- class_name, space, get_active_function_name(), arg_num, error);
+ zend_argument_type_error(arg_num, "to be %s", error);
efree(error);
} else {
- zend_type_error("%s%s%s() expects parameter %d to be %s, %s given",
- class_name, space, get_active_function_name(), arg_num, expected_type,
- zend_zval_type_name(arg));
+ zend_argument_type_error(arg_num, "to be of type %s, %s given", expected_type, zend_zval_type_name(arg));
}
+ } else if (error) {
+ efree(error);
}
+
return FAILURE;
}
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 2f1b58eb75..9fd656b276 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -1124,17 +1124,19 @@ static zend_always_inline zval *zend_try_array_init(zval *zv)
#define FAST_ZPP 1
#define Z_EXPECTED_TYPES(_) \
- _(Z_EXPECTED_LONG, "int") \
- _(Z_EXPECTED_BOOL, "bool") \
- _(Z_EXPECTED_STRING, "string") \
- _(Z_EXPECTED_ARRAY, "array") \
- _(Z_EXPECTED_FUNC, "valid callback") \
- _(Z_EXPECTED_RESOURCE, "resource") \
+ _(Z_EXPECTED_LONG, "of type int") \
+ _(Z_EXPECTED_BOOL, "of type bool") \
+ _(Z_EXPECTED_STRING, "of type string") \
+ _(Z_EXPECTED_ARRAY, "of type array") \
+ _(Z_EXPECTED_FUNC, "a valid callback") \
+ _(Z_EXPECTED_RESOURCE, "of type resource") \
_(Z_EXPECTED_PATH, "a valid path") \
- _(Z_EXPECTED_OBJECT, "object") \
- _(Z_EXPECTED_DOUBLE, "float") \
- _(Z_EXPECTED_NUMBER, "int or float") \
- _(Z_EXPECTED_STRING_OR_ARRAY, "string or array") \
+ _(Z_EXPECTED_OBJECT, "of type object") \
+ _(Z_EXPECTED_DOUBLE, "of type float") \
+ _(Z_EXPECTED_NUMBER, "of type int|float") \
+ _(Z_EXPECTED_STRING_OR_ARRAY, "of type string|array") \
+
+#define Z_EXPECTED_TYPE
#define Z_EXPECTED_TYPE_ENUM(id, str) id,
#define Z_EXPECTED_TYPE_STR(id, str) str,
@@ -1149,6 +1151,11 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_count_error(int min_
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_error(int num, zend_expected_type expected_type, zval *arg);
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num, const char *name, zval *arg);
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error(int num, char *error);
+ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_error(zend_class_entry *error_ce, uint32_t arg_num, const char *format, ...);
+#define zend_argument_type_error(arg_num, ...) \
+ zend_argument_error(zend_ce_type_error, arg_num, __VA_ARGS__)
+#define zend_argument_value_error(arg_num, ...) \
+ zend_argument_error(zend_ce_value_error, arg_num, __VA_ARGS__)
#define ZPP_ERROR_OK 0
#define ZPP_ERROR_FAILURE 1
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 80651a880e..2ec192c035 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1388,8 +1388,7 @@ ZEND_FUNCTION(set_error_handler)
if (Z_TYPE_P(error_handler) != IS_NULL) { /* NULL == unset */
if (!zend_is_callable(error_handler, 0, NULL)) {
zend_string *error_handler_name = zend_get_callable_name(error_handler);
- zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback",
- get_active_function_name(), error_handler_name?ZSTR_VAL(error_handler_name):"unknown");
+ zend_error(E_WARNING, "%s() expects argument #1 ($error_handler) to be a valid callback", get_active_function_name());
zend_string_release_ex(error_handler_name, 0);
return;
}
@@ -1453,8 +1452,7 @@ ZEND_FUNCTION(set_exception_handler)
if (Z_TYPE_P(exception_handler) != IS_NULL) { /* NULL == unset */
if (!zend_is_callable(exception_handler, 0, NULL)) {
zend_string *exception_handler_name = zend_get_callable_name(exception_handler);
- zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback",
- get_active_function_name(), exception_handler_name?ZSTR_VAL(exception_handler_name):"unknown");
+ zend_error(E_WARNING, "%s() expects argument #1 ($exception_handler) to be a valid callback", get_active_function_name());
zend_string_release_ex(exception_handler_name, 0);
return;
}
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 3fbbcef0fe..7da6810a11 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -640,30 +640,12 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_throw_non_object_erro
}
}
-/* Test used to preserve old error messages for non-union types.
- * We might want to canonicalize all type errors instead. */
-static zend_bool is_union_type(zend_type type) {
- if (ZEND_TYPE_HAS_LIST(type)) {
- return 1;
- }
- uint32_t type_mask_without_null = ZEND_TYPE_PURE_MASK_WITHOUT_NULL(type);
- if (ZEND_TYPE_HAS_CLASS(type)) {
- return type_mask_without_null != 0;
- }
- if (type_mask_without_null == MAY_BE_BOOL) {
- return 0;
- }
- /* Check that only one bit is set. */
- return (type_mask_without_null & (type_mask_without_null - 1)) != 0;
-}
-
static ZEND_COLD void zend_verify_type_error_common(
const zend_function *zf, const zend_arg_info *arg_info,
void **cache_slot, zval *value,
const char **fname, const char **fsep, const char **fclass,
- zend_string **need_msg, const char **given_msg, const char **given_kind)
+ zend_string **need_msg, const char **given_kind)
{
- smart_str str = {0};
*fname = ZSTR_VAL(zf->common.function_name);
if (zf->common.scope) {
*fsep = "::";
@@ -673,90 +655,18 @@ static ZEND_COLD void zend_verify_type_error_common(
*fclass = "";
}
- if (is_union_type(arg_info->type)) {
- zend_string *type_str = zend_type_to_string_resolved(arg_info->type, zf->common.scope);
- smart_str_appends(&str, "be of type ");
- smart_str_append(&str, type_str);
- zend_string_release(type_str);
- } else if (ZEND_TYPE_HAS_CLASS(arg_info->type)) {
- zend_bool is_interface = 0;
- zend_class_entry *ce = *cache_slot;
- if (!ce) {
- ce = zend_fetch_class(ZEND_TYPE_NAME(arg_info->type),
- (ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD));
- }
- if (ce) {
- if (ce->ce_flags & ZEND_ACC_INTERFACE) {
- smart_str_appends(&str, "implement interface ");
- is_interface = 1;
- } else {
- smart_str_appends(&str, "be an instance of ");
- }
- smart_str_append(&str, ce->name);
- } else {
- /* We don't know whether it's a class or interface, assume it's a class */
- smart_str_appends(&str, "be an instance of ");
- smart_str_append(&str, ZEND_TYPE_NAME(arg_info->type));
- }
-
- if (ZEND_TYPE_ALLOW_NULL(arg_info->type)) {
- smart_str_appends(&str, is_interface ? " or be null" : " or null");
- }
- } else {
- uint32_t type_mask = ZEND_TYPE_PURE_MASK_WITHOUT_NULL(arg_info->type);
- switch (type_mask) {
- case MAY_BE_OBJECT:
- smart_str_appends(&str, "be an object");
- break;
- case MAY_BE_CALLABLE:
- smart_str_appends(&str, "be callable");
- break;
- case MAY_BE_ITERABLE:
- smart_str_appends(&str, "be iterable");
- break;
- case MAY_BE_STATIC: {
- zend_class_entry *called_scope = zend_get_called_scope(EG(current_execute_data));
- smart_str_appends(&str, "be an instance of ");
- if (called_scope) {
- smart_str_append(&str, called_scope->name);
- } else {
- smart_str_appends(&str, "static");
- }
- break;
- }
- default:
- {
- /* Hack to print the type without null */
- zend_type type = arg_info->type;
- ZEND_TYPE_FULL_MASK(type) &= ~MAY_BE_NULL;
- zend_string *type_str = zend_type_to_string(type);
- smart_str_appends(&str, "be of the type ");
- smart_str_append(&str, type_str);
- zend_string_release(type_str);
- break;
- }
- }
-
- if (ZEND_TYPE_ALLOW_NULL(arg_info->type)) {
- smart_str_appends(&str, " or null");
- }
- }
-
- *need_msg = smart_str_extract(&str);
+ *need_msg = zend_type_to_string_resolved(arg_info->type, zf->common.scope);
if (value) {
zend_bool has_class = ZEND_TYPE_HAS_CLASS(arg_info->type)
|| (ZEND_TYPE_FULL_MASK(arg_info->type) & MAY_BE_STATIC);
if (has_class && Z_TYPE_P(value) == IS_OBJECT) {
- *given_msg = "instance of ";
*given_kind = ZSTR_VAL(Z_OBJCE_P(value)->name);
} else {
- *given_msg = zend_zval_type_name(value);
- *given_kind = "";
+ *given_kind = zend_zval_type_name(value);
}
} else {
- *given_msg = "none";
- *given_kind = "";
+ *given_kind = "none";
}
}
@@ -767,7 +677,7 @@ ZEND_API ZEND_COLD void zend_verify_arg_error(
zend_execute_data *ptr = EG(current_execute_data)->prev_execute_data;
const char *fname, *fsep, *fclass;
zend_string *need_msg;
- const char *given_msg, *given_kind;
+ const char *given_msg;
if (EG(exception)) {
/* The type verification itself might have already thrown an exception
@@ -778,18 +688,20 @@ ZEND_API ZEND_COLD void zend_verify_arg_error(
if (value) {
zend_verify_type_error_common(
zf, arg_info, cache_slot, value,
- &fname, &fsep, &fclass, &need_msg, &given_msg, &given_kind);
+ &fname, &fsep, &fclass, &need_msg, &given_msg);
if (zf->common.type == ZEND_USER_FUNCTION) {
if (ptr && ptr->func && ZEND_USER_CODE(ptr->func->common.type)) {
- zend_type_error("Argument %d passed to %s%s%s() must %s, %s%s given, called in %s on line %d",
- arg_num, fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg, given_kind,
+ zend_type_error("%s%s%s() expects argument #%d ($%s) to be of type %s, %s given, called in %s on line %d",
+ fclass, fsep, fname, arg_num, ZSTR_VAL(arg_info->name), ZSTR_VAL(need_msg), given_msg,
ZSTR_VAL(ptr->func->op_array.filename), ptr->opline->lineno);
} else {
- zend_type_error("Argument %d passed to %s%s%s() must %s, %s%s given", arg_num, fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg, given_kind);
+ zend_type_error("%s%s%s() expects argument #%d ($%s) to be of type %s, %s given",
+ fclass, fsep, fname, arg_num, ZSTR_VAL(arg_info->name), ZSTR_VAL(need_msg), given_msg);
}
} else {
- zend_type_error("Argument %d passed to %s%s%s() must %s, %s%s given", arg_num, fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg, given_kind);
+ zend_type_error("%s%s%s() expects argument #%d ($%s) to be of type %s, %s given",
+ fclass, fsep, fname, arg_num, ((zend_internal_arg_info*) arg_info)->name, ZSTR_VAL(need_msg), given_msg);
}
zend_string_release(need_msg);
@@ -1259,14 +1171,14 @@ ZEND_API ZEND_COLD void zend_verify_return_error(
const zend_arg_info *arg_info = &zf->common.arg_info[-1];
const char *fname, *fsep, *fclass;
zend_string *need_msg;
- const char *given_msg, *given_kind;
+ const char *given_msg;
zend_verify_type_error_common(
zf, arg_info, cache_slot, value,
- &fname, &fsep, &fclass, &need_msg, &given_msg, &given_kind);
+ &fname, &fsep, &fclass, &need_msg, &given_msg);
- zend_type_error("Return value of %s%s%s() must %s, %s%s returned",
- fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg, given_kind);
+ zend_type_error("Return value of %s%s%s() must be of type %s, %s returned",
+ fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg);
zend_string_release(need_msg);
}
@@ -1278,14 +1190,14 @@ static ZEND_COLD void zend_verify_internal_return_error(
const zend_arg_info *arg_info = &zf->common.arg_info[-1];
const char *fname, *fsep, *fclass;
zend_string *need_msg;
- const char *given_msg, *given_kind;
+ const char *given_msg;
zend_verify_type_error_common(
zf, arg_info, cache_slot, value,
- &fname, &fsep, &fclass, &need_msg, &given_msg, &given_kind);
+ &fname, &fsep, &fclass, &need_msg, &given_msg);
- zend_error_noreturn(E_CORE_ERROR, "Return value of %s%s%s() must %s, %s%s returned",
- fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg, given_kind);
+ zend_error_noreturn(E_CORE_ERROR, "Return value of %s%s%s() must be of type %s, %s returned",
+ fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg);
}
static ZEND_COLD void zend_verify_void_return_error(const zend_function *zf, const char *returned_msg, const char *returned_kind)
@@ -2011,11 +1923,17 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_non_static_method_cal
static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_param_must_be_ref(const zend_function *func, uint32_t arg_num)
{
- zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given",
- arg_num,
+ const char *arg_name = get_function_arg_name(func, arg_num);
+
+ zend_error(E_WARNING, "%s%s%s() expects argument #%d%s%s%s to be passed by reference, value given",
func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
func->common.scope ? "::" : "",
- ZSTR_VAL(func->common.function_name));
+ ZSTR_VAL(func->common.function_name),
+ arg_num,
+ arg_name ? " ($" : "",
+ arg_name ? arg_name : "",
+ arg_name ? ")" : ""
+ );
}
static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_use_scalar_as_array(void)
@@ -2632,7 +2550,7 @@ static ZEND_COLD void ZEND_FASTCALL zend_array_key_exists_error(
ZVAL_UNDEFINED_OP2();
}
if (!EG(exception)) {
- zend_type_error("array_key_exists() expects parameter 2 to be array, %s given",
+ zend_type_error("array_key_exists() expects argument #2 ($array) to be of type array, %s given",
zend_get_type_by_const(Z_TYPE_P(subject)));
}
}
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index f29a5eb050..8c4f928e33 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -287,6 +287,8 @@ static zend_always_inline void zend_vm_stack_free_call_frame(zend_execute_data *
/* services */
ZEND_API const char *get_active_class_name(const char **space);
ZEND_API const char *get_active_function_name(void);
+ZEND_API const char *get_active_function_arg_name(uint32_t arg_num);
+ZEND_API const char *get_function_arg_name(const zend_function *func, uint32_t arg_num);
ZEND_API const char *zend_get_executed_filename(void);
ZEND_API zend_string *zend_get_executed_filename_ex(void);
ZEND_API uint32_t zend_get_executed_lineno(void);
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index e2410cf6af..80d0cf26ee 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -488,6 +488,37 @@ ZEND_API const char *get_active_function_name(void) /* {{{ */
}
/* }}} */
+ZEND_API const char *get_active_function_arg_name(uint32_t arg_num) /* {{{ */
+{
+ zend_function *func;
+
+ if (!zend_is_executing()) {
+ return NULL;
+ }
+
+ func = EG(current_execute_data)->func;
+
+ return get_function_arg_name(func, arg_num);
+}
+/* }}} */
+
+ZEND_API const char *get_function_arg_name(const zend_function *func, uint32_t arg_num) /* {{{ */
+{
+ if (!func || func->common.num_args < arg_num) {
+ return NULL;
+ }
+
+ switch (func->type) {
+ case ZEND_USER_FUNCTION:
+ return ZSTR_VAL(func->common.arg_info[arg_num - 1].name);
+ case ZEND_INTERNAL_FUNCTION:
+ return ((zend_internal_arg_info*) func->common.arg_info)[arg_num - 1].name;
+ default:
+ return NULL;
+ }
+}
+/* }}} */
+
ZEND_API const char *zend_get_executed_filename(void) /* {{{ */
{
zend_execute_data *ex = EG(current_execute_data);
@@ -717,11 +748,18 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
} else if (!ARG_MAY_BE_SENT_BY_REF(func, i + 1)) {
/* By-value send is not allowed -- emit a warning,
* but still perform the call with a by-value send. */
+ const char *arg_name = get_function_arg_name(func, i + 1);
+
zend_error(E_WARNING,
- "Parameter %d to %s%s%s() expected to be a reference, value given", i+1,
+ "%s%s%s() expects argument #%d%s%s%s to be passed by reference, value given",
func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
func->common.scope ? "::" : "",
- ZSTR_VAL(func->common.function_name));
+ ZSTR_VAL(func->common.function_name),
+ i+1,
+ arg_name ? " ($" : "",
+ arg_name ? arg_name : "",
+ arg_name ? ")" : ""
+ );
if (UNEXPECTED(EG(exception))) {
ZEND_CALL_NUM_ARGS(call) = i;
zend_vm_stack_free_args(call);
diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h
index 1ecb226042..7f0de717a4 100644
--- a/Zend/zend_vm_def.h
+++ b/Zend/zend_vm_def.h
@@ -3775,7 +3775,7 @@ ZEND_VM_HANDLER(118, ZEND_INIT_USER_CALL, CONST, CONST|TMPVAR|CV, NUM)
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects parameter 1 to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
FREE_OP2();
HANDLE_EXCEPTION();
@@ -4938,7 +4938,7 @@ ZEND_VM_HANDLER(119, ZEND_SEND_ARRAY, ANY, ANY, NUM)
ZEND_VM_C_GOTO(send_array);
}
}
- zend_type_error("call_user_func_array() expects parameter 2 to be array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
+ zend_type_error("call_user_func_array() expects argument #2 ($args) to be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
FREE_UNFETCHED_OP2();
FREE_OP1();
HANDLE_EXCEPTION();
@@ -7909,7 +7909,7 @@ ZEND_VM_COLD_CONST_HANDLER(121, ZEND_STRLEN, CONST|TMPVAR|CV, ANY)
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects parameter 1 to be string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
@@ -8517,7 +8517,7 @@ ZEND_VM_COLD_CONST_HANDLER(191, ZEND_GET_CLASS, UNUSED|CONST|TMPVAR|CV, UNUSED)
if (OP1_TYPE == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects parameter 1 to be object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h
index b6a11e81d1..c9bb201131 100644
--- a/Zend/zend_vm_execute.h
+++ b/Zend/zend_vm_execute.h
@@ -1981,7 +1981,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_SEND_ARRAY_SPEC_HANDLER(ZEND_O
goto send_array;
}
}
- zend_type_error("call_user_func_array() expects parameter 2 to be array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
+ zend_type_error("call_user_func_array() expects argument #2 ($args) to be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
FREE_UNFETCHED_OP(opline->op2_type, opline->op2.var);
FREE_OP(opline->op1_type, opline->op1.var);
HANDLE_EXCEPTION();
@@ -4464,7 +4464,7 @@ static ZEND_VM_COLD ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_STRLEN_SPEC_CONST
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects parameter 1 to be string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
@@ -5889,7 +5889,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_USER_CALL_SPEC_CONST_CONS
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects parameter 1 to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
HANDLE_EXCEPTION();
@@ -8065,7 +8065,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_USER_CALL_SPEC_CONST_TMPV
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects parameter 1 to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
HANDLE_EXCEPTION();
@@ -9333,7 +9333,7 @@ static ZEND_VM_COLD ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_GET_CLASS_SPEC_CO
if (IS_CONST == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects parameter 1 to be object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
@@ -10320,7 +10320,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_USER_CALL_SPEC_CONST_CV_H
init_func_run_time_cache(&func->op_array);
}
} else {
- zend_type_error("%s() expects parameter 1 to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+ zend_type_error("%s() expects argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
efree(error);
HANDLE_EXCEPTION();
@@ -13305,7 +13305,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_STRLEN_SPEC_TMPVAR_HANDLER(ZEN
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects parameter 1 to be string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
@@ -16412,7 +16412,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_GET_CLASS_SPEC_TMPVAR_UNUSED_H
if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects parameter 1 to be object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
@@ -33308,7 +33308,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_GET_CLASS_SPEC_UNUSED_UNUSED_H
if (IS_UNUSED == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects parameter 1 to be object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class() expects argument 1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
@@ -36702,7 +36702,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_STRLEN_SPEC_CV_HANDLER(ZEND_OP
zval_ptr_dtor(&tmp);
}
if (!EG(exception)) {
- zend_type_error("strlen() expects parameter 1 to be string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+ zend_type_error("strlen() expects argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
}
ZVAL_UNDEF(EX_VAR(opline->result.var));
} while (0);
@@ -45260,7 +45260,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_GET_CLASS_SPEC_CV_UNUSED_HANDL
if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(op1) == IS_UNDEF)) {
ZVAL_UNDEFINED_OP1();
}
- zend_type_error("get_class() expects parameter 1 to be object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+ zend_type_error("get_class() expects argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
ZVAL_UNDEF(EX_VAR(opline->result.var));
}
break;
diff --git a/ext/curl/tests/curl_setopt_error.phpt b/ext/curl/tests/curl_setopt_error.phpt
index 0a7db7265f..e6a76e7afa 100644
--- a/ext/curl/tests/curl_setopt_error.phpt
+++ b/ext/curl/tests/curl_setopt_error.phpt
@@ -20,6 +20,6 @@ curl_setopt($ch, -10, 0);
?>
--EXPECTF--
*** curl_setopt() call with incorrect parameters
-curl_setopt() expects parameter 2 to be int, string given
+curl_setopt() expects argument #2 ($option) to be of type int, string given
Warning: curl_setopt(): Invalid curl configuration option in %scurl_setopt_error.php on line %d
diff --git a/ext/date/tests/014.phpt b/ext/date/tests/014.phpt
index f57f3e4b1d..ce346c2ba9 100644
--- a/ext/date/tests/014.phpt
+++ b/ext/date/tests/014.phpt
@@ -33,7 +33,7 @@ object(DateTimeZone)#%d (2) {
}
int(0)
-Fatal error: Uncaught TypeError: timezone_offset_get() expects parameter 1 to be DateTimeZone, object given in %s:%d
+Fatal error: Uncaught TypeError: timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given in %s:%d
Stack trace:
#0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone))
#1 {main}
diff --git a/ext/date/tests/68062.phpt b/ext/date/tests/68062.phpt
index 1270382158..63e40a3bd0 100644
--- a/ext/date/tests/68062.phpt
+++ b/ext/date/tests/68062.phpt
@@ -14,4 +14,4 @@ try {
}
--EXPECT--
3600
-DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given
+DateTimeZone::getOffset() expects argument #1 ($datetime) to be of type DateTimeInterface, int given
diff --git a/ext/date/tests/DateTimeImmutable_createFromMutable.phpt b/ext/date/tests/DateTimeImmutable_createFromMutable.phpt
index 671afc1229..8651a90d34 100644
--- a/ext/date/tests/DateTimeImmutable_createFromMutable.phpt
+++ b/ext/date/tests/DateTimeImmutable_createFromMutable.phpt
@@ -24,4 +24,4 @@ object(DateTimeImmutable)#%d (3) {
["timezone"]=>
string(13) "Europe/London"
}
-DateTimeImmutable::createFromMutable() expects parameter 1 to be DateTime, object given
+DateTimeImmutable::createFromMutable() expects argument #1 ($object) to be of type DateTime, object given
diff --git a/ext/date/tests/DateTime_createFromImmutable.phpt b/ext/date/tests/DateTime_createFromImmutable.phpt
index 841a3d4d33..153e7f3cbf 100644
--- a/ext/date/tests/DateTime_createFromImmutable.phpt
+++ b/ext/date/tests/DateTime_createFromImmutable.phpt
@@ -30,4 +30,4 @@ object(DateTime)#%d (3) {
string(13) "Europe/London"
}
bool(true)
-DateTime::createFromImmutable() expects parameter 1 to be DateTimeImmutable, object given
+DateTime::createFromImmutable() expects argument #1 ($object) to be of type DateTimeImmutable, object given
diff --git a/ext/date/tests/bug36988.phpt b/ext/date/tests/bug36988.phpt
index 691bb4a7e2..ecb6e8ad7a 100644
--- a/ext/date/tests/bug36988.phpt
+++ b/ext/date/tests/bug36988.phpt
@@ -13,4 +13,4 @@ try {
}
?>
--EXPECT--
-mktime() expects parameter 6 to be int, float given
+mktime() expects argument #6 ($year) to be of type int, float given
diff --git a/ext/date/tests/bug52062.phpt b/ext/date/tests/bug52062.phpt
index b1f7f25d7b..639868aecb 100644
--- a/ext/date/tests/bug52062.phpt
+++ b/ext/date/tests/bug52062.phpt
@@ -28,7 +28,7 @@ var_dump($i->format('%s'));
string(32) "5138-11-16 09:46:40 100000000000"
bool(false)
string(12) "100000000000"
-DateTime::setTimestamp() expects parameter 1 to be int, float given
+DateTime::setTimestamp() expects argument #1 ($timestamp) to be of type int, float given
string(32) "5138-11-16 09:46:40 100000000000"
bool(false)
string(10) "1215752192"
diff --git a/ext/date/tests/bug70245.phpt b/ext/date/tests/bug70245.phpt
index b480192326..2443d91d01 100644
--- a/ext/date/tests/bug70245.phpt
+++ b/ext/date/tests/bug70245.phpt
@@ -9,5 +9,5 @@ try {
echo $e->getMessage(), "\n";
}
?>
---EXPECTF--
-strtotime() expects parameter 2 to be int, object given
+--EXPECT--
+strtotime() expects argument #2 ($now) to be of type int, object given
diff --git a/ext/date/tests/microtime_error.phpt b/ext/date/tests/microtime_error.phpt
index 0736d3cf24..d746e5b3ac 100644
--- a/ext/date/tests/microtime_error.phpt
+++ b/ext/date/tests/microtime_error.phpt
@@ -47,11 +47,11 @@ float(%s)
int(0)
}
}
-microtime() expects parameter 1 to be bool, array given
+microtime() expects argument #1 ($get_as_float) to be of type bool, array given
--> bad arg: object(stdClass)#%d (0) {
}
-microtime() expects parameter 1 to be bool, object given
+microtime() expects argument #1 ($get_as_float) to be of type bool, object given
--> bad arg: int(1)
float(%s)
diff --git a/ext/date/tests/timezone_offset_get_error.phpt b/ext/date/tests/timezone_offset_get_error.phpt
index 69e81cb846..1782ced195 100644
--- a/ext/date/tests/timezone_offset_get_error.phpt
+++ b/ext/date/tests/timezone_offset_get_error.phpt
@@ -65,17 +65,16 @@ try {
*** Testing timezone_offset_get() : error conditions ***
-- Testing timezone_offset_get() function with an invalid values for $object argument --
-string(74) "timezone_offset_get() expects parameter 1 to be DateTimeZone, object given"
+string(92) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given"
-string(71) "timezone_offset_get() expects parameter 1 to be DateTimeZone, int given"
+string(89) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, int given"
-string(72) "timezone_offset_get() expects parameter 1 to be DateTimeZone, null given"
+string(90) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, null given"
-- Testing timezone_offset_get() function with an invalid values for $datetime argument --
-string(79) "timezone_offset_get() expects parameter 2 to be DateTimeInterface, object given"
+string(99) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, object given"
-string(76) "timezone_offset_get() expects parameter 2 to be DateTimeInterface, int given"
-
-string(77) "timezone_offset_get() expects parameter 2 to be DateTimeInterface, null given"
+string(96) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, int given"
+string(97) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, null given"
diff --git a/ext/ffi/tests/045.phpt b/ext/ffi/tests/045.phpt
index 981b7c31d2..411a03702b 100644
--- a/ext/ffi/tests/045.phpt
+++ b/ext/ffi/tests/045.phpt
@@ -23,5 +23,5 @@ try {
--EXPECTF--
bool(true)
bool(false)
-TypeError: FFI::isNull() expects parameter 1 to be FFI\CData, null given
+TypeError: FFI::isNull() expects argument #1 ($ptr) to be of type FFI\CData, null given
FFI\Exception: Cannot instantiate FFI\CData of zero size
diff --git a/ext/fileinfo/tests/finfo_open_001.phpt b/ext/fileinfo/tests/finfo_open_001.phpt
index af06278fae..2ceb80444c 100644
--- a/ext/fileinfo/tests/finfo_open_001.phpt
+++ b/ext/fileinfo/tests/finfo_open_001.phpt
@@ -19,7 +19,7 @@ var_dump(finfo_open(FILEINFO_MIME, '/foo/bar/inexistent'));
?>
--EXPECTF--
-finfo_open() expects parameter 2 to be a valid path, string given
+finfo_open() expects argument #2 ($arg) to be a valid path, string given
resource(%d) of type (file_info)
resource(%d) of type (file_info)
diff --git a/ext/fileinfo/tests/finfo_open_error.phpt b/ext/fileinfo/tests/finfo_open_error.phpt
index deb35bb95f..6e0c02c489 100644
--- a/ext/fileinfo/tests/finfo_open_error.phpt
+++ b/ext/fileinfo/tests/finfo_open_error.phpt
@@ -42,5 +42,5 @@ bool(false)
Notice: finfo_open(): Warning: using regular magic file `%smagic' in %sfinfo_open_error.php on line %d
resource(6) of type (file_info)
-finfo_open() expects parameter 1 to be int, string given
-finfo::__construct() expects parameter 1 to be int, string given
+finfo_open() expects argument #1 ($options) to be of type int, string given
+finfo::__construct() expects argument #1 ($options) to be of type int, string given
diff --git a/ext/gd/tests/imagegd2_nullbyte_injection.phpt b/ext/gd/tests/imagegd2_nullbyte_injection.phpt
index 30394cc1a5..775da28b7f 100644
--- a/ext/gd/tests/imagegd2_nullbyte_injection.phpt
+++ b/ext/gd/tests/imagegd2_nullbyte_injection.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-imagegd() expects parameter 2 to be a valid path, string given
+imagegd() expects argument #2 ($to) to be a valid path, string given
diff --git a/ext/gd/tests/imagegd_nullbyte_injection.phpt b/ext/gd/tests/imagegd_nullbyte_injection.phpt
index f53d9b5dac..e9d0af3c93 100644
--- a/ext/gd/tests/imagegd_nullbyte_injection.phpt
+++ b/ext/gd/tests/imagegd_nullbyte_injection.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-imagegd() expects parameter 2 to be a valid path, string given
+imagegd() expects argument #2 ($to) to be a valid path, string given
diff --git a/ext/gd/tests/imagexbm_nullbyte_injection.phpt b/ext/gd/tests/imagexbm_nullbyte_injection.phpt
index a24aa3c007..a84bc78eeb 100644
--- a/ext/gd/tests/imagexbm_nullbyte_injection.phpt
+++ b/ext/gd/tests/imagexbm_nullbyte_injection.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECTF--
-imagexbm() expects parameter 2 to be a valid path, string given
+imagexbm() expects argument #2 ($filename) to be a valid path, string given
diff --git a/ext/gmp/tests/gmp_clrbit.phpt b/ext/gmp/tests/gmp_clrbit.phpt
index 255b9947b9..5169cc7986 100644
--- a/ext/gmp/tests/gmp_clrbit.phpt
+++ b/ext/gmp/tests/gmp_clrbit.phpt
@@ -47,5 +47,5 @@ Warning: gmp_clrbit(): Index must be greater than or equal to zero in %s on line
string(7) "1000000"
string(7) "1000000"
string(30) "238462734628347239571822592658"
-gmp_clrbit() expects parameter 1 to be GMP, array given
+gmp_clrbit() expects argument #1 ($a) to be of type GMP, array given
Done
diff --git a/ext/gmp/tests/gmp_pow.phpt b/ext/gmp/tests/gmp_pow.phpt
index e9525867e1..afa8cc13e9 100644
--- a/ext/gmp/tests/gmp_pow.phpt
+++ b/ext/gmp/tests/gmp_pow.phpt
@@ -47,7 +47,7 @@ Warning: gmp_pow(): Negative exponent not supported in %s on line %d
string(1) "0"
string(14) "10240000000000"
string(14) "10240000000000"
-gmp_pow() expects parameter 2 to be int, array given
+gmp_pow() expects argument #2 ($exp) to be of type int, array given
Warning: gmp_pow(): Unable to convert variable to GMP - wrong type in %s on line %d
bool(false)
diff --git a/ext/gmp/tests/gmp_setbit.phpt b/ext/gmp/tests/gmp_setbit.phpt
index 15270eaf7b..30d9021247 100644
--- a/ext/gmp/tests/gmp_setbit.phpt
+++ b/ext/gmp/tests/gmp_setbit.phpt
@@ -57,6 +57,6 @@ string(1) "7"
string(12) "100008388608"
string(12) "100000000000"
string(12) "100000000008"
-gmp_setbit() expects parameter 1 to be GMP, string given
-gmp_setbit() expects parameter 1 to be GMP, array given
+gmp_setbit() expects argument #1 ($a) to be of type GMP, string given
+gmp_setbit() expects argument #1 ($a) to be of type GMP, array given
Done
diff --git a/ext/imap/tests/imap_expunge_error.phpt b/ext/imap/tests/imap_expunge_error.phpt
index f1298843bb..3b6686a68d 100644
--- a/ext/imap/tests/imap_expunge_error.phpt
+++ b/ext/imap/tests/imap_expunge_error.phpt
@@ -22,6 +22,6 @@ Checking with no parameters
Warning: imap_num_recent() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_num_recent() expects parameter 1 to be resource, string given in %s on line %d
+Warning: imap_num_recent() expects argument #1 to be of type resource, string given in %s on line %d
-Warning: imap_num_recent() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: imap_num_recent() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/imap/tests/imap_gc_error.phpt b/ext/imap/tests/imap_gc_error.phpt
index 9606c1ae2d..e3c05c6855 100644
--- a/ext/imap/tests/imap_gc_error.phpt
+++ b/ext/imap/tests/imap_gc_error.phpt
@@ -28,8 +28,8 @@ Checking with no parameters
Warning: imap_gc() Expects exactly 2 parameters, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_gc() Expects parameter 1 to be resource, string given in %s on line %d
+Warning: imap_gc() expects argument #1 to be of type resource, string given in %s on line %d
-Warning: imap_gc() Expects parameter 1 to be resource, bool given in %s on line %d
+Warning: imap_gc() expects argument #1 to be of type resource, bool given in %s on line %d
Warning: imap_gc(): Invalid value for the flags parameter in %s on line %d
diff --git a/ext/imap/tests/imap_headers.phpt b/ext/imap/tests/imap_headers.phpt
index cd9d6d387f..73c0c52306 100644
--- a/ext/imap/tests/imap_headers.phpt
+++ b/ext/imap/tests/imap_headers.phpt
@@ -22,6 +22,6 @@ Checking with no parameters
Warning: imap_headers() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_headers() expects parameter 1 to be resource, string given in %s on line %d
+Warning: imap_headers() expects argument #1 to be of type resource, string given in %s on line %d
-Warning: imap_headers() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: imap_headers() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/imap/tests/imap_num_msg_error.phpt b/ext/imap/tests/imap_num_msg_error.phpt
index fffa3ae951..e6a5650e6d 100644
--- a/ext/imap/tests/imap_num_msg_error.phpt
+++ b/ext/imap/tests/imap_num_msg_error.phpt
@@ -22,6 +22,6 @@ Checking with no parameters
Warning: imap_num_msg() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_num_msg() expects parameter 1 to be resource, string given in %s on line %d
+Warning: imap_num_msg() expects argument #1 to be of type resource, string given in %s on line %d
-Warning: imap_num_msg() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: imap_num_msg() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/imap/tests/imap_num_recent_error.phpt b/ext/imap/tests/imap_num_recent_error.phpt
index b0ad5cefa0..4f4fef5054 100644
--- a/ext/imap/tests/imap_num_recent_error.phpt
+++ b/ext/imap/tests/imap_num_recent_error.phpt
@@ -22,6 +22,6 @@ Checking with no parameters
Warning: imap_expunge() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_expunge() expects parameter 1 to be resource, string given in %s on line %d
+Warning: imap_expunge() expects argument #1 to be of type resource, string given in %s on line %d
-Warning: imap_expunge() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: imap_expunge() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/imap/tests/imap_ping_error.phpt b/ext/imap/tests/imap_ping_error.phpt
index 5c2498c302..918407ac06 100644
--- a/ext/imap/tests/imap_ping_error.phpt
+++ b/ext/imap/tests/imap_ping_error.phpt
@@ -22,6 +22,6 @@ Checking with no parameters
Warning: imap_ping() expects exactly 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_ping() expects parameter 1 to be resource, string given in %s on line %d
+Warning: imap_ping() expects argument #1 to be of type resource, string given in %s on line %d
-Warning: imap_ping() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: imap_ping() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/imap/tests/imap_timeout_basic.phpt b/ext/imap/tests/imap_timeout_basic.phpt
index a69b86b595..7b83309ef7 100644
--- a/ext/imap/tests/imap_timeout_basic.phpt
+++ b/ext/imap/tests/imap_timeout_basic.phpt
@@ -44,7 +44,7 @@ Checking with no parameters
Warning: imap_timeout() expects at least 1 parameter, 0 given in %s on line %d
Checking with incorrect parameter type
-Warning: imap_timeout() expects parameter 1 to be int, %s given in %s on line %d
+Warning: imap_timeout() expects argument #1 to be of type int, %s given in %s on line %d
GET values:
int(%d)
int(%d)
diff --git a/ext/intl/tests/breakiter___construct_error.phpt b/ext/intl/tests/breakiter___construct_error.phpt
index 8b36b4a7cf..35a145dcec 100644
--- a/ext/intl/tests/breakiter___construct_error.phpt
+++ b/ext/intl/tests/breakiter___construct_error.phpt
@@ -43,6 +43,6 @@ Exception: IntlRuleBasedBreakIterator::__construct() expects at least 1 paramete
Exception: IntlRuleBasedBreakIterator::__construct() expects at most 2 parameters, 3 given in %s on line %d
-Exception: IntlRuleBasedBreakIterator::__construct() expects parameter 2 to be bool, array given in %s on line %d
+Exception: IntlRuleBasedBreakIterator::__construct() expects argument #2 ($areCompiled) to be of type bool, array given in %s on line %d
Exception: IntlRuleBasedBreakIterator::__construct(): rbbi_create_instance: unable to create instance from compiled rules in %s on line %d
diff --git a/ext/intl/tests/bug48227.phpt b/ext/intl/tests/bug48227.phpt
index a5946e035f..28a614da03 100644
--- a/ext/intl/tests/bug48227.phpt
+++ b/ext/intl/tests/bug48227.phpt
@@ -16,7 +16,7 @@ foreach (['', 1, NULL, $x] as $value) {
?>
--EXPECT--
-NumberFormatter::format() expects parameter 1 to be number, string given
+NumberFormatter::format() expects argument #1 ($value) to be of type number, string given
string(1) "1"
string(1) "0"
-NumberFormatter::format() expects parameter 1 to be number, object given
+NumberFormatter::format() expects argument #1 ($value) to be of type number, object given
diff --git a/ext/intl/tests/calendar_add_error.phpt b/ext/intl/tests/calendar_add_error.phpt
index f0fd43558e..e30ed02856 100644
--- a/ext/intl/tests/calendar_add_error.phpt
+++ b/ext/intl/tests/calendar_add_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_add(1, 2, 3));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_add() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_add() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_add(1, 2, 3)
#1 {main}
diff --git a/ext/intl/tests/calendar_before_after_error.phpt b/ext/intl/tests/calendar_before_after_error.phpt
index 66fb62f224..a9bbed25e6 100644
--- a/ext/intl/tests/calendar_before_after_error.phpt
+++ b/ext/intl/tests/calendar_before_after_error.phpt
@@ -65,9 +65,9 @@ error: 0, IntlCalendar::after() expects exactly 1 parameter, 0 given
error: 0, IntlCalendar::before() expects exactly 1 parameter, 0 given
-error: 0, IntlCalendar::after() expects parameter 1 to be IntlCalendar, int given
+error: 0, IntlCalendar::after() expects argument #1 ($calendar) to be of type IntlCalendar, int given
-error: 0, IntlCalendar::before() expects parameter 1 to be IntlCalendar, int given
+error: 0, IntlCalendar::before() expects argument #1 ($calendar) to be of type IntlCalendar, int given
error: 0, IntlCalendar::after() expects exactly 1 parameter, 2 given
diff --git a/ext/intl/tests/calendar_clear_error.phpt b/ext/intl/tests/calendar_clear_error.phpt
index 7fec27399e..c56f9065fc 100644
--- a/ext/intl/tests/calendar_clear_error.phpt
+++ b/ext/intl/tests/calendar_clear_error.phpt
@@ -23,7 +23,7 @@ bool(false)
Warning: intlcal_clear(): intlcal_clear: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_clear() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_clear() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_clear(1, 2)
#1 {main}
diff --git a/ext/intl/tests/calendar_equals_error.phpt b/ext/intl/tests/calendar_equals_error.phpt
index 04896458b2..0d4665af60 100644
--- a/ext/intl/tests/calendar_equals_error.phpt
+++ b/ext/intl/tests/calendar_equals_error.phpt
@@ -47,10 +47,10 @@ try {
--EXPECT--
error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
-error: 0, IntlCalendar::equals() expects parameter 1 to be IntlCalendar, object given
+error: 0, IntlCalendar::equals() expects argument #1 ($calendar) to be of type IntlCalendar, object given
error: 0, IntlCalendar::equals() expects exactly 1 parameter, 2 given
-error: 0, intlcal_equals() expects parameter 2 to be IntlCalendar, array given
+error: 0, intlcal_equals() expects argument #2 ($calendar) to be of type IntlCalendar, array given
-error: 0, intlcal_equals() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_equals() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_fieldDifference_error.phpt b/ext/intl/tests/calendar_fieldDifference_error.phpt
index 1957dbbc2d..872fea825d 100644
--- a/ext/intl/tests/calendar_fieldDifference_error.phpt
+++ b/ext/intl/tests/calendar_fieldDifference_error.phpt
@@ -32,7 +32,7 @@ Warning: IntlCalendar::fieldDifference(): intlcal_field_difference: Call to ICU
bool(false)
intlcal_field_difference() expects exactly 3 parameters, 4 given
-Fatal error: Uncaught TypeError: intlcal_field_difference() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_field_difference() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_field_difference(1, 0, 1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getDayOfWeekType_error.phpt b/ext/intl/tests/calendar_getDayOfWeekType_error.phpt
index c138be8196..644e580f11 100644
--- a/ext/intl/tests/calendar_getDayOfWeekType_error.phpt
+++ b/ext/intl/tests/calendar_getDayOfWeekType_error.phpt
@@ -19,7 +19,7 @@ var_dump(intlcal_get_day_of_week_type(1, 1));
Warning: IntlCalendar::getDayOfWeekType(): intlcal_get_day_of_week_type: invalid day of week in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_day_of_week_type(1, 1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getErrorCode_error.phpt b/ext/intl/tests/calendar_getErrorCode_error.phpt
index 9dafc0ed94..4d69bdedfd 100644
--- a/ext/intl/tests/calendar_getErrorCode_error.phpt
+++ b/ext/intl/tests/calendar_getErrorCode_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_error_code(null));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_error_code() expects parameter 1 to be IntlCalendar, null given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_error_code() expects argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_error_code(NULL)
#1 {main}
diff --git a/ext/intl/tests/calendar_getErrorMessage_error.phpt b/ext/intl/tests/calendar_getErrorMessage_error.phpt
index abdfef45b6..68b1ad1d6c 100644
--- a/ext/intl/tests/calendar_getErrorMessage_error.phpt
+++ b/ext/intl/tests/calendar_getErrorMessage_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_error_message(null));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_error_message() expects parameter 1 to be IntlCalendar, null given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_error_message() expects argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_error_message(NULL)
#1 {main}
diff --git a/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt b/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
index f91e81dd69..22de5dadcd 100644
--- a/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
+++ b/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_first_day_of_week(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_first_day_of_week(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt b/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
index 64e7530d9c..644a7eab1c 100644
--- a/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
+++ b/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_minimal_days_in_first_week(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_minimal_days_in_first_week(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt b/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
index 1e2b3f85db..b49861ba49 100644
--- a/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
+++ b/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_skipped_wall_time_option(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_skipped_wall_time_option(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getTimeZone_error.phpt b/ext/intl/tests/calendar_getTimeZone_error.phpt
index 683d1e66ee..be9585a821 100644
--- a/ext/intl/tests/calendar_getTimeZone_error.phpt
+++ b/ext/intl/tests/calendar_getTimeZone_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_time_zone(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_time_zone() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_time_zone() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_time_zone(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getTime_error.phpt b/ext/intl/tests/calendar_getTime_error.phpt
index ca0924ee97..6c917103cb 100644
--- a/ext/intl/tests/calendar_getTime_error.phpt
+++ b/ext/intl/tests/calendar_getTime_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_time(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_time() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_time(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getType_error.phpt b/ext/intl/tests/calendar_getType_error.phpt
index 1c0e92b07f..f623bd3e8b 100644
--- a/ext/intl/tests/calendar_getType_error.phpt
+++ b/ext/intl/tests/calendar_getType_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_type(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_get_type() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_type() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_type(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_getWeekendTransition_error.phpt b/ext/intl/tests/calendar_getWeekendTransition_error.phpt
index 12bfbaa5fb..b9d7f30299 100644
--- a/ext/intl/tests/calendar_getWeekendTransition_error.phpt
+++ b/ext/intl/tests/calendar_getWeekendTransition_error.phpt
@@ -18,7 +18,7 @@ var_dump(intlcal_get_weekend_transition(1, 1));
Warning: IntlCalendar::getWeekendTransition(): intlcal_get_weekend_transition: invalid day of week in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_get_weekend_transition() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_weekend_transition() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_weekend_transition(1, 1)
#1 {main}
diff --git a/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt b/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
index 211636cd63..7392294b96 100644
--- a/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
+++ b/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
@@ -71,10 +71,10 @@ bool(false)
Warning: intlcal_get_minimum(): intlcal_get_minimum: invalid field in %s on line %d
bool(false)
-error: 0, intlcal_get_least_maximum() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_get_least_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
-error: 0, intlcal_get_maximum() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_get_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
-error: 0, intlcal_get_greatest_minimum() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_get_greatest_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
-error: 0, intlcal_get_minimum() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_get_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
index 5921d0c0d3..5fe75fe17a 100644
--- a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
+++ b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
@@ -93,11 +93,11 @@ error: 2, intlcal_get_actual_maximum(): intlcal_get_actual_maximum: invalid fiel
bool(false)
error: 2, intlcal_get_actual_minimum(): intlcal_get_actual_minimum: invalid field
bool(false)
-error: 0, intlcal_get() expects parameter 2 to be int, string given
+error: 0, intlcal_get() expects argument #2 ($field) to be of type int, string given
-error: 0, intlcal_get_actual_maximum() expects parameter 2 to be int, string given
+error: 0, intlcal_get_actual_maximum() expects argument #2 ($field) to be of type int, string given
-error: 0, intlcal_get_actual_minimum() expects parameter 2 to be int, string given
+error: 0, intlcal_get_actual_minimum() expects argument #2 ($field) to be of type int, string given
error: 0, intlcal_get() expects exactly 2 parameters, 1 given
diff --git a/ext/intl/tests/calendar_inDaylightTime_error.phpt b/ext/intl/tests/calendar_inDaylightTime_error.phpt
index 4eab7b2fe4..fb4492cb08 100644
--- a/ext/intl/tests/calendar_inDaylightTime_error.phpt
+++ b/ext/intl/tests/calendar_inDaylightTime_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_in_daylight_time(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_in_daylight_time() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_in_daylight_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_in_daylight_time(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_isEquivalentTo_error.phpt b/ext/intl/tests/calendar_isEquivalentTo_error.phpt
index ce1536f920..4acb3b6143 100644
--- a/ext/intl/tests/calendar_isEquivalentTo_error.phpt
+++ b/ext/intl/tests/calendar_isEquivalentTo_error.phpt
@@ -49,14 +49,14 @@ try {
echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
}
--EXPECT--
-error: 0, IntlCalendar::isEquivalentTo() expects parameter 1 to be IntlCalendar, int given
+error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given
error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given
-error: 0, IntlCalendar::isEquivalentTo() expects parameter 1 to be IntlCalendar, int given
+error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given
error: 0, intlcal_is_equivalent_to() expects exactly 2 parameters, 1 given
-error: 0, intlcal_is_equivalent_to() expects parameter 2 to be IntlCalendar, int given
+error: 0, intlcal_is_equivalent_to() expects argument #2 ($calendar) to be of type IntlCalendar, int given
-error: 0, intlcal_is_equivalent_to() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_is_equivalent_to() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_isLenient_error.phpt b/ext/intl/tests/calendar_isLenient_error.phpt
index 4edbf70e55..9e4a573908 100644
--- a/ext/intl/tests/calendar_isLenient_error.phpt
+++ b/ext/intl/tests/calendar_isLenient_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_is_lenient(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_is_lenient() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_lenient() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_is_lenient(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_isSet_error.phpt b/ext/intl/tests/calendar_isSet_error.phpt
index 169fb2dd43..905e7c082d 100644
--- a/ext/intl/tests/calendar_isSet_error.phpt
+++ b/ext/intl/tests/calendar_isSet_error.phpt
@@ -19,7 +19,7 @@ var_dump(intlcal_is_set(1, 2));
Warning: IntlCalendar::isSet(): intlcal_is_set: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_is_set() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_set() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_is_set(1, 2)
#1 {main}
diff --git a/ext/intl/tests/calendar_isWeekend_error.phpt b/ext/intl/tests/calendar_isWeekend_error.phpt
index 0ed3e507b0..138939d61e 100644
--- a/ext/intl/tests/calendar_isWeekend_error.phpt
+++ b/ext/intl/tests/calendar_isWeekend_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_is_weekend(1));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_is_weekend() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_weekend() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_is_weekend(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_roll_error.phpt b/ext/intl/tests/calendar_roll_error.phpt
index b627e83617..e37c6d24b2 100644
--- a/ext/intl/tests/calendar_roll_error.phpt
+++ b/ext/intl/tests/calendar_roll_error.phpt
@@ -19,7 +19,7 @@ var_dump(intlcal_roll(1, 2, 3));
Warning: IntlCalendar::roll(): intlcal_roll: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_roll() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_roll() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_roll(1, 2, 3)
#1 {main}
diff --git a/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt b/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
index bb4e01ca00..abaad15708 100644
--- a/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
+++ b/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
@@ -23,7 +23,7 @@ bool(false)
Warning: intlcal_set_first_day_of_week(): intlcal_set_first_day_of_week: invalid day of week in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_first_day_of_week(1, 2)
#1 {main}
diff --git a/ext/intl/tests/calendar_setLenient_error.phpt b/ext/intl/tests/calendar_setLenient_error.phpt
index 896b2e430a..7e16004dc2 100644
--- a/ext/intl/tests/calendar_setLenient_error.phpt
+++ b/ext/intl/tests/calendar_setLenient_error.phpt
@@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_set_lenient(1, false));
--EXPECTF--
-Fatal error: Uncaught TypeError: intlcal_set_lenient() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_lenient() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_lenient(1, false)
#1 {main}
diff --git a/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt b/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
index 9bf3cb17dc..1973018628 100644
--- a/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
+++ b/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
@@ -23,7 +23,7 @@ bool(false)
Warning: intlcal_set_minimal_days_in_first_week(): intlcal_set_minimal_days_in_first_week: invalid number of days; must be between 1 and 7 in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_minimal_days_in_first_week(1, 2)
#1 {main}
diff --git a/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt b/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
index 079517b290..795d5d56f9 100644
--- a/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
+++ b/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
@@ -23,7 +23,7 @@ bool(false)
Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: invalid option in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_repeated_wall_time_option(1, 1)
#1 {main}
diff --git a/ext/intl/tests/calendar_setTimeZone_error.phpt b/ext/intl/tests/calendar_setTimeZone_error.phpt
index c44208d1ce..e8204c0d9f 100644
--- a/ext/intl/tests/calendar_setTimeZone_error.phpt
+++ b/ext/intl/tests/calendar_setTimeZone_error.phpt
@@ -47,4 +47,4 @@ error: 0, IntlCalendar::setTimeZone() expects exactly 1 parameter, 0 given
error: 0, intlcal_set_time_zone() expects exactly 2 parameters, 3 given
-error: 0, intlcal_set_time_zone() expects parameter 1 to be IntlCalendar, int given
+error: 0, intlcal_set_time_zone() expects argument #1 ($calendar) to be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_set_error.phpt b/ext/intl/tests/calendar_set_error.phpt
index 77623147f5..397deb48da 100644
--- a/ext/intl/tests/calendar_set_error.phpt
+++ b/ext/intl/tests/calendar_set_error.phpt
@@ -38,7 +38,7 @@ bool(false)
Warning: intlcal_set(): intlcal_set: invalid field in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intlcal_set() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set(1, 2, 3)
#1 {main}
diff --git a/ext/intl/tests/calendar_toDateTime_error.phpt b/ext/intl/tests/calendar_toDateTime_error.phpt
index ef799db610..e6ed8faf9c 100644
--- a/ext/intl/tests/calendar_toDateTime_error.phpt
+++ b/ext/intl/tests/calendar_toDateTime_error.phpt
@@ -21,7 +21,7 @@ var_dump(intlcal_to_date_time(3));
Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d
string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
-Fatal error: Uncaught TypeError: intlcal_to_date_time() expects parameter 1 to be IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_to_date_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlcal_to_date_time(3)
#1 {main}
diff --git a/ext/intl/tests/formatter_fail.phpt b/ext/intl/tests/formatter_fail.phpt
index 4bce9184cc..8103f1f1a3 100644
--- a/ext/intl/tests/formatter_fail.phpt
+++ b/ext/intl/tests/formatter_fail.phpt
@@ -100,13 +100,13 @@ IntlException: Constructor failed in %s on line %d
'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR'
'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR'
-TypeError: NumberFormatter::__construct() expects parameter 1 to be string, array given in %s on line %d
+TypeError: NumberFormatter::__construct() expects argument #1 ($locale) to be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: NumberFormatter::create() expects parameter 1 to be string, array given in %s on line %d
+TypeError: NumberFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: numfmt_create() expects parameter 1 to be string, array given in %s on line %d
+TypeError: numfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
'U_ZERO_ERROR'
IntlException: Constructor failed in %s on line %d
diff --git a/ext/intl/tests/gregoriancalendar___construct_error.phpt b/ext/intl/tests/gregoriancalendar___construct_error.phpt
index 41bfc49398..83de556587 100644
--- a/ext/intl/tests/gregoriancalendar___construct_error.phpt
+++ b/ext/intl/tests/gregoriancalendar___construct_error.phpt
@@ -38,4 +38,4 @@ Too many arguments
Too many arguments
No variant with 4 arguments (excluding trailing NULLs)
No variant with 4 arguments (excluding trailing NULLs)
-IntlGregorianCalendar::__construct() expects parameter 6 to be int, array given
+IntlGregorianCalendar::__construct() expects argument #6 to be of type int, array given
diff --git a/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt b/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt
index 37a0315c45..2caa055388 100644
--- a/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt
+++ b/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt
@@ -14,7 +14,7 @@ var_dump(intlgregcal_get_gregorian_change(1));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change() expects parameter 1 to be IntlGregorianCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlgregcal_get_gregorian_change(1)
#1 {main}
diff --git a/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt b/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt
index 9b7c3e0be8..6223256def 100644
--- a/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt
+++ b/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt
@@ -14,7 +14,7 @@ var_dump(intlgregcal_is_leap_year(1, 2));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intlgregcal_is_leap_year() expects parameter 1 to be IntlGregorianCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlgregcal_is_leap_year() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d
Stack trace:
#0 %s(%d): intlgregcal_is_leap_year(1, 2)
#1 {main}
diff --git a/ext/intl/tests/msgfmt_fail2.phpt b/ext/intl/tests/msgfmt_fail2.phpt
index 060976d19e..c02fcb35c3 100644
--- a/ext/intl/tests/msgfmt_fail2.phpt
+++ b/ext/intl/tests/msgfmt_fail2.phpt
@@ -136,13 +136,13 @@ IntlException: Constructor failed in %s on line %d
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
-TypeError: MessageFormatter::__construct() expects parameter 1 to be string, array given in %s on line %d
+TypeError: MessageFormatter::__construct() expects argument #1 ($locale) to be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: MessageFormatter::create() expects parameter 1 to be string, array given in %s on line %d
+TypeError: MessageFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
'U_ZERO_ERROR'
-TypeError: msgfmt_create() expects parameter 1 to be string, array given in %s on line %d
+TypeError: msgfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
'U_ZERO_ERROR'
IntlException: Constructor failed in %s on line %d
diff --git a/ext/intl/tests/timezone_getDSTSavings_error.phpt b/ext/intl/tests/timezone_getDSTSavings_error.phpt
index c20da9021a..e5802d1ef4 100644
--- a/ext/intl/tests/timezone_getDSTSavings_error.phpt
+++ b/ext/intl/tests/timezone_getDSTSavings_error.phpt
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intltz_get_dst_savings(null));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_dst_savings() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_dst_savings() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_dst_savings(NULL)
#1 {main}
diff --git a/ext/intl/tests/timezone_getDisplayName_error.phpt b/ext/intl/tests/timezone_getDisplayName_error.phpt
index 7f8d913a17..7861f25fe6 100644
--- a/ext/intl/tests/timezone_getDisplayName_error.phpt
+++ b/ext/intl/tests/timezone_getDisplayName_error.phpt
@@ -16,7 +16,7 @@ var_dump(intltz_get_display_name(null, IntlTimeZone::DISPLAY_SHORT, false, 'pt_P
Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: wrong display type in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intltz_get_display_name() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_display_name() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_display_name(NULL, 1, false, 'pt_PT')
#1 {main}
diff --git a/ext/intl/tests/timezone_getErrorCode_error.phpt b/ext/intl/tests/timezone_getErrorCode_error.phpt
index 5b4a59f17f..91d0167b8a 100644
--- a/ext/intl/tests/timezone_getErrorCode_error.phpt
+++ b/ext/intl/tests/timezone_getErrorCode_error.phpt
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intltz_get_error_code(null));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_error_code() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_error_code() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_error_code(NULL)
#1 {main}
diff --git a/ext/intl/tests/timezone_getErrorMessage_error.phpt b/ext/intl/tests/timezone_getErrorMessage_error.phpt
index ffceff358c..d492a956ea 100644
--- a/ext/intl/tests/timezone_getErrorMessage_error.phpt
+++ b/ext/intl/tests/timezone_getErrorMessage_error.phpt
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intltz_get_error_message(null));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_error_message() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_error_message() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_error_message(NULL)
#1 {main}
diff --git a/ext/intl/tests/timezone_getID_error.phpt b/ext/intl/tests/timezone_getID_error.phpt
index 1ba7d7482f..23c4cd1726 100644
--- a/ext/intl/tests/timezone_getID_error.phpt
+++ b/ext/intl/tests/timezone_getID_error.phpt
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
intltz_get_id(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_id() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_id() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_id(NULL)
#1 {main}
diff --git a/ext/intl/tests/timezone_getOffset_error.phpt b/ext/intl/tests/timezone_getOffset_error.phpt
index 9ca81e4650..d9715b4998 100644
--- a/ext/intl/tests/timezone_getOffset_error.phpt
+++ b/ext/intl/tests/timezone_getOffset_error.phpt
@@ -23,7 +23,7 @@ intltz_get_offset(null, time()*1000, false, $a, $a);
Warning: IntlTimeZone::getOffset(): intltz_get_offset: error obtaining offset in %s on line %d
bool(false)
-Fatal error: Uncaught TypeError: intltz_get_offset() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_offset() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_offset(NULL, %d, false, NULL, NULL)
#1 {main}
diff --git a/ext/intl/tests/timezone_getRawOffset_error.phpt b/ext/intl/tests/timezone_getRawOffset_error.phpt
index a16b62468b..5b495322a1 100644
--- a/ext/intl/tests/timezone_getRawOffset_error.phpt
+++ b/ext/intl/tests/timezone_getRawOffset_error.phpt
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
intltz_get_raw_offset(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_raw_offset() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_raw_offset() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_get_raw_offset(NULL)
#1 {main}
diff --git a/ext/intl/tests/timezone_hasSameRules_error.phpt b/ext/intl/tests/timezone_hasSameRules_error.phpt
index e1cfb754ba..4f99dc6eb5 100644
--- a/ext/intl/tests/timezone_hasSameRules_error.phpt
+++ b/ext/intl/tests/timezone_hasSameRules_error.phpt
@@ -31,7 +31,7 @@ try {
}
--EXPECT--
int(0)
-string(81) "IntlTimeZone::hasSameRules() expects parameter 1 to be IntlTimeZone, string given"
+string(106) "IntlTimeZone::hasSameRules() expects argument #1 ($otherTimeZone) to be of type IntlTimeZone, string given"
int(0)
-string(74) "intltz_has_same_rules() expects parameter 1 to be IntlTimeZone, null given"
+string(88) "intltz_has_same_rules() expects argument #1 ($tz) to be of type IntlTimeZone, null given"
diff --git a/ext/intl/tests/timezone_toDateTimeZone_error.phpt b/ext/intl/tests/timezone_toDateTimeZone_error.phpt
index 119977b124..fc07b16ad5 100644
--- a/ext/intl/tests/timezone_toDateTimeZone_error.phpt
+++ b/ext/intl/tests/timezone_toDateTimeZone_error.phpt
@@ -21,7 +21,7 @@ var_dump(intltz_to_date_time_zone(1));
Warning: IntlTimeZone::toDateTimeZone(): intltz_to_date_time_zone: DateTimeZone constructor threw exception in %s on line %d
string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
-Fatal error: Uncaught TypeError: intltz_to_date_time_zone() expects parameter 1 to be IntlTimeZone, int given in %s:%d
+Fatal error: Uncaught TypeError: intltz_to_date_time_zone() expects argument #1 ($tz) to be of type IntlTimeZone, int given in %s:%d
Stack trace:
#0 %s(%d): intltz_to_date_time_zone(1)
#1 {main}
diff --git a/ext/intl/tests/timezone_useDaylightTime_error.phpt b/ext/intl/tests/timezone_useDaylightTime_error.phpt
index 5b37cd16b1..283e42ea23 100644
--- a/ext/intl/tests/timezone_useDaylightTime_error.phpt
+++ b/ext/intl/tests/timezone_useDaylightTime_error.phpt
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
intltz_use_daylight_time(null);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: intltz_use_daylight_time() expects parameter 1 to be IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_use_daylight_time() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_use_daylight_time(NULL)
#1 {main}
diff --git a/ext/intl/tests/transliterator_create_inverse_error.phpt b/ext/intl/tests/transliterator_create_inverse_error.phpt
index c8d6bdc5a6..3b069cb230 100644
--- a/ext/intl/tests/transliterator_create_inverse_error.phpt
+++ b/ext/intl/tests/transliterator_create_inverse_error.phpt
@@ -10,7 +10,7 @@ ini_set("intl.error_level", E_WARNING);
transliterator_create_inverse("jj");
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_create_inverse() expects parameter 1 to be Transliterator, string given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_create_inverse() expects argument #1 ($orig_trans) to be of type Transliterator, string given in %s:%d
Stack trace:
#0 %s(%d): transliterator_create_inverse('jj')
#1 {main}
diff --git a/ext/intl/tests/transliterator_get_error_code_error.phpt b/ext/intl/tests/transliterator_get_error_code_error.phpt
index ed766fd968..bfd3c1b118 100644
--- a/ext/intl/tests/transliterator_get_error_code_error.phpt
+++ b/ext/intl/tests/transliterator_get_error_code_error.phpt
@@ -8,7 +8,7 @@ ini_set("intl.error_level", E_WARNING);
echo transliterator_get_error_code(array()), "\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_get_error_code() expects parameter 1 to be Transliterator, array given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_get_error_code() expects argument #1 ($trans) to be of type Transliterator, array given in %s:%d
Stack trace:
#0 %s(%d): transliterator_get_error_code(Array)
#1 {main}
diff --git a/ext/intl/tests/transliterator_get_error_message_error.phpt b/ext/intl/tests/transliterator_get_error_message_error.phpt
index 04746c7a5f..543480d55e 100644
--- a/ext/intl/tests/transliterator_get_error_message_error.phpt
+++ b/ext/intl/tests/transliterator_get_error_message_error.phpt
@@ -8,7 +8,7 @@ ini_set("intl.error_level", E_WARNING);
echo transliterator_get_error_message(array()), "\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_get_error_message() expects parameter 1 to be Transliterator, array given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_get_error_message() expects argument #1 ($trans) to be of type Transliterator, array given in %s:%d
Stack trace:
#0 %s(%d): transliterator_get_error_message(Array)
#1 {main}
diff --git a/ext/libxml/tests/004.phpt b/ext/libxml/tests/004.phpt
index e3daa41d24..ad05ca1b9f 100644
--- a/ext/libxml/tests/004.phpt
+++ b/ext/libxml/tests/004.phpt
@@ -27,16 +27,16 @@ foreach ($ctxs as $ctx) {
echo "Done\n";
?>
---EXPECTF--
-libxml_set_streams_context() expects parameter 1 to be resource, null given
+--EXPECT--
+libxml_set_streams_context() expects argument #1 ($context) to be of type resource, null given
bool(true)
-libxml_set_streams_context() expects parameter 1 to be resource, string given
+libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given
bool(true)
-libxml_set_streams_context() expects parameter 1 to be resource, int given
+libxml_set_streams_context() expects argument #1 ($context) to be of type resource, int given
bool(true)
-libxml_set_streams_context() expects parameter 1 to be resource, object given
+libxml_set_streams_context() expects argument #1 ($context) to be of type resource, object given
bool(true)
-libxml_set_streams_context() expects parameter 1 to be resource, array given
+libxml_set_streams_context() expects argument #1 ($context) to be of type resource, array given
bool(true)
NULL
bool(true)
diff --git a/ext/libxml/tests/bug63389.phpt b/ext/libxml/tests/bug63389.phpt
index 92c3e83567..12b3a032a5 100644
--- a/ext/libxml/tests/bug63389.phpt
+++ b/ext/libxml/tests/bug63389.phpt
@@ -14,5 +14,5 @@ try {
echo "okey";
?>
--EXPECT--
-libxml_set_streams_context() expects parameter 1 to be resource, string given
+libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given
okey
diff --git a/ext/mbstring/tests/mb_ereg1.phpt b/ext/mbstring/tests/mb_ereg1.phpt
index 875426a6c7..3f6c1132d1 100644
--- a/ext/mbstring/tests/mb_ereg1.phpt
+++ b/ext/mbstring/tests/mb_ereg1.phpt
@@ -45,7 +45,7 @@ array(3) {
array(0) {
}
}
-mb_ereg() expects parameter 1 to be string, array given
+mb_ereg() expects argument #1 ($pattern) to be of type string, array given
array(3) {
[0]=>
array(0) {
@@ -55,7 +55,7 @@ array(3) {
[2]=>
&string(0) ""
}
-mb_ereg() expects parameter 2 to be string, array given
+mb_ereg() expects argument #2 ($string) to be of type string, array given
array(3) {
[0]=>
int(1)
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt b/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt
index 127777fc6a..0cd2696c5a 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt
@@ -96,7 +96,7 @@ if (!$TEST_EXPERIMENTAL)
--EXPECTF--
Warning: Wrong parameter count for mysqli_warning::mysqli_warning() in %s on line %d
-Warning: mysqli_warning::mysqli_warning() expects parameter 1 to be object, null given in %s on line %d
+Warning: mysqli_warning::mysqli_warning() expects argument #1 to be of type object, null given in %s on line %d
Warning: Wrong parameter count for mysqli_warning::mysqli_warning() in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_embedded_connect.phpt b/ext/mysqli/tests/mysqli_embedded_connect.phpt
index 7c6ca78ad4..ecd096953f 100644
--- a/ext/mysqli/tests/mysqli_embedded_connect.phpt
+++ b/ext/mysqli/tests/mysqli_embedded_connect.phpt
@@ -28,5 +28,5 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECTF--
-Warning: mysqli_embedded_connect() expects parameter 1 to be mysqli, null given in %s on line %d
+Warning: mysqli_embedded_connect() expects argument #1 to be of type mysqli, null given in %s on line %d
done!
diff --git a/ext/mysqli/tests/mysqli_fetch_object.phpt b/ext/mysqli/tests/mysqli_fetch_object.phpt
index cc6d4c8d14..f1bbab7e39 100644
--- a/ext/mysqli/tests/mysqli_fetch_object.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_object.phpt
@@ -145,6 +145,6 @@ Exception: Too few arguments to function mysqli_fetch_object_construct::__constr
NULL
NULL
mysqli_result object is already closed
-[0] mysqli_fetch_object() expects parameter 3 to be array, string given in %s on line %d
+[0] mysqli_fetch_object() expects argument #3 ($params) to be of type array, string given in %s on line %d
Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_fetch_object_oo.phpt b/ext/mysqli/tests/mysqli_fetch_object_oo.phpt
index 0e90b29e71..82e1814050 100644
--- a/ext/mysqli/tests/mysqli_fetch_object_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_object_oo.phpt
@@ -130,9 +130,9 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
mysqli object is not fully initialized
-[0] mysqli_result::fetch_object() expects parameter 1 to be string, object given in %s on line %d
+[0] mysqli_result::fetch_object() expects argument #1 ($class_name) to be of type string, object given in %s on line %d
[0] mysqli_result::fetch_object() expects at most 2 parameters, 3 given in %s on line %d
-[0] mysqli_result::fetch_object() expects parameter 2 to be array, null given in %s on line %d
+[0] mysqli_result::fetch_object() expects argument #2 ($params) to be of type array, null given in %s on line %d
Exception: Too few arguments to function mysqli_fetch_object_construct::__construct(), 1 passed and exactly 2 expected
NULL
NULL
diff --git a/ext/oci8/tests/bug51291_1.phpt b/ext/oci8/tests/bug51291_1.phpt
index 5d46a370f5..4875b1dc17 100644
--- a/ext/oci8/tests/bug51291_1.phpt
+++ b/ext/oci8/tests/bug51291_1.phpt
@@ -165,7 +165,7 @@ array(4) {
Test 2 - Parse
-Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d
+Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
@@ -180,7 +180,7 @@ array(4) {
NULL
2nd call
-Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d
+Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
diff --git a/ext/oci8/tests/conn_attr_4.phpt b/ext/oci8/tests/conn_attr_4.phpt
index 7a7f5269eb..14bdfb73d6 100644
--- a/ext/oci8/tests/conn_attr_4.phpt
+++ b/ext/oci8/tests/conn_attr_4.phpt
@@ -79,37 +79,37 @@ echo "Done\n";
Invalid Connection resource
-Warning: oci_set_action() expects parameter 1 to be resource, null given in %s on line %d
+Warning: oci_set_action() expects argument #1 to be of type resource, null given in %s on line %d
NULL
Invalid Connection resource 2
-Warning: oci_set_client_info() expects parameter 1 to be resource, %s given in %s on line %d
+Warning: oci_set_client_info() expects argument #1 to be of type resource, %s given in %s on line %d
NULL
-Invalid Value
+Invalid Value
-Warning: oci_set_action() expects parameter 2 to be %s, resource given in %s on line %d
+Warning: oci_set_action() expects argument #2 to be of type %s, resource given in %s on line %d
NULL
-Set Values multiple times
+Set Values multiple times
bool(true)
bool(true)
bool(true)
bool(true)
The value of ACTION is ACTION1
-Setting to different values
+Setting to different values
Values set successfully to 1000
The value of MODULE is 1000
The value of ACTION is 1000
The value of CLIENT_INFO is 1000
The value of CLIENT_IDENTIFIER is 1000
-Values set successfully to
-The value of MODULE is
-The value of ACTION is
-The value of CLIENT_INFO is
-The value of CLIENT_IDENTIFIER is
+Values set successfully to
+The value of MODULE is
+The value of ACTION is
+The value of CLIENT_INFO is
+The value of CLIENT_IDENTIFIER is
Warning: oci_set_module_name(): ORA-24960: %s OCI_ATTR_MODULE %s on line %d
diff --git a/ext/oci8/tests/lob_002.phpt b/ext/oci8/tests/lob_002.phpt
index 156fd668d3..e69de8e0db 100644
--- a/ext/oci8/tests/lob_002.phpt
+++ b/ext/oci8/tests/lob_002.phpt
@@ -60,13 +60,13 @@ object(OCI-Lob)#%d (1) {
}
int(0)
-Warning: OCI-Lob::write() expects parameter 2 to be int%s string given in %slob_002.php on line %d
+Warning: OCI-Lob::write() expects argument #2 to be of type int%s string given in %slob_002.php on line %d
NULL
int(4)
int(40000)
int(40004)
-Warning: OCI-Lob::seek() expects parameter 1 to be int%s string given in %slob_002.php on line %d
+Warning: OCI-Lob::seek() expects argument #1 to be of type int%s string given in %slob_002.php on line %d
NULL
bool(false)
int(40004)
diff --git a/ext/oci8/tests/lob_021.phpt b/ext/oci8/tests/lob_021.phpt
index 609003603b..0745c76c3c 100644
--- a/ext/oci8/tests/lob_021.phpt
+++ b/ext/oci8/tests/lob_021.phpt
@@ -61,7 +61,7 @@ bool(false)
Warning: oci_free_descriptor(): %s is not a valid oci8 descriptor resource in %s on line %d
bool(false)
-Warning: oci_free_descriptor() expects parameter 1 to be OCI-Lob, object given in %s on line %d
+Warning: oci_free_descriptor() expects argument #1 to be of type OCI-Lob, object given in %s on line %d
NULL
Warning: oci_free_descriptor(): Unable to find descriptor property in %s on line %d
diff --git a/ext/oci8/tests/lob_026.phpt b/ext/oci8/tests/lob_026.phpt
index acada8a9d3..2a39db46d6 100644
--- a/ext/oci8/tests/lob_026.phpt
+++ b/ext/oci8/tests/lob_026.phpt
@@ -73,7 +73,7 @@ NULL
bool(true)
int(3)
-Warning: oci_lob_seek() expects parameter 1 to be OCI-Lob, int%sgiven in %s on line %d
+Warning: oci_lob_seek() expects argument #1 to be of type OCI-Lob, int%sgiven in %s on line %d
NULL
bool(true)
array(2) {
diff --git a/ext/oci8/tests/null_byte_1.phpt b/ext/oci8/tests/null_byte_1.phpt
index 5c8075cc81..e5857450f8 100644
--- a/ext/oci8/tests/null_byte_1.phpt
+++ b/ext/oci8/tests/null_byte_1.phpt
@@ -35,9 +35,9 @@ var_dump($r);
--EXPECTF--
Test 1: Import
-Warning: OCI-Lob::savefile() expects parameter 1 to be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI-Lob::savefile() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d
NULL
Test 2: Export
-Warning: OCI-Lob::export() expects parameter 1 to be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI-Lob::export() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d
NULL
diff --git a/ext/oci8/tests/privileged_connect.phpt b/ext/oci8/tests/privileged_connect.phpt
index 5d9fbb0a45..ca785aa361 100644
--- a/ext/oci8/tests/privileged_connect.phpt
+++ b/ext/oci8/tests/privileged_connect.phpt
@@ -21,5 +21,5 @@ Warning: oci_connect(): Privileged connect is disabled. Enable oci8.privileged_c
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
-Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
+Warning: oci_connect() expects argument #5 to be of type int%s string given in %s on line %d
Done
diff --git a/ext/oci8/tests/privileged_connect1.phpt b/ext/oci8/tests/privileged_connect1.phpt
index 181dba5f1d..aaa819ca92 100644
--- a/ext/oci8/tests/privileged_connect1.phpt
+++ b/ext/oci8/tests/privileged_connect1.phpt
@@ -23,5 +23,5 @@ Warning: oci_connect(): ORA-%d: %s in %s on line %d
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
-Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
+Warning: oci_connect() expects argument #5 to be of type int%s string given in %s on line %d
Done
diff --git a/ext/odbc/tests/odbc_exec_001.phpt b/ext/odbc/tests/odbc_exec_001.phpt
index dd1fa26a67..195520484f 100644
--- a/ext/odbc/tests/odbc_exec_001.phpt
+++ b/ext/odbc/tests/odbc_exec_001.phpt
@@ -28,11 +28,11 @@ odbc_exec($conn, NULL);
?>
--EXPECTF--
-Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d
+Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d
Warning: odbc_exec(): SQL error: %s in %s on line %d
-Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d
+Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d
Warning: odbc_exec(): SQL error: %s in %s on line %d
diff --git a/ext/opcache/tests/iterable_type_optimization.phpt b/ext/opcache/tests/iterable_type_optimization.phpt
index b5247cd69c..26d9971d37 100644
--- a/ext/opcache/tests/iterable_type_optimization.phpt
+++ b/ext/opcache/tests/iterable_type_optimization.phpt
@@ -10,7 +10,7 @@ test(new stdClass);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test() must be iterable, object returned in %s:%d
+Fatal error: Uncaught TypeError: Return value of test() must be of type iterable, object returned in %s:%d
Stack trace:
#0 %s(%d): test(Object(stdClass))
#1 {main}
diff --git a/ext/opcache/tests/ssa_bug_003.phpt b/ext/opcache/tests/ssa_bug_003.phpt
index c8014383ca..b53d24d482 100644
--- a/ext/opcache/tests/ssa_bug_003.phpt
+++ b/ext/opcache/tests/ssa_bug_003.phpt
@@ -36,5 +36,5 @@ try {
?>
--EXPECT--
-Error: Return value of test1() must be callable, string returned
-Error: Return value of test2() must be an instance of Foo, instance of stdClass returned
+Error: Return value of test1() must be of type callable, string returned
+Error: Return value of test2() must be of type Foo, stdClass returned
diff --git a/ext/openssl/tests/openssl_csr_export_bacis.phpt b/ext/openssl/tests/openssl_csr_export_bacis.phpt
index 3a252d8a8f..714b9f7092 100644
--- a/ext/openssl/tests/openssl_csr_export_bacis.phpt
+++ b/ext/openssl/tests/openssl_csr_export_bacis.phpt
@@ -41,6 +41,6 @@ var_dump(openssl_csr_export($csr, $output, false));
?>
--EXPECT--
bool(true)
-openssl_csr_export() expects parameter 1 to be resource, string given
+openssl_csr_export() expects argument #1 ($csr) to be of type resource, string given
openssl_csr_export(): supplied resource is not a valid OpenSSL X.509 CSR resource
bool(true)
diff --git a/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt b/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt
index 57092293db..907b7fd844 100644
--- a/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt
+++ b/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt
@@ -76,6 +76,6 @@ sfBgVeqg0P4SWez5fHXqBNcjMdMI5f0bikcDZSIfTHS8FX+PMurLBC8UPB0YNIOl
JViHkCA9x6m8RJXAFvqmgLlWlUzbDv/cRrDfjWjR
-----END CERTIFICATE REQUEST-----
"
-openssl_csr_export_to_file() expects parameter 1 to be resource, string given
+openssl_csr_export_to_file() expects argument #1 ($csr) to be of type resource, string given
openssl_csr_export_to_file(): supplied resource is not a valid OpenSSL X.509 CSR resource
bool(true)
diff --git a/ext/openssl/tests/openssl_pkey_new_error.phpt b/ext/openssl/tests/openssl_pkey_new_error.phpt
index 7fada8239a..1a6235db70 100644
--- a/ext/openssl/tests/openssl_pkey_new_error.phpt
+++ b/ext/openssl/tests/openssl_pkey_new_error.phpt
@@ -28,6 +28,6 @@ try {
}
?>
--EXPECT--
-openssl_pkey_get_details() expects parameter 1 to be resource, bool given
-openssl_pkey_get_details() expects parameter 1 to be resource, bool given
-openssl_pkey_get_details() expects parameter 1 to be resource, bool given
+openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given
+openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given
+openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given
diff --git a/ext/pcre/tests/preg_grep_error1.phpt b/ext/pcre/tests/preg_grep_error1.phpt
index 1bf23bb640..5b191a72dc 100644
--- a/ext/pcre/tests/preg_grep_error1.phpt
+++ b/ext/pcre/tests/preg_grep_error1.phpt
@@ -57,7 +57,7 @@ Warning: preg_grep(): Unknown modifier 'F' in %spreg_grep_error1.php on line %d
bool(false)
Arg value is Array
-preg_grep() expects parameter 1 to be string, array given
+preg_grep() expects argument #1 ($regex) to be of type string, array given
Arg value is /[a-zA-Z]/
array(2) {
@@ -66,5 +66,5 @@ array(2) {
[2]=>
string(4) "test"
}
-preg_grep() expects parameter 1 to be string, object given
+preg_grep() expects argument #1 ($regex) to be of type string, object given
Done
diff --git a/ext/pcre/tests/preg_match_all_error1.phpt b/ext/pcre/tests/preg_match_all_error1.phpt
index 6a5a0055a9..3a65fca852 100644
--- a/ext/pcre/tests/preg_match_all_error1.phpt
+++ b/ext/pcre/tests/preg_match_all_error1.phpt
@@ -62,7 +62,7 @@ bool(false)
NULL
Arg value is Array
-preg_match_all() expects parameter 1 to be string, array given
+preg_match_all() expects argument #1 ($pattern) to be of type string, array given
NULL
Arg value is /[a-zA-Z]/
@@ -80,5 +80,5 @@ array(1) {
string(1) "t"
}
}
-preg_match_all() expects parameter 1 to be string, object given
+preg_match_all() expects argument #1 ($pattern) to be of type string, object given
NULL
diff --git a/ext/pcre/tests/preg_match_all_error2.phpt b/ext/pcre/tests/preg_match_all_error2.phpt
index 29762739c4..98e70385c0 100644
--- a/ext/pcre/tests/preg_match_all_error2.phpt
+++ b/ext/pcre/tests/preg_match_all_error2.phpt
@@ -23,11 +23,11 @@ foreach($input as $value) {
}
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing preg_match_all() : error conditions ***
Arg value is: Array
-preg_match_all() expects parameter 2 to be string, array given
+preg_match_all() expects argument #2 ($subject) to be of type string, array given
NULL
Arg value is: test
diff --git a/ext/pcre/tests/preg_match_error1.phpt b/ext/pcre/tests/preg_match_error1.phpt
index 2f1b39d67f..3dbb7c2f03 100644
--- a/ext/pcre/tests/preg_match_error1.phpt
+++ b/ext/pcre/tests/preg_match_error1.phpt
@@ -56,8 +56,8 @@ Warning: preg_match(): Unknown modifier 'F' in %spreg_match_error1.php on line %
bool(false)
Arg value is Array
-preg_match() expects parameter 1 to be string, array given
+preg_match() expects argument #1 ($pattern) to be of type string, array given
Arg value is /[a-zA-Z]/
int(1)
-preg_match() expects parameter 1 to be string, object given
+preg_match() expects argument #1 ($pattern) to be of type string, object given
diff --git a/ext/pcre/tests/preg_match_error2.phpt b/ext/pcre/tests/preg_match_error2.phpt
index 18a42c6445..bc48facc0a 100644
--- a/ext/pcre/tests/preg_match_error2.phpt
+++ b/ext/pcre/tests/preg_match_error2.phpt
@@ -28,13 +28,13 @@ try {
}
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing preg_match() : error conditions ***
Arg value is: this is a string
int(1)
Arg value is: Array
-preg_match() expects parameter 2 to be string, array given
-preg_match() expects parameter 2 to be string, object given
+preg_match() expects argument #2 ($subject) to be of type string, array given
+preg_match() expects argument #2 ($subject) to be of type string, object given
Done
diff --git a/ext/pcre/tests/preg_split_error1.phpt b/ext/pcre/tests/preg_split_error1.phpt
index b69caf1aed..0ec80d99f1 100644
--- a/ext/pcre/tests/preg_split_error1.phpt
+++ b/ext/pcre/tests/preg_split_error1.phpt
@@ -56,7 +56,7 @@ Warning: preg_split(): Unknown modifier 'F' in %spreg_split_error1.php on line %
bool(false)
Arg value is Array
-preg_split() expects parameter 1 to be string, array given
+preg_split() expects argument #1 ($pattern) to be of type string, array given
Arg value is /[a-zA-Z]/
array(3) {
@@ -67,4 +67,4 @@ array(3) {
[2]=>
string(4) " 5 6"
}
-preg_split() expects parameter 1 to be string, object given
+preg_split() expects argument #1 ($pattern) to be of type string, object given
diff --git a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
index 4f3a19c8be..b2ee84a945 100644
--- a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
+++ b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
@@ -47,7 +47,7 @@ SQL
if (false !== ($tmp = @$stmt->getColumnMeta(-1)))
printf("[004] Expecting false got %s\n", var_export($tmp, true));
- // Warning: PDOStatement::getColumnMeta() expects parameter 1 to be int, array given in
+ // Warning: PDOStatement::getColumnMeta() expects argument #1 to be of type int, array given in
if (false !== ($tmp = @$stmt->getColumnMeta(array())))
printf("[005] Expecting false got %s\n", var_export($tmp, true));
diff --git a/ext/phar/tests/badparameters.phpt b/ext/phar/tests/badparameters.phpt
index 3ee49890c9..e086e89c28 100644
--- a/ext/phar/tests/badparameters.phpt
+++ b/ext/phar/tests/badparameters.phpt
@@ -228,40 +228,40 @@ try {
}
?>
--EXPECTF--
-Phar::mungServer() expects parameter 1 to be array, string given
-Phar::createDefaultStub() expects parameter 1 to be a valid path, array given
-Phar::loadPhar() expects parameter 1 to be a valid path, array given
-Phar::canCompress() expects parameter 1 to be int, string given
-Phar::__construct() expects parameter 1 to be a valid path, array given
-Phar::convertToExecutable() expects parameter 1 to be int, array given
-Phar::convertToData() expects parameter 1 to be int, array given
-PharData::delete() expects parameter 1 to be a valid path, array given
+Phar::mungServer() expects argument #1 ($munglist) to be of type array, string given
+Phar::createDefaultStub() expects argument #1 ($index) to be a valid path, array given
+Phar::loadPhar() expects argument #1 ($filename) to be a valid path, array given
+Phar::canCompress() expects argument #1 ($method) to be of type int, string given
+Phar::__construct() expects argument #1 ($filename) to be a valid path, array given
+Phar::convertToExecutable() expects argument #1 ($format) to be of type int, array given
+Phar::convertToData() expects argument #1 ($format) to be of type int, array given
+PharData::delete() expects argument #1 ($entry) to be a valid path, array given
Cannot write out phar archive, phar is read-only
Entry oops does not exist and cannot be deleted
%sfrontcontroller10.phar
Cannot write out phar archive, phar is read-only
A Phar alias cannot be set in a plain tar archive
-Phar::setAlias() expects parameter 1 to be string, array given
+Phar::setAlias() expects argument #1 ($alias) to be of type string, array given
Cannot change stub, phar is read-only
A Phar stub cannot be set in a plain tar archive
-Phar::setStub() expects parameter 1 to be string, array given
+Phar::setStub() expects argument #1 ($newstub) to be of type string, array given
A Phar stub cannot be set in a plain tar archive
-Phar::setDefaultStub() expects parameter 1 to be string, array given
+Phar::setDefaultStub() expects argument #1 ($index) to be of type string, array given
Cannot change stub: phar.readonly=1
Cannot set signature algorithm, phar is read-only
-Phar::compress() expects parameter 1 to be int, array given
+Phar::compress() expects argument #1 ($compression_type) to be of type int, array given
Cannot compress phar archive, phar is read-only
-Phar::compressFiles() expects parameter 1 to be int, array given
+Phar::compressFiles() expects argument #1 ($compression_type) to be of type int, array given
Phar is readonly, cannot change compression
Phar::copy() expects exactly 2 parameters, 1 given
Cannot copy "a" to "b", phar is read-only
-Phar::offsetExists() expects parameter 1 to be a valid path, array given
-Phar::offsetGet() expects parameter 1 to be a valid path, array given
+Phar::offsetExists() expects argument #1 ($entry) to be a valid path, array given
+Phar::offsetGet() expects argument #1 ($entry) to be a valid path, array given
Phar::offsetSet() expects exactly 2 parameters, 1 given
-PharData::offsetUnset() expects parameter 1 to be a valid path, array given
+PharData::offsetUnset() expects argument #1 ($entry) to be a valid path, array given
Write operations disabled by the php.ini setting phar.readonly
-Phar::addEmptyDir() expects parameter 1 to be a valid path, array given
-Phar::addFile() expects parameter 1 to be a valid path, array given
+Phar::addEmptyDir() expects argument #1 ($dirname) to be a valid path, array given
+Phar::addFile() expects argument #1 ($filename) to be a valid path, array given
Phar::addFromString() expects exactly 2 parameters, 1 given
Write operations disabled by the php.ini setting phar.readonly
Phar::setMetadata() expects exactly 1 parameter, 2 given
diff --git a/ext/phar/tests/bug64931/bug64931.phpt b/ext/phar/tests/bug64931/bug64931.phpt
index 6bf3bea7c3..8c25692c3f 100644
--- a/ext/phar/tests/bug64931/bug64931.phpt
+++ b/ext/phar/tests/bug64931/bug64931.phpt
@@ -47,10 +47,10 @@ try {
<?php
@unlink(__DIR__."/bug64931.phar");
?>
---EXPECTF--
+--EXPECT--
Test
CAUGHT: Cannot create any files in magic ".phar" directory
CAUGHT: Cannot create any files in magic ".phar" directory
CAUGHT: Cannot create any files in magic ".phar" directory
CAUGHT: Cannot create any files in magic ".phar" directory
-CAUGHT: Phar::addFromString() expects parameter 1 to be a valid path, string given
+CAUGHT: Phar::addFromString() expects argument #1 ($localname) to be a valid path, string given
diff --git a/ext/phar/tests/create_path_error.phpt b/ext/phar/tests/create_path_error.phpt
index ff4fa4530a..458ec8b6f5 100644
--- a/ext/phar/tests/create_path_error.phpt
+++ b/ext/phar/tests/create_path_error.phpt
@@ -78,4 +78,4 @@ string(5) "query"
11:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
12:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
13:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
-Exception: Phar::offsetSet() expects parameter 1 to be a valid path, string given
+Exception: Phar::offsetSet() expects argument #1 ($entry) to be a valid path, string given
diff --git a/ext/phar/tests/fgc_edgecases.phpt b/ext/phar/tests/fgc_edgecases.phpt
index aa037ca5f8..861933ba4e 100644
--- a/ext/phar/tests/fgc_edgecases.phpt
+++ b/ext/phar/tests/fgc_edgecases.phpt
@@ -49,7 +49,7 @@ include $pname . '/foo/hi';
<?php rmdir(__DIR__ . '/poo'); ?>
<?php unlink(__DIR__ . '/fgc_edgecases.txt'); ?>
--EXPECTF--
-file_get_contents() expects parameter 1 to be a valid path, array given
+file_get_contents() expects argument #1 ($filename) to be a valid path, array given
blah
<?php
echo file_get_contents("foo/" . basename(__FILE__));
diff --git a/ext/phar/tests/fopen_edgecases2.phpt b/ext/phar/tests/fopen_edgecases2.phpt
index 5b520ad0ca..548f50a362 100644
--- a/ext/phar/tests/fopen_edgecases2.phpt
+++ b/ext/phar/tests/fopen_edgecases2.phpt
@@ -38,7 +38,7 @@ include $pname . '/foo/hi';
<?php rmdir(__DIR__ . '/poo'); ?>
<?php unlink(__DIR__ . '/fopen_edgecases2.txt'); ?>
--EXPECTF--
-fopen() expects parameter 1 to be a valid path, array given
+fopen() expects argument #1 ($filename) to be a valid path, array given
blah
test
diff --git a/ext/phar/tests/opendir_edgecases.phpt b/ext/phar/tests/opendir_edgecases.phpt
index 30c137baf2..59deca53c8 100644
--- a/ext/phar/tests/opendir_edgecases.phpt
+++ b/ext/phar/tests/opendir_edgecases.phpt
@@ -55,7 +55,7 @@ include $pname . '/foo';
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
<?php rmdir(__DIR__ . '/poo');
--EXPECTF--
-opendir() expects parameter 1 to be a valid path, array given
+opendir() expects argument #1 ($path) to be a valid path, array given
.
..
foo
diff --git a/ext/phar/tests/phar_extract.phpt b/ext/phar/tests/phar_extract.phpt
index a354e0a608..e5bba5d757 100644
--- a/ext/phar/tests/phar_extract.phpt
+++ b/ext/phar/tests/phar_extract.phpt
@@ -142,7 +142,7 @@ string(3) "hi3"
string(3) "hi2"
bool(false)
Invalid argument, expected a filename (string) or array of filenames
-Phar::extractTo() expects parameter 1 to be a valid path, array given
+Phar::extractTo() expects argument #1 ($pathto) to be a valid path, array given
Invalid argument, extraction path must be non-zero length
Unable to use path "%soops" for extraction, it is a file, must be a directory
Invalid argument, array of filenames to extract contains non-string value
diff --git a/ext/phar/tests/phar_oo_006.phpt b/ext/phar/tests/phar_oo_006.phpt
index 4b1201cc24..5de390600f 100644
--- a/ext/phar/tests/phar_oo_006.phpt
+++ b/ext/phar/tests/phar_oo_006.phpt
@@ -40,7 +40,7 @@ unlink(__DIR__ . '/files/phar_oo_006.phar.php');
__halt_compiler();
?>
--EXPECTF--
-SplFileInfo::setFileClass() expects parameter 1 to be a class name derived from SplFileObject, 'SplFileInfo' given
+SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'SplFileInfo' given
MyFile::__construct(phar://%s/a.php)
a.php
MyFile::__construct(phar://%s/b/c.php)
diff --git a/ext/phar/tests/phar_unlinkarchive.phpt b/ext/phar/tests/phar_unlinkarchive.phpt
index 8789c37e79..70b251257d 100644
--- a/ext/phar/tests/phar_unlinkarchive.phpt
+++ b/ext/phar/tests/phar_unlinkarchive.phpt
@@ -92,7 +92,7 @@ __HALT_COMPILER();
Unknown phar archive ""
Unknown phar archive "%sphar_unlinkarchive.phar"
Unknown phar archive "%sphar_unlinkarchive.phar.tar": internal corruption of phar "%sphar_unlinkarchive.phar.tar" (truncated entry)
-Phar::unlinkArchive() expects parameter 1 to be a valid path, array given
+Phar::unlinkArchive() expects argument #1 ($archive) to be a valid path, array given
bool(false)
string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
phar archive "%sphar_unlinkarchive.phar" has open file handles or objects. fclose() all file handles, and unset() all objects prior to calling unlinkArchive()
diff --git a/ext/phar/tests/pharfileinfo_construct.phpt b/ext/phar/tests/pharfileinfo_construct.phpt
index 4597660d80..5ac63d82f5 100644
--- a/ext/phar/tests/pharfileinfo_construct.phpt
+++ b/ext/phar/tests/pharfileinfo_construct.phpt
@@ -49,7 +49,7 @@ echo $e->getMessage() . "\n";
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?>
--EXPECTF--
Cannot open phar file 'phar://%spharfileinfo_construct.phar/oops': internal corruption of phar "%spharfileinfo_construct.phar" (truncated entry)
-PharFileInfo::__construct() expects parameter 1 to be a valid path, array given
+PharFileInfo::__construct() expects argument #1 ($filename) to be a valid path, array given
Cannot access phar file entry '%s' in archive '%s'
Cannot call constructor twice
'%s' is not a valid phar archive URL (must have at least phar://filename.phar)
diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt
index cebb5cd089..721ad337cc 100644
--- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt
@@ -62,5 +62,5 @@ Method does not exist
Method 1 does not exist
Method 1.5 does not exist
Method 1 does not exist
-ReflectionClass::getMethod() expects parameter 1 to be string, array given
-ReflectionClass::getMethod() expects parameter 1 to be string, object given
+ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, array given
+ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, object given
diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt
index 904162b263..dd3b5f33a2 100644
--- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt
@@ -60,5 +60,5 @@ Property does not exist
Property 1 does not exist
Property 1.5 does not exist
Property 1 does not exist
-ReflectionClass::getProperty() expects parameter 1 to be string, array given
-ReflectionClass::getProperty() expects parameter 1 to be string, object given
+ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, array given
+ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, object given
diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
index 672c7f3e1d..2cdbcebefb 100644
--- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
@@ -43,4 +43,4 @@ ReflectionClass::getStaticPropertyValue() expects at most 2 parameters, 3 given
ReflectionClass::getStaticPropertyValue() expects at least 1 parameter, 0 given
Class C does not have a property named
string(3) "def"
-ReflectionClass::getStaticPropertyValue() expects parameter 1 to be string, array given
+ReflectionClass::getStaticPropertyValue() expects argument #1 ($name) to be of type string, array given
diff --git a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt
index 3295f06108..1805607e19 100644
--- a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt
@@ -16,7 +16,7 @@ var_dump($a);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs() expects parameter 1 to be array, string given in %s:%d
+Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs() expects argument #1 ($args) to be of type array, string given in %s:%d
Stack trace:
#0 %s(%d): ReflectionClass->newInstanceArgs('x')
#1 {main}
diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
index 9e4c69b489..87cb894ea8 100644
--- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
@@ -49,4 +49,4 @@ ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 0 given
ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 1 given
Class C does not have a property named
Class C does not have a property named 1.5
-ReflectionClass::setStaticPropertyValue() expects parameter 1 to be string, array given
+ReflectionClass::setStaticPropertyValue() expects argument #1 ($name) to be of type string, array given
diff --git a/ext/reflection/tests/ReflectionExtension_constructor_error.phpt b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
index 9f25858402..1047c927dc 100644
--- a/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
+++ b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
@@ -28,4 +28,4 @@ try {
--EXPECTF--
Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
-Ok - ReflectionExtension::__construct() expects parameter 1 to be string, array given
+Ok - ReflectionExtension::__construct() expects argument #1 ($name) to be of type string, array given
diff --git a/ext/reflection/tests/ReflectionFunction_construct.001.phpt b/ext/reflection/tests/ReflectionFunction_construct.001.phpt
index 945060b073..dbd829252b 100644
--- a/ext/reflection/tests/ReflectionFunction_construct.001.phpt
+++ b/ext/reflection/tests/ReflectionFunction_construct.001.phpt
@@ -35,8 +35,8 @@ try {
?>
--EXPECT--
-Ok - ReflectionFunction::__construct() expects parameter 1 to be string, array given
+Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type string, array given
Function nonExistentFunction() does not exist
Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 0 given
Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 2 given
-Ok - ReflectionFunction::__construct() expects parameter 1 to be string, array given
+Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type string, array given
diff --git a/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt b/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt
index 34e73c9a69..0d585d2a73 100644
--- a/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt
+++ b/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt
@@ -24,4 +24,4 @@ try {
?>
--EXPECT--
-string(74) "ReflectionMethod::invokeArgs() expects parameter 2 to be array, bool given"
+string(90) "ReflectionMethod::invokeArgs() expects argument #2 ($args) to be of type array, bool given"
diff --git a/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt b/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
index 3ff1052a0a..3dc0ed626e 100644
--- a/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
+++ b/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
@@ -103,7 +103,7 @@ NULL
Static method:
ReflectionMethod::invoke() expects at least 1 parameter, 0 given
-ReflectionMethod::invoke() expects parameter 1 to be object, bool given
+ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given
Called staticMethod()
Exception: Using $this when not in object context
NULL
diff --git a/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt b/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt
index 4fa86eb363..8788370b2f 100644
--- a/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt
+++ b/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt
@@ -57,9 +57,9 @@ try {
}
?>
---EXPECTF--
+--EXPECT--
invoke() on a non-object:
-string(71) "ReflectionMethod::invoke() expects parameter 1 to be object, bool given"
+string(89) "ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given"
invoke() on a non-instance:
string(72) "Given object is not an instance of the class this method was declared in"
diff --git a/ext/reflection/tests/ReflectionReference_errors.phpt b/ext/reflection/tests/ReflectionReference_errors.phpt
index 8e52a1d223..e70348cba1 100644
--- a/ext/reflection/tests/ReflectionReference_errors.phpt
+++ b/ext/reflection/tests/ReflectionReference_errors.phpt
@@ -41,7 +41,7 @@ var_dump(unserialize('O:19:"ReflectionReference":0:{}'));
?>
--EXPECTF--
Call to private ReflectionReference::__construct() from invalid context
-ReflectionReference::fromArrayElement() expects parameter 1 to be array, object given
+ReflectionReference::fromArrayElement() expects argument #1 ($array) to be of type array, object given
Key must be array or string
Array key not found
Serialization of 'ReflectionReference' is not allowed
diff --git a/ext/reflection/tests/bug42976.phpt b/ext/reflection/tests/bug42976.phpt
index d8ab797b92..014d0d0321 100644
--- a/ext/reflection/tests/bug42976.phpt
+++ b/ext/reflection/tests/bug42976.phpt
@@ -26,9 +26,9 @@ echo "Done\n";
--EXPECTF--
string(9) "x.changed"
-Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 15
+Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d
string(10) "x.original"
-Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 18
+Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d
string(10) "x.original"
Done
diff --git a/ext/reflection/tests/request38992.phpt b/ext/reflection/tests/request38992.phpt
index e6eab83415..0266cee430 100644
--- a/ext/reflection/tests/request38992.phpt
+++ b/ext/reflection/tests/request38992.phpt
@@ -23,5 +23,5 @@ try {
}
?>
--EXPECT--
-ReflectionMethod::invoke() expects parameter 1 to be object, string given
-ReflectionMethod::invokeArgs() expects parameter 1 to be object, string given
+ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, string given
+ReflectionMethod::invokeArgs() expects argument #1 ($object) to be of type object, string given
diff --git a/ext/session/tests/session_set_save_handler_iface_002.phpt b/ext/session/tests/session_set_save_handler_iface_002.phpt
index cd8f6af9d9..269005565d 100644
--- a/ext/session/tests/session_set_save_handler_iface_002.phpt
+++ b/ext/session/tests/session_set_save_handler_iface_002.phpt
@@ -83,8 +83,8 @@ try {
}
session_start();
---EXPECTF--
+--EXPECT--
*** Testing session_set_save_handler() function: interface wrong ***
bool(true)
-session_set_save_handler() expects parameter 1 to be SessionHandlerInterface, object given
+session_set_save_handler() expects argument #1 ($open) to be of type SessionHandlerInterface, object given
good handler writing
diff --git a/ext/simplexml/tests/bug37565.phpt b/ext/simplexml/tests/bug37565.phpt
index 53508dc9b6..38e475a744 100644
--- a/ext/simplexml/tests/bug37565.phpt
+++ b/ext/simplexml/tests/bug37565.phpt
@@ -29,5 +29,5 @@ try {
?>
--EXPECT--
-Error: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given
-Error: simplexml_load_file() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given
+Error: simplexml_load_string() expects argument #2 ($class_name) to be a class name derived from SimpleXMLElement, 'Setting' given
+Error: simplexml_load_file() expects argument #2 ($class_name) to be a class name derived from SimpleXMLElement, 'Setting' given
diff --git a/ext/snmp/tests/snmp-object-error.phpt b/ext/snmp/tests/snmp-object-error.phpt
index 606a8cf7b0..c7adf8f25c 100644
--- a/ext/snmp/tests/snmp-object-error.phpt
+++ b/ext/snmp/tests/snmp-object-error.phpt
@@ -70,8 +70,8 @@ var_dump($session->max_oids);
?>
--EXPECTF--
SNMP::__construct() expects at least 3 parameters, 2 given
-SNMP::__construct() expects parameter 4 to be int, string given
-SNMP::__construct() expects parameter 5 to be int, string given
+SNMP::__construct() expects argument #4 to be of type int, string given
+SNMP::__construct() expects argument #5 to be of type int, string given
Unknown SNMP protocol version
Exception handling
diff --git a/ext/soap/tests/bug77088.phpt b/ext/soap/tests/bug77088.phpt
index 17945e136f..ed2bea1465 100644
--- a/ext/soap/tests/bug77088.phpt
+++ b/ext/soap/tests/bug77088.phpt
@@ -21,7 +21,7 @@ catch(TypeError $e)
--EXPECTF--
object(TypeError)#%d (%d) {
["message":protected]=>
- string(%d) "SoapClient::__construct() expects parameter 2 to be array, null given"
+ string(%d) "SoapClient::__construct() expects argument #2 ($options) to be of type array, null given"
["string":"Error":private]=>
string(0) ""
["code":protected]=>
diff --git a/ext/sodium/tests/sodium_error_001.phpt b/ext/sodium/tests/sodium_error_001.phpt
index a9801e21ce..b5b19b1d12 100644
--- a/ext/sodium/tests/sodium_error_001.phpt
+++ b/ext/sodium/tests/sodium_error_001.phpt
@@ -15,7 +15,7 @@ $key = random_bytes(SODIUM_CRYPTO_SHORTHASH_KEYBYTES);
$hash = do_crypto_shorthash($m, $key);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: sodium_crypto_shorthash() expects parameter 1 to be string, int given in %s:%d
+Fatal error: Uncaught TypeError: sodium_crypto_shorthash() expects argument #1 ($string) to be of type string, int given in %s:%d
Stack trace:
#0 %s(%d): sodium_crypto_shorthash()
#1 %s(%d): do_crypto_shorthash()
diff --git a/ext/spl/tests/CallbackFilterIteratorTest-002.phpt b/ext/spl/tests/CallbackFilterIteratorTest-002.phpt
index 62beb88cd5..e1d37ecce5 100644
--- a/ext/spl/tests/CallbackFilterIteratorTest-002.phpt
+++ b/ext/spl/tests/CallbackFilterIteratorTest-002.phpt
@@ -43,6 +43,6 @@ try {
--EXPECT--
CallbackFilterIterator::__construct() expects exactly 2 parameters, 0 given
CallbackFilterIterator::__construct() expects exactly 2 parameters, 1 given
-CallbackFilterIterator::__construct() expects parameter 2 to be a valid callback, no array or string given
-CallbackFilterIterator::__construct() expects parameter 2 to be a valid callback, array must have exactly two members
+CallbackFilterIterator::__construct() expects argument #2 ($callback) to be a valid callback, no array or string given
+CallbackFilterIterator::__construct() expects argument #2 ($callback) to be a valid callback, array must have exactly two members
some message
diff --git a/ext/spl/tests/SplFileInfo_setFileClass_error.phpt b/ext/spl/tests/SplFileInfo_setFileClass_error.phpt
index db0186f218..b8aea64ea2 100644
--- a/ext/spl/tests/SplFileInfo_setFileClass_error.phpt
+++ b/ext/spl/tests/SplFileInfo_setFileClass_error.phpt
@@ -13,4 +13,4 @@ try {
?>
--EXPECT--
-SplFileInfo::setFileClass() expects parameter 1 to be a class name derived from SplFileObject, 'stdClass' given
+SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'stdClass' given
diff --git a/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt b/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt
index 9a2e71defe..b0a358a9b3 100644
--- a/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt
+++ b/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt
@@ -13,4 +13,4 @@ try {
?>
--EXPECT--
-SplFileInfo::setInfoClass() expects parameter 1 to be a class name derived from SplFileInfo, 'stdClass' given
+SplFileInfo::setInfoClass() expects argument #1 ($class_name) to be a class name derived from SplFileInfo, 'stdClass' given
diff --git a/ext/spl/tests/SplFixedArray__construct_param_array.phpt b/ext/spl/tests/SplFixedArray__construct_param_array.phpt
index 15e1c0c438..f4fb329989 100644
--- a/ext/spl/tests/SplFixedArray__construct_param_array.phpt
+++ b/ext/spl/tests/SplFixedArray__construct_param_array.phpt
@@ -13,4 +13,4 @@ try {
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, array given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, array given
diff --git a/ext/spl/tests/SplFixedArray__construct_param_string.phpt b/ext/spl/tests/SplFixedArray__construct_param_string.phpt
index 654ac4b95f..240631cc88 100644
--- a/ext/spl/tests/SplFixedArray__construct_param_string.phpt
+++ b/ext/spl/tests/SplFixedArray__construct_param_string.phpt
@@ -13,4 +13,4 @@ try {
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
diff --git a/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt b/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt
index efb1d0e65d..cfb0ca79a9 100644
--- a/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt
+++ b/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt
@@ -12,4 +12,4 @@ try {
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given
diff --git a/ext/spl/tests/SplTempFileObject_constructor_error.phpt b/ext/spl/tests/SplTempFileObject_constructor_error.phpt
index 37b00991ff..aaf2738915 100644
--- a/ext/spl/tests/SplTempFileObject_constructor_error.phpt
+++ b/ext/spl/tests/SplTempFileObject_constructor_error.phpt
@@ -9,4 +9,4 @@ try {
}
?>
--EXPECT--
-SplTempFileObject::__construct() expects parameter 1 to be int, string given
+SplTempFileObject::__construct() expects argument #1 ($max_memory) to be of type int, string given
diff --git a/ext/spl/tests/arrayObject___construct_error1.phpt b/ext/spl/tests/arrayObject___construct_error1.phpt
index aaf38ac499..b7700e4e31 100644
--- a/ext/spl/tests/arrayObject___construct_error1.phpt
+++ b/ext/spl/tests/arrayObject___construct_error1.phpt
@@ -20,6 +20,6 @@ try {
?>
--EXPECT--
Bad iterator type:
-ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'Exception' given(6)
+ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'Exception' given(6)
Non-existent class:
-ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'nonExistentClassName' given(13)
+ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClassName' given(13)
diff --git a/ext/spl/tests/arrayObject_asort_basic1.phpt b/ext/spl/tests/arrayObject_asort_basic1.phpt
index 0ec5269692..db751c6fba 100644
--- a/ext/spl/tests/arrayObject_asort_basic1.phpt
+++ b/ext/spl/tests/arrayObject_asort_basic1.phpt
@@ -38,7 +38,7 @@ object(ArrayObject)#%d (1) {
int(4)
}
}
-asort() expects parameter 2 to be int, string given
+asort() expects argument #2 ($sort_flags) to be of type int, string given
object(ArrayObject)#%d (1) {
["storage":"ArrayObject":private]=>
array(3) {
diff --git a/ext/spl/tests/arrayObject_ksort_basic1.phpt b/ext/spl/tests/arrayObject_ksort_basic1.phpt
index 01375b7277..6e20013177 100644
--- a/ext/spl/tests/arrayObject_ksort_basic1.phpt
+++ b/ext/spl/tests/arrayObject_ksort_basic1.phpt
@@ -37,7 +37,7 @@ object(ArrayObject)#%d (1) {
int(3)
}
}
-ksort() expects parameter 2 to be int, string given
+ksort() expects argument #2 ($sort_flags) to be of type int, string given
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
array(4) {
diff --git a/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt b/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt
index 591f84c3d4..a80c8cbb0d 100644
--- a/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt
+++ b/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt
@@ -42,8 +42,8 @@ try {
}
?>
---EXPECTF--
-string(118) "ArrayObject::setIteratorClass() expects parameter 1 to be a class name derived from Iterator, 'nonExistentClass' given"
-string(110) "ArrayObject::setIteratorClass() expects parameter 1 to be a class name derived from Iterator, 'stdClass' given"
-string(113) "ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'nonExistentClass' given"
-string(105) "ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'stdClass' given"
+--EXPECT--
+string(135) "ArrayObject::setIteratorClass() expects argument #1 ($iteratorClass) to be a class name derived from Iterator, 'nonExistentClass' given"
+string(127) "ArrayObject::setIteratorClass() expects argument #1 ($iteratorClass) to be a class name derived from Iterator, 'stdClass' given"
+string(131) "ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClass' given"
+string(123) "ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'stdClass' given"
diff --git a/ext/spl/tests/bug54291.phpt b/ext/spl/tests/bug54291.phpt
index 9f3bd49912..e48f80fe00 100644
--- a/ext/spl/tests/bug54291.phpt
+++ b/ext/spl/tests/bug54291.phpt
@@ -5,7 +5,7 @@ Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
$dir = new DirectoryIterator("\x00/abc");
$dir->isFile();
--EXPECTF--
-Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d
Stack trace:
#0 %s(%d): DirectoryIterator->__construct('\x00/abc')
#1 {main}
diff --git a/ext/spl/tests/bug54292.phpt b/ext/spl/tests/bug54292.phpt
index ac0cee10d4..9355ef4408 100644
--- a/ext/spl/tests/bug54292.phpt
+++ b/ext/spl/tests/bug54292.phpt
@@ -11,4 +11,4 @@ try {
?>
--EXPECT--
-string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"
+string(95) "SplFileObject::__construct() expects argument #2 ($open_mode) to be of type string, array given"
diff --git a/ext/spl/tests/bug77431.phpt b/ext/spl/tests/bug77431.phpt
index eb1ca96b75..20545fb141 100644
--- a/ext/spl/tests/bug77431.phpt
+++ b/ext/spl/tests/bug77431.phpt
@@ -5,5 +5,5 @@ Bug #77431 (SplFileInfo::__construct() accepts NUL bytes)
new SplFileInfo("bad\0good");
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects parameter 1 to be a valid path, string given in %s:%d
-Stack trace:%A \ No newline at end of file
+Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects argument #1 ($file_name) to be a valid path, string given in %s:%d
+Stack trace:%A
diff --git a/ext/spl/tests/bug78863.phpt b/ext/spl/tests/bug78863.phpt
index c08c88a5d7..4db36c202e 100644
--- a/ext/spl/tests/bug78863.phpt
+++ b/ext/spl/tests/bug78863.phpt
@@ -16,7 +16,7 @@ foreach ($it as $fileinfo) {
}
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d
Stack trace:
#0 %s(%d): DirectoryIterator->__construct('%s')
#1 {main}
diff --git a/ext/spl/tests/fixedarray_005.phpt b/ext/spl/tests/fixedarray_005.phpt
index 7295a317ab..80fffd1566 100644
--- a/ext/spl/tests/fixedarray_005.phpt
+++ b/ext/spl/tests/fixedarray_005.phpt
@@ -23,6 +23,6 @@ try {
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
diff --git a/ext/spl/tests/fixedarray_009.phpt b/ext/spl/tests/fixedarray_009.phpt
index 71d6a42a6f..6dc6e4cbca 100644
--- a/ext/spl/tests/fixedarray_009.phpt
+++ b/ext/spl/tests/fixedarray_009.phpt
@@ -10,4 +10,4 @@ try {
}
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
diff --git a/ext/spl/tests/fixedarray_015.phpt b/ext/spl/tests/fixedarray_015.phpt
index 2a2d5a26f7..74814268e7 100644
--- a/ext/spl/tests/fixedarray_015.phpt
+++ b/ext/spl/tests/fixedarray_015.phpt
@@ -12,5 +12,5 @@ try {
echo "Done\n";
?>
--EXPECT--
-Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
+Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
Done
diff --git a/ext/spl/tests/iterator_042.phpt b/ext/spl/tests/iterator_042.phpt
index 2c14fc3d40..f768e47077 100644
--- a/ext/spl/tests/iterator_042.phpt
+++ b/ext/spl/tests/iterator_042.phpt
@@ -39,7 +39,7 @@ foreach($it as $k => $v)
?>
--EXPECTF--
-Error AppendIterator::append() expects parameter 1 to be Iterator, array given in %s on line %d
+Error AppendIterator::append() expects argument #1 ($iterator) to be of type Iterator, array given in %s on line %d
object(ArrayIterator)#%d (1) {
%s"storage"%s"ArrayIterator":private]=>
array(2) {
diff --git a/ext/spl/tests/iterator_044.phpt b/ext/spl/tests/iterator_044.phpt
index 89d8bef772..c62abb5c1a 100644
--- a/ext/spl/tests/iterator_044.phpt
+++ b/ext/spl/tests/iterator_044.phpt
@@ -83,8 +83,8 @@ NULL
===1===
object(stdClass)#%d (0) {
}
-CachingIterator::offsetExists() expects parameter 1 to be string, object given
-CachingIterator::offsetGet() expects parameter 1 to be string, object given
+CachingIterator::offsetExists() expects argument #1 ($index) to be of type string, object given
+CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given
===2===
object(MyFoo)#%d (0) {
}
@@ -124,8 +124,8 @@ int(0)
===1===
object(stdClass)#1 (0) {
}
-CachingIterator::offsetExists() expects parameter 1 to be string, object given
-CachingIterator::offsetGet() expects parameter 1 to be string, object given
+CachingIterator::offsetExists() expects argument #1 ($index) to be of type string, object given
+CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given
===2===
object(MyFoo)#2 (0) {
}
diff --git a/ext/spl/tests/iterator_count.phpt b/ext/spl/tests/iterator_count.phpt
index a115a7329c..3071f9b06c 100644
--- a/ext/spl/tests/iterator_count.phpt
+++ b/ext/spl/tests/iterator_count.phpt
@@ -13,7 +13,7 @@ iterator_count('1');
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: iterator_count() expects parameter 1 to be Traversable, string given in %s:%d
+Fatal error: Uncaught TypeError: iterator_count() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d
Stack trace:
#0 %s(%d): iterator_count('1')
#1 {main}
diff --git a/ext/spl/tests/iterator_to_array.phpt b/ext/spl/tests/iterator_to_array.phpt
index 9225f03c00..09dcf5d02f 100644
--- a/ext/spl/tests/iterator_to_array.phpt
+++ b/ext/spl/tests/iterator_to_array.phpt
@@ -13,7 +13,7 @@ iterator_to_array('test','test');
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: iterator_to_array() expects parameter 1 to be Traversable, string given in %s:%d
+Fatal error: Uncaught TypeError: iterator_to_array() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d
Stack trace:
#0 %s(%d): iterator_to_array('test', 'test')
#1 {main}
diff --git a/ext/spl/tests/recursive_tree_iterator_003.phpt b/ext/spl/tests/recursive_tree_iterator_003.phpt
index c87f942f0d..0f4fed97b3 100644
--- a/ext/spl/tests/recursive_tree_iterator_003.phpt
+++ b/ext/spl/tests/recursive_tree_iterator_003.phpt
@@ -9,4 +9,4 @@ try {
}
?>
--EXPECT--
-RecursiveCachingIterator::__construct() expects parameter 1 to be RecursiveIterator, object given
+RecursiveCachingIterator::__construct() expects argument #1 ($iterator) to be of type RecursiveIterator, object given
diff --git a/ext/spl/tests/spl_004.phpt b/ext/spl/tests/spl_004.phpt
index 570b4ae226..0b628d3ee1 100644
--- a/ext/spl/tests/spl_004.phpt
+++ b/ext/spl/tests/spl_004.phpt
@@ -84,6 +84,6 @@ int(5)
int(6)
int(4)
===ERRORS===
-iterator_apply() expects parameter 3 to be array, int given
-iterator_apply() expects parameter 2 to be a valid callback, function 'non_existing_function' not found or invalid function name
+iterator_apply() expects argument #3 ($args) to be of type array, int given
+iterator_apply() expects argument #2 ($function) to be a valid callback, function 'non_existing_function' not found or invalid function name
iterator_apply() expects at most 3 parameters, 4 given
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index ab10bc06e9..88821296fc 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -353,7 +353,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */
option = PHP_STREAM_META_GROUP_NAME;
value = Z_STRVAL_P(group);
} else {
- zend_type_error("Parameter 2 should be string or int, %s given", zend_zval_type_name(group));
+ zend_type_error("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group));
RETURN_THROWS();
}
if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) {
@@ -382,7 +382,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */
RETURN_FALSE;
}
} else {
- zend_type_error("Parameter 2 should be string or int, %s given", zend_zval_type_name(group));
+ zend_type_error("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group));
RETURN_THROWS();
}
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 6fb9683c5a..bd68a6c08b 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1276,7 +1276,7 @@ PHP_FUNCTION(implode)
if (pieces == NULL) {
if (arg1_array == NULL) {
- zend_type_error("Argument must be an array");
+ zend_type_error("%s() expects argument #1 ($pieces) to be of type array, string given", get_active_function_name());
RETURN_THROWS();
}
@@ -1284,7 +1284,7 @@ PHP_FUNCTION(implode)
pieces = arg1_array;
} else {
if (arg1_str == NULL) {
- zend_type_error("The first argument must be a string");
+ zend_type_error("%s() expects argument #1 ($glue) to be of type string, array given", get_active_function_name());
RETURN_THROWS();
}
}
diff --git a/ext/standard/tests/array/array_change_key_case_variation.phpt b/ext/standard/tests/array/array_change_key_case_variation.phpt
index f2b185523f..e8b8fe174d 100644
--- a/ext/standard/tests/array/array_change_key_case_variation.phpt
+++ b/ext/standard/tests/array/array_change_key_case_variation.phpt
@@ -23,8 +23,8 @@ var_dump( array_change_key_case( array("ONE" => 1, "one" => 1, "One" => 2), 5 )
echo "end\n";
?>
---EXPECTF--
-array_change_key_case() expects parameter 2 to be int, string given
+--EXPECT--
+array_change_key_case() expects argument #2 ($case) to be of type int, string given
array(4) {
["ONE"]=>
int(1)
diff --git a/ext/standard/tests/array/array_diff_uassoc_error.phpt b/ext/standard/tests/array/array_diff_uassoc_error.phpt
index 33fa0e7bea..7cd0c1a1fa 100644
--- a/ext/standard/tests/array/array_diff_uassoc_error.phpt
+++ b/ext/standard/tests/array/array_diff_uassoc_error.phpt
@@ -51,8 +51,8 @@ try {
*** Testing array_diff_uassoc() : error conditions ***
-- Testing array_diff_uassoc() function with more than expected no. of arguments --
-array_diff_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members
-array_diff_uassoc() expects parameter 6 to be a valid callback, array must have exactly two members
+array_diff_uassoc() expects argument #4 to be a valid callback, array must have exactly two members
+array_diff_uassoc() expects argument #6 to be a valid callback, array must have exactly two members
-- Testing array_diff_uassoc() function with less than expected no. of arguments --
At least 3 parameters are required, 2 given
diff --git a/ext/standard/tests/array/array_diff_ukey_variation10.phpt b/ext/standard/tests/array/array_diff_ukey_variation10.phpt
index b2304bb446..a3be16c21c 100644
--- a/ext/standard/tests/array/array_diff_ukey_variation10.phpt
+++ b/ext/standard/tests/array/array_diff_ukey_variation10.phpt
@@ -30,5 +30,5 @@ try {
?>
--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
-array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name
-array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name
+array_diff_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
+array_diff_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
diff --git a/ext/standard/tests/array/array_filter_variation9.phpt b/ext/standard/tests/array/array_filter_variation9.phpt
index 240f5c10fa..cedaf840df 100644
--- a/ext/standard/tests/array/array_filter_variation9.phpt
+++ b/ext/standard/tests/array/array_filter_variation9.phpt
@@ -37,7 +37,7 @@ try {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***
array(6) {
[0]=>
@@ -69,6 +69,6 @@ array(7) {
[6]=>
NULL
}
-array_filter() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name
-array_filter() expects parameter 2 to be a valid callback, function 'exit' not found or invalid function name
+array_filter() expects argument #2 ($callback) to be a valid callback, function 'echo' not found or invalid function name
+array_filter() expects argument #2 ($callback) to be a valid callback, function 'exit' not found or invalid function name
Done
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation8.phpt b/ext/standard/tests/array/array_intersect_ukey_variation8.phpt
index b83c3302b2..f277285cb6 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation8.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation8.phpt
@@ -30,5 +30,5 @@ try {
?>
--EXPECTF--
*** Testing array_intersect_ukey() : usage variation ***
-array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name
-array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name
+array_intersect_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
+array_intersect_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name
diff --git a/ext/standard/tests/array/array_key_exists.phpt b/ext/standard/tests/array/array_key_exists.phpt
index a436e7363e..0e6c6a5263 100644
--- a/ext/standard/tests/array/array_key_exists.phpt
+++ b/ext/standard/tests/array/array_key_exists.phpt
@@ -91,7 +91,7 @@ try {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing basic functionalities ***
-- Iteration 1 --
bool(true)
@@ -224,5 +224,5 @@ bool(true)
Illegal offset type
*** Testing operation on objects ***
-array_key_exists() expects parameter 2 to be array, object given
+array_key_exists() expects argument #2 ($array) to be of type array, object given
Done
diff --git a/ext/standard/tests/array/array_map_object1.phpt b/ext/standard/tests/array/array_map_object1.phpt
index c95395e04d..46fed27691 100644
--- a/ext/standard/tests/array/array_map_object1.phpt
+++ b/ext/standard/tests/array/array_map_object1.phpt
@@ -124,7 +124,7 @@ class InterClass implements myInterface
test(array('InterClass', 'square'), array(1, 2));
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : object functionality ***
-- simple class with public variable and method --
SimpleClass::square
@@ -137,15 +137,15 @@ array(2) {
-- simple class with private variable and method --
SimpleClassPri::add
-array_map() expects parameter 1 to be a valid callback, cannot access private method SimpleClassPri::add()
+array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method SimpleClassPri::add()
-- simple class with protected variable and method --
SimpleClassPro::mul
-array_map() expects parameter 1 to be a valid callback, cannot access protected method SimpleClassPro::mul()
+array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method SimpleClassPro::mul()
-- class without members --
EmptyClass
-array_map() expects parameter 1 to be a valid callback, array must have exactly two members
+array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
-- abstract class --
ChildClass::emptyFunction
@@ -178,9 +178,9 @@ array(2) {
int(4)
}
StaticClass::cube
-array_map() expects parameter 1 to be a valid callback, cannot access private method StaticClass::cube()
+array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method StaticClass::cube()
StaticClass::retVal
-array_map() expects parameter 1 to be a valid callback, cannot access protected method StaticClass::retVal()
+array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method StaticClass::retVal()
-- class implementing an interface --
InterClass::square
array(2) {
diff --git a/ext/standard/tests/array/array_map_object2.phpt b/ext/standard/tests/array/array_map_object2.phpt
index e5218ccbe4..de43ff2c93 100644
--- a/ext/standard/tests/array/array_map_object2.phpt
+++ b/ext/standard/tests/array/array_map_object2.phpt
@@ -41,10 +41,10 @@ try {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : with non-existent class and method ***
-- with non-existent class --
-array_map() expects parameter 1 to be a valid callback, class 'non-existent' not found
+array_map() expects argument #1 ($callback) to be a valid callback, class 'non-existent' not found
-- with existent class and non-existent method --
-array_map() expects parameter 1 to be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
+array_map() expects argument #1 ($callback) to be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
Done
diff --git a/ext/standard/tests/array/array_map_object3.phpt b/ext/standard/tests/array/array_map_object3.phpt
index 2f1536df5c..98f14789b9 100644
--- a/ext/standard/tests/array/array_map_object3.phpt
+++ b/ext/standard/tests/array/array_map_object3.phpt
@@ -69,7 +69,7 @@ try {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : class methods as callback function ***
-- accessing parent method from child class --
array(3) {
@@ -81,7 +81,7 @@ array(3) {
int(7)
}
-- accessing child method from parent class --
-array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
-- accessing parent method using child class object --
array(3) {
[0]=>
@@ -92,5 +92,5 @@ array(3) {
int(7)
}
-- accessing child method using parent class object --
-array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
Done
diff --git a/ext/standard/tests/array/array_map_variation12.phpt b/ext/standard/tests/array/array_map_variation12.phpt
index 67abde0108..4f1dba9c85 100644
--- a/ext/standard/tests/array/array_map_variation12.phpt
+++ b/ext/standard/tests/array/array_map_variation12.phpt
@@ -35,7 +35,7 @@ try {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : built-in function ***
-- with built-in function 'pow' and two parameters --
array(3) {
@@ -49,5 +49,5 @@ array(3) {
-- with built-in function 'pow' and one parameter --
pow() expects exactly 2 parameters, 1 given
-- with language construct --
-array_map() expects parameter 1 to be a valid callback, function 'echo' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name
Done
diff --git a/ext/standard/tests/array/array_map_variation14.phpt b/ext/standard/tests/array/array_map_variation14.phpt
index 2764cb7374..f0b931eddb 100644
--- a/ext/standard/tests/array/array_map_variation14.phpt
+++ b/ext/standard/tests/array/array_map_variation14.phpt
@@ -51,7 +51,7 @@ try {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : null value for 'callback' argument ***
-- with null --
array(2) {
@@ -123,7 +123,7 @@ array(2) {
int(2)
}
-- with empty string --
-array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
-- with empty array --
-array_map() expects parameter 1 to be a valid callback, array must have exactly two members
+array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
Done
diff --git a/ext/standard/tests/array/array_map_variation15.phpt b/ext/standard/tests/array/array_map_variation15.phpt
index f36d55bd5f..f352fabc71 100644
--- a/ext/standard/tests/array/array_map_variation15.phpt
+++ b/ext/standard/tests/array/array_map_variation15.phpt
@@ -28,5 +28,5 @@ echo "Done";
?>
--EXPECT--
*** Testing array_map() : non existent 'callback' function ***
-array_map() expects parameter 1 to be a valid callback, function 'non_existent' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'non_existent' not found or invalid function name
Done
diff --git a/ext/standard/tests/array/array_map_variation16.phpt b/ext/standard/tests/array/array_map_variation16.phpt
index 0c80337c76..b9d9b51b14 100644
--- a/ext/standard/tests/array/array_map_variation16.phpt
+++ b/ext/standard/tests/array/array_map_variation16.phpt
@@ -40,22 +40,22 @@ for($count = 0; $count < count($callback_names); $count++)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : non-permmited built-in functions ***
-- Iteration 1 --
-array_map() expects parameter 1 to be a valid callback, function 'echo' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name
-- Iteration 2 --
-array_map() expects parameter 1 to be a valid callback, function 'array' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'array' not found or invalid function name
-- Iteration 3 --
-array_map() expects parameter 1 to be a valid callback, function 'empty' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'empty' not found or invalid function name
-- Iteration 4 --
-array_map() expects parameter 1 to be a valid callback, function 'eval' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'eval' not found or invalid function name
-- Iteration 5 --
-array_map() expects parameter 1 to be a valid callback, function 'exit' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'exit' not found or invalid function name
-- Iteration 6 --
-array_map() expects parameter 1 to be a valid callback, function 'isset' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'isset' not found or invalid function name
-- Iteration 7 --
-array_map() expects parameter 1 to be a valid callback, function 'list' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'list' not found or invalid function name
-- Iteration 8 --
-array_map() expects parameter 1 to be a valid callback, function 'print' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function 'print' not found or invalid function name
Done
diff --git a/ext/standard/tests/array/array_map_variation17.phpt b/ext/standard/tests/array/array_map_variation17.phpt
index 4558dc999f..65268ac914 100644
--- a/ext/standard/tests/array/array_map_variation17.phpt
+++ b/ext/standard/tests/array/array_map_variation17.phpt
@@ -81,62 +81,62 @@ echo "Done";
*** Testing array_map() : unexpected values for 'callback' argument ***
-- Iteration 1 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 2 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 3 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 4 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 5 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 6 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 7 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 8 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 9 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 10 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 11 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 12 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 13 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 14 --
-array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
-- Iteration 15 --
-array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name
+array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
-- Iteration 16 --
-array_map() expects parameter 1 to be a valid callback, array must have exactly two members
+array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
-- Iteration 17 --
-array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
+array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
-- Iteration 18 --
-array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
+array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
-- Iteration 19 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
-- Iteration 20 --
-array_map() expects parameter 1 to be a valid callback, no array or string given
+array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
Done
diff --git a/ext/standard/tests/array/array_search_variation3.phpt b/ext/standard/tests/array/array_search_variation3.phpt
index 596c36f805..ad356ba01d 100644
--- a/ext/standard/tests/array/array_search_variation3.phpt
+++ b/ext/standard/tests/array/array_search_variation3.phpt
@@ -49,14 +49,14 @@ var_dump( array_search("one", $array_search_obj->array_var) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sub-arrays with array_search() ***
int(4)
string(5) "three"
int(5)
*** Testing objects with array_search() ***
-array_search() expects parameter 2 to be array, object given
-array_search() expects parameter 2 to be array, object given
+array_search() expects argument #2 ($haystack) to be of type array, object given
+array_search() expects argument #2 ($haystack) to be of type array, object given
int(1)
Done
diff --git a/ext/standard/tests/array/array_slice_variation1.phpt b/ext/standard/tests/array/array_slice_variation1.phpt
index 46f33b9503..270206a747 100644
--- a/ext/standard/tests/array/array_slice_variation1.phpt
+++ b/ext/standard/tests/array/array_slice_variation1.phpt
@@ -28,7 +28,7 @@ try {
var_dump($a);
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(1)
@@ -61,6 +61,6 @@ array(1) {
[2]=>
int(3)
}
-array_slice() expects parameter 3 to be int, string given
-array_slice() expects parameter 3 to be int, string given
+array_slice() expects argument #3 ($length) to be of type int, string given
+array_slice() expects argument #3 ($length) to be of type int, string given
string(3) "foo"
diff --git a/ext/standard/tests/array/array_walk_objects.phpt b/ext/standard/tests/array/array_walk_objects.phpt
index a4a517746d..7800a9f6f5 100644
--- a/ext/standard/tests/array/array_walk_objects.phpt
+++ b/ext/standard/tests/array/array_walk_objects.phpt
@@ -43,5 +43,5 @@ string(10) "%r\0%r*%r\0%rvar_pro"
string(14) "test_protected"
string(7) "var_pub"
string(11) "test_public"
-array_walk() expects parameter 1 to be array, string given
+array_walk() expects argument #1 ($input) to be of type array, string given
Done
diff --git a/ext/standard/tests/array/array_walk_rec_objects.phpt b/ext/standard/tests/array/array_walk_rec_objects.phpt
index 51aeae11c9..0d0cdcbdc8 100644
--- a/ext/standard/tests/array/array_walk_rec_objects.phpt
+++ b/ext/standard/tests/array/array_walk_rec_objects.phpt
@@ -43,5 +43,5 @@ string(10) "%r\0%r*%r\0%rvar_pro"
string(14) "test_protected"
string(7) "var_pub"
string(11) "test_public"
-array_walk_recursive() expects parameter 1 to be array, string given
+array_walk_recursive() expects argument #1 ($input) to be of type array, string given
Done
diff --git a/ext/standard/tests/array/array_walk_recursive_variation8.phpt b/ext/standard/tests/array/array_walk_recursive_variation8.phpt
index 51eba1e0e0..2d80cf9e24 100644
--- a/ext/standard/tests/array/array_walk_recursive_variation8.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_variation8.phpt
@@ -33,12 +33,12 @@ try {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : built-in function as callback ***
-- With 'pow' built-in function --
bool(true)
-- With 'min' built-in function --
bool(true)
-- With 'echo' language construct --
-array_walk_recursive() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name
+array_walk_recursive() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name
Done
diff --git a/ext/standard/tests/array/array_walk_variation8.phpt b/ext/standard/tests/array/array_walk_variation8.phpt
index baa5f3914b..f95bc43e9d 100644
--- a/ext/standard/tests/array/array_walk_variation8.phpt
+++ b/ext/standard/tests/array/array_walk_variation8.phpt
@@ -33,12 +33,12 @@ try {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : built-in function as callback ***
-- With 'pow' built-in function --
bool(true)
-- With 'min' built-in function --
bool(true)
-- With 'echo' language construct --
-array_walk() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name
+array_walk() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name
Done
diff --git a/ext/standard/tests/array/bug40191.phpt b/ext/standard/tests/array/bug40191.phpt
index b94e709364..a87c5098ab 100644
--- a/ext/standard/tests/array/bug40191.phpt
+++ b/ext/standard/tests/array/bug40191.phpt
@@ -17,5 +17,5 @@ try {
echo "Done\n";
?>
--EXPECT--
-array_unique() expects parameter 1 to be array, object given
+array_unique() expects argument #1 ($arg) to be of type array, object given
Done
diff --git a/ext/standard/tests/array/in_array_variation3.phpt b/ext/standard/tests/array/in_array_variation3.phpt
index 0b58990041..09549d94c3 100644
--- a/ext/standard/tests/array/in_array_variation3.phpt
+++ b/ext/standard/tests/array/in_array_variation3.phpt
@@ -52,14 +52,14 @@ var_dump( in_array("one", $in_array_obj->array_var) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sub-arrays with in_array() ***
bool(true)
bool(true)
bool(true)
*** Testing objects with in_array() ***
-in_array() expects parameter 2 to be array, object given
-in_array() expects parameter 2 to be array, object given
+in_array() expects argument #2 ($haystack) to be of type array, object given
+in_array() expects argument #2 ($haystack) to be of type array, object given
bool(true)
Done
diff --git a/ext/standard/tests/array/range_errors.phpt b/ext/standard/tests/array/range_errors.phpt
index 51e9e50a55..73a02697e7 100644
--- a/ext/standard/tests/array/range_errors.phpt
+++ b/ext/standard/tests/array/range_errors.phpt
@@ -105,15 +105,15 @@ Step exceeds the specified range
-- Testing other conditions --
Step exceeds the specified range
-range() expects parameter 3 to be int or float, string given
+range() expects argument #3 ($step) to be of type int|float, string given
Step exceeds the specified range
Notice: A non well formed numeric value encountered in %s on line %d
Step exceeds the specified range
-- Testing Invalid steps --
-range() expects parameter 3 to be int or float, string given
+range() expects argument #3 ($step) to be of type int|float, string given
Step exceeds the specified range
Step exceeds the specified range
-range() expects parameter 3 to be int or float, string given
-range() expects parameter 3 to be int or float, string given
+range() expects argument #3 ($step) to be of type int|float, string given
+range() expects argument #3 ($step) to be of type int|float, string given
diff --git a/ext/standard/tests/array/range_variation.phpt b/ext/standard/tests/array/range_variation.phpt
index 3de5f6188f..a8c3fc1e0d 100644
--- a/ext/standard/tests/array/range_variation.phpt
+++ b/ext/standard/tests/array/range_variation.phpt
@@ -615,5 +615,5 @@ array(5) {
[4]=>
int(5)
}
-range() expects parameter 3 to be int or float, array given
+range() expects argument #3 ($step) to be of type int|float, array given
Done
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 87a9eac6c3..b7ae000c01 100644
--- a/ext/standard/tests/class_object/get_class_variation_001.phpt
+++ b/ext/standard/tests/class_object/get_class_variation_001.phpt
@@ -85,80 +85,80 @@ Warning: Undefined variable: undefined_var in %s on line %d
Warning: Undefined variable: unset_var in %s on line %d
Arg value: 0 (type: integer)
-get_class() expects parameter 1 to be object, int given
+get_class() expects argument #1 ($object) to be of type object, int given
Arg value: 1 (type: integer)
-get_class() expects parameter 1 to be object, int given
+get_class() expects argument #1 ($object) to be of type object, int given
Arg value: 12345 (type: integer)
-get_class() expects parameter 1 to be object, int given
+get_class() expects argument #1 ($object) to be of type object, int given
Arg value: -2345 (type: integer)
-get_class() expects parameter 1 to be object, int given
+get_class() expects argument #1 ($object) to be of type object, int given
Arg value: 10.5 (type: double)
-get_class() expects parameter 1 to be object, float given
+get_class() expects argument #1 ($object) to be of type object, float given
Arg value: -10.5 (type: double)
-get_class() expects parameter 1 to be object, float given
+get_class() expects argument #1 ($object) to be of type object, float given
Arg value: 101234567000 (type: double)
-get_class() expects parameter 1 to be object, float given
+get_class() expects argument #1 ($object) to be of type object, float given
Arg value: 1.07654321E-9 (type: double)
-get_class() expects parameter 1 to be object, float given
+get_class() expects argument #1 ($object) to be of type object, float given
Arg value: 0.5 (type: double)
-get_class() expects parameter 1 to be object, float given
+get_class() expects argument #1 ($object) to be of type object, float given
Arg value: Array (type: array)
-get_class() expects parameter 1 to be object, array given
+get_class() expects argument #1 ($object) to be of type object, array given
Arg value: Array (type: array)
-get_class() expects parameter 1 to be object, array given
+get_class() expects argument #1 ($object) to be of type object, array given
Arg value: Array (type: array)
-get_class() expects parameter 1 to be object, array given
+get_class() expects argument #1 ($object) to be of type object, array given
Arg value: Array (type: array)
-get_class() expects parameter 1 to be object, array given
+get_class() expects argument #1 ($object) to be of type object, array given
Arg value: Array (type: array)
-get_class() expects parameter 1 to be object, array given
+get_class() expects argument #1 ($object) to be of type object, array given
Arg value: (type: NULL)
-get_class() expects parameter 1 to be object, null given
+get_class() expects argument #1 ($object) to be of type object, null given
Arg value: (type: NULL)
-get_class() expects parameter 1 to be object, null given
+get_class() expects argument #1 ($object) to be of type object, null given
Arg value: 1 (type: boolean)
-get_class() expects parameter 1 to be object, bool given
+get_class() expects argument #1 ($object) to be of type object, bool given
Arg value: (type: boolean)
-get_class() expects parameter 1 to be object, bool given
+get_class() expects argument #1 ($object) to be of type object, bool given
Arg value: 1 (type: boolean)
-get_class() expects parameter 1 to be object, bool given
+get_class() expects argument #1 ($object) to be of type object, bool given
Arg value: (type: boolean)
-get_class() expects parameter 1 to be object, bool given
+get_class() expects argument #1 ($object) to be of type object, bool given
Arg value: (type: string)
-get_class() expects parameter 1 to be object, string given
+get_class() expects argument #1 ($object) to be of type object, string given
Arg value: (type: string)
-get_class() expects parameter 1 to be object, string given
+get_class() expects argument #1 ($object) to be of type object, string given
Arg value: string (type: string)
-get_class() expects parameter 1 to be object, string given
+get_class() expects argument #1 ($object) to be of type object, string given
Arg value: string (type: string)
-get_class() expects parameter 1 to be object, string given
+get_class() expects argument #1 ($object) to be of type object, string given
Arg value: (type: NULL)
-get_class() expects parameter 1 to be object, null given
+get_class() expects argument #1 ($object) to be of type object, null given
Arg value: (type: NULL)
-get_class() expects parameter 1 to be object, null given
+get_class() expects argument #1 ($object) to be of type object, null given
Done
diff --git a/ext/standard/tests/file/006_variation2.phpt b/ext/standard/tests/file/006_variation2.phpt
index a5c95ab1da..18d63b8a44 100644
--- a/ext/standard/tests/file/006_variation2.phpt
+++ b/ext/standard/tests/file/006_variation2.phpt
@@ -86,7 +86,7 @@ chmod(__DIR__."/006_variation2", 0777);
unlink(__DIR__."/006_variation2.tmp");
rmdir(__DIR__."/006_variation2");
?>
---EXPECTF--
+--EXPECT--
*** Testing fileperms() & chmod() : usage variations ***
*** Testing fileperms(), chmod() with miscellaneous permissions ***
@@ -146,15 +146,15 @@ bool(true)
bool(true)
43567
-- Iteration 12 --
-chmod() expects parameter 2 to be int, string given
-chmod() expects parameter 2 to be int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
-- Iteration 13 --
-chmod() expects parameter 2 to be int, string given
-chmod() expects parameter 2 to be int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
-- Iteration 14 --
-chmod() expects parameter 2 to be int, string given
-chmod() expects parameter 2 to be int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
-- Iteration 15 --
-chmod() expects parameter 2 to be int, string given
-chmod() expects parameter 2 to be int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
+chmod() expects argument #2 ($mode) to be of type int, string given
*** Done ***
diff --git a/ext/standard/tests/file/bug39863.phpt b/ext/standard/tests/file/bug39863.phpt
index 174e349b15..a4eb48def3 100644
--- a/ext/standard/tests/file/bug39863.phpt
+++ b/ext/standard/tests/file/bug39863.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-file_exists() expects parameter 1 to be a valid path, string given
+file_exists() expects argument #1 ($filename) to be a valid path, string given
diff --git a/ext/standard/tests/file/chgrp.phpt b/ext/standard/tests/file/chgrp.phpt
index 9003979a75..9950c9e3fc 100644
--- a/ext/standard/tests/file/chgrp.phpt
+++ b/ext/standard/tests/file/chgrp.phpt
@@ -13,5 +13,5 @@ try {
echo $exception->getMessage() . "\n";
}
?>
---EXPECTF--
-Parameter 2 should be string or int, null given
+--EXPECT--
+chgrp() expects argument #2 ($group) to be of type string|int, null given
diff --git a/ext/standard/tests/file/disk_free_space_variation.phpt b/ext/standard/tests/file/disk_free_space_variation.phpt
index d47850d898..9e8d0cd180 100644
--- a/ext/standard/tests/file/disk_free_space_variation.phpt
+++ b/ext/standard/tests/file/disk_free_space_variation.phpt
@@ -110,19 +110,19 @@ float(%d)
float(%d)
-- Iteration 9 --
-disk_free_space() expects parameter 1 to be a valid path, string given
-diskfreespace() expects parameter 1 to be a valid path, string given
+disk_free_space() expects argument #1 ($directory) to be a valid path, string given
+diskfreespace() expects argument #1 ($directory) to be a valid path, string given
-- Iteration 10 --
-disk_free_space() expects parameter 1 to be a valid path, string given
-diskfreespace() expects parameter 1 to be a valid path, string given
+disk_free_space() expects argument #1 ($directory) to be a valid path, string given
+diskfreespace() expects argument #1 ($directory) to be a valid path, string given
-- Iteration 11 --
-disk_free_space() expects parameter 1 to be a valid path, string given
-diskfreespace() expects parameter 1 to be a valid path, string given
+disk_free_space() expects argument #1 ($directory) to be a valid path, string given
+diskfreespace() expects argument #1 ($directory) to be a valid path, string given
-- Iteration 12 --
-disk_free_space() expects parameter 1 to be a valid path, string given
-diskfreespace() expects parameter 1 to be a valid path, string given
+disk_free_space() expects argument #1 ($directory) to be a valid path, string given
+diskfreespace() expects argument #1 ($directory) to be a valid path, string given
--- Done ---
diff --git a/ext/standard/tests/file/disk_total_space_variation.phpt b/ext/standard/tests/file/disk_total_space_variation.phpt
index e35981f278..b5f5119c03 100644
--- a/ext/standard/tests/file/disk_total_space_variation.phpt
+++ b/ext/standard/tests/file/disk_total_space_variation.phpt
@@ -102,16 +102,16 @@ float(%d)
float(%d)
-- Iteration 9 --
-disk_total_space() expects parameter 1 to be a valid path, string given
+disk_total_space() expects argument #1 ($directory) to be a valid path, string given
-- Iteration 10 --
-disk_total_space() expects parameter 1 to be a valid path, string given
+disk_total_space() expects argument #1 ($directory) to be a valid path, string given
-- Iteration 11 --
-disk_total_space() expects parameter 1 to be a valid path, string given
+disk_total_space() expects argument #1 ($directory) to be a valid path, string given
-- Iteration 12 --
-disk_total_space() expects parameter 1 to be a valid path, string given
+disk_total_space() expects argument #1 ($directory) to be a valid path, string given
*** Testing with Binary Input ***
float(%s)
diff --git a/ext/standard/tests/file/file_get_contents_variation8-win32.phpt b/ext/standard/tests/file/file_get_contents_variation8-win32.phpt
index 1edd46a9cb..878fa1a7c5 100644
--- a/ext/standard/tests/file/file_get_contents_variation8-win32.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation8-win32.phpt
@@ -82,10 +82,10 @@ Warning: file_get_contents( ): Failed to open stream: Permission denied in %s on
bool(false)
-- Filename: \0 --
-file_get_contents() expects parameter 1 to be a valid path, string given
+file_get_contents() expects argument #1 ($filename) to be a valid path, string given
-- Filename: array() --
-file_get_contents() expects parameter 1 to be a valid path, array given
+file_get_contents() expects argument #1 ($filename) to be a valid path, array given
-- Filename: /no/such/file/dir --
diff --git a/ext/standard/tests/file/file_get_contents_variation8.phpt b/ext/standard/tests/file/file_get_contents_variation8.phpt
index 9277106992..c2bb209461 100644
--- a/ext/standard/tests/file/file_get_contents_variation8.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation8.phpt
@@ -75,9 +75,9 @@ bool(false)
Warning: file_get_contents( ): Failed to open stream: No such file or directory in %s on line %d
bool(false)
-- Iteration 6 --
-file_get_contents() expects parameter 1 to be a valid path, string given
+file_get_contents() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 7 --
-file_get_contents() expects parameter 1 to be a valid path, array given
+file_get_contents() expects argument #1 ($filename) to be a valid path, array given
-- Iteration 8 --
Warning: file_get_contents(/no/such/file/dir): Failed to open stream: No such file or directory in %s on line %d
diff --git a/ext/standard/tests/file/file_put_contents_variation8-win32.phpt b/ext/standard/tests/file/file_put_contents_variation8-win32.phpt
index 71e672e8e9..310d6abb86 100644
--- a/ext/standard/tests/file/file_put_contents_variation8-win32.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation8-win32.phpt
@@ -82,10 +82,10 @@ Warning: file_put_contents( ): Failed to open stream: Permission denied in %s on
Failed to write data to: " "
-- Filename: \0 --
-file_put_contents() expects parameter 1 to be a valid path, string given
+file_put_contents() expects argument #1 ($filename) to be a valid path, string given
-- Filename: array() --
-file_put_contents() expects parameter 1 to be a valid path, array given
+file_put_contents() expects argument #1 ($filename) to be a valid path, array given
-- Filename: /no/such/file/dir --
diff --git a/ext/standard/tests/file/file_put_contents_variation8.phpt b/ext/standard/tests/file/file_put_contents_variation8.phpt
index 7c72ca8516..5b8c156a94 100644
--- a/ext/standard/tests/file/file_put_contents_variation8.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation8.phpt
@@ -81,13 +81,13 @@ Failed to write data to:
-- Iteration 5 --
9 bytes written to:
-- Iteration 6 --
-file_put_contents() expects parameter 1 to be a valid path, string given
+file_put_contents() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 7 --
-file_put_contents() expects parameter 1 to be a valid path, array given
+file_put_contents() expects argument #1 ($filename) to be a valid path, array given
-- Iteration 8 --
Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d
-Failed to write data to: %sdir
+Failed to write data to: %sir
-- Iteration 9 --
Warning: file_put_contents(%sphp): Failed to open stream: %s in %s on line %d
diff --git a/ext/standard/tests/file/filegroup_variation3.phpt b/ext/standard/tests/file/filegroup_variation3.phpt
index 274f12bb70..aff47ef1c9 100644
--- a/ext/standard/tests/file/filegroup_variation3.phpt
+++ b/ext/standard/tests/file/filegroup_variation3.phpt
@@ -78,8 +78,8 @@ bool(false)
Warning: filegroup(): stat failed for %s/filegroup_variation3/filegroup*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-filegroup() expects parameter 1 to be a valid path, string given
+filegroup() expects argument #1 ($filename) to be a valid path, string given
- Iteration 8 -
-filegroup() expects parameter 1 to be a valid path, string given
+filegroup() expects argument #1 ($filename) to be a valid path, string given
*** Done ***
diff --git a/ext/standard/tests/file/fileinode_variation3.phpt b/ext/standard/tests/file/fileinode_variation3.phpt
index 16f67b0676..b8ed3962df 100644
--- a/ext/standard/tests/file/fileinode_variation3.phpt
+++ b/ext/standard/tests/file/fileinode_variation3.phpt
@@ -79,8 +79,8 @@ bool(false)
Warning: fileinode(): stat failed for %s/fileinode_variation3/fileinode*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-fileinode() expects parameter 1 to be a valid path, string given
+fileinode() expects argument #1 ($filename) to be a valid path, string given
- Iteration 8 -
-fileinode() expects parameter 1 to be a valid path, string given
+fileinode() expects argument #1 ($filename) to be a valid path, string given
*** Done ***
diff --git a/ext/standard/tests/file/fileowner_variation3.phpt b/ext/standard/tests/file/fileowner_variation3.phpt
index 01d2da2445..8768f9d69b 100644
--- a/ext/standard/tests/file/fileowner_variation3.phpt
+++ b/ext/standard/tests/file/fileowner_variation3.phpt
@@ -79,8 +79,8 @@ bool(false)
Warning: fileowner(): stat failed for %s/fileowner_variation3/fileowner*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-fileowner() expects parameter 1 to be a valid path, string given
+fileowner() expects argument #1 ($filename) to be a valid path, string given
- Iteration 8 -
-fileowner() expects parameter 1 to be a valid path, string given
+fileowner() expects argument #1 ($filename) to be a valid path, string given
*** Done ***
diff --git a/ext/standard/tests/file/fileperms_variation3.phpt b/ext/standard/tests/file/fileperms_variation3.phpt
index 1588ee67fe..e58594e7d1 100644
--- a/ext/standard/tests/file/fileperms_variation3.phpt
+++ b/ext/standard/tests/file/fileperms_variation3.phpt
@@ -78,8 +78,8 @@ bool(false)
Warning: fileperms(): stat failed for %s/fileperms_variation3/fileperms*.tmp in %s on line %d
bool(false)
- Iteration 7 -
-fileperms() expects parameter 1 to be a valid path, string given
+fileperms() expects argument #1 ($filename) to be a valid path, string given
- Iteration 8 -
-fileperms() expects parameter 1 to be a valid path, string given
+fileperms() expects argument #1 ($filename) to be a valid path, string given
*** Done ***
diff --git a/ext/standard/tests/file/flock_error.phpt b/ext/standard/tests/file/flock_error.phpt
index ced25b2e71..9eb5958dbb 100644
--- a/ext/standard/tests/file/flock_error.phpt
+++ b/ext/standard/tests/file/flock_error.phpt
@@ -65,13 +65,13 @@ Illegal operation argument
--- Iteration 3 ---
Illegal operation argument
--- Iteration 4 ---
-flock() expects parameter 2 to be int, array given
+flock() expects argument #2 ($operation) to be of type int, array given
--- Iteration 5 ---
-flock() expects parameter 2 to be int, array given
+flock() expects argument #2 ($operation) to be of type int, array given
--- Iteration 6 ---
-flock() expects parameter 2 to be int, string given
+flock() expects argument #2 ($operation) to be of type int, string given
--- Iteration 7 ---
-flock() expects parameter 2 to be int, string given
+flock() expects argument #2 ($operation) to be of type int, string given
--- Iteration 8 ---
-flock() expects parameter 2 to be int, string given
+flock() expects argument #2 ($operation) to be of type int, string given
flock(): supplied resource is not a valid stream resource
diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt
index 4318a844e8..32bb6b32a6 100644
--- a/ext/standard/tests/file/fnmatch_variation.phpt
+++ b/ext/standard/tests/file/fnmatch_variation.phpt
@@ -191,9 +191,9 @@ bool(false)
-- Iteration 22 --
bool(false)
-- Iteration 23 --
-fnmatch() expects parameter 1 to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 24 --
-fnmatch() expects parameter 1 to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 25 --
bool(false)
-- Iteration 26 --
@@ -267,44 +267,44 @@ bool(true)
--- With Strings ---
-- Iteration 0 --
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(true)
-- Iteration 1 --
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 2 --
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(true)
-- Iteration 3 --
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 4 --
bool(false)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(true)
bool(false)
-- Iteration 5 --
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(true)
@@ -405,42 +405,42 @@ bool(true)
bool(true)
bool(true)
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(false)
-- Iteration 1 --
bool(true)
bool(true)
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(false)
-- Iteration 2 --
bool(true)
bool(true)
bool(true)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(false)
-- Iteration 3 --
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
-fnmatch() expects parameter 1 to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 4 --
bool(false)
bool(false)
bool(false)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(true)
bool(false)
-- Iteration 5 --
bool(false)
bool(false)
bool(false)
-fnmatch() expects parameter 2 to be a valid path, string given
+fnmatch() expects argument #2 ($filename) to be a valid path, string given
bool(false)
bool(true)
diff --git a/ext/standard/tests/file/fopen_variation10-win32.phpt b/ext/standard/tests/file/fopen_variation10-win32.phpt
index 97e2d8a6fb..234022dd6b 100644
--- a/ext/standard/tests/file/fopen_variation10-win32.phpt
+++ b/ext/standard/tests/file/fopen_variation10-win32.phpt
@@ -97,21 +97,21 @@ file in root
Warning: fopen(c\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--\--
Warning: fopen(\\fopen_variation10.tmp): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--/--
Warning: fopen(/\fopen_variation10.tmp): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--c:fopen10.tmpdirTwo--
file in fopen10.tmpdirTwo
@@ -121,7 +121,7 @@ file in fopen10.tmpdirTwo
Warning: fopen(c:adir\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--c:\/--
file in root
@@ -143,4 +143,4 @@ file in fopen10.tmpDir
Warning: fopen(/sortout\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/standard/tests/file/fopen_variation11-win32.phpt b/ext/standard/tests/file/fopen_variation11-win32.phpt
index a1d4c4c4e7..61879edf76 100644
--- a/ext/standard/tests/file/fopen_variation11-win32.phpt
+++ b/ext/standard/tests/file/fopen_variation11-win32.phpt
@@ -95,21 +95,21 @@ file in root
Warning: fopen(c\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--\--
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--/--
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: Invalid argument in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--c:fopen11.tmpdirTwo--
file in fopen11.tmpdirTwo
@@ -119,7 +119,7 @@ file in fopen11.tmpdirTwo
Warning: fopen(c:adir\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
--c:\/--
file in root
@@ -141,4 +141,4 @@ file in fopen11.tmpDir
Warning: fopen(/sortout\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
file not opened for read
-Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d
+Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d
diff --git a/ext/standard/tests/file/glob_variation-win32-mb.phpt b/ext/standard/tests/file/glob_variation-win32-mb.phpt
index 2ced6fd355..814f18a71d 100644
--- a/ext/standard/tests/file/glob_variation-win32-mb.phpt
+++ b/ext/standard/tests/file/glob_variation-win32-mb.phpt
@@ -334,7 +334,7 @@ array(0) {
}
-- Iteration 8 --
-glob() expects parameter 1 to be a valid path, string given
+glob() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 9 --
array(0) {
@@ -437,7 +437,7 @@ array(1) {
array(0) {
}
-- Iteration 8 --
-glob() expects parameter 1 to be a valid path, string given
+glob() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 9 --
array(0) {
}
diff --git a/ext/standard/tests/file/glob_variation-win32.phpt b/ext/standard/tests/file/glob_variation-win32.phpt
index 32d56e8762..966d2b28e0 100644
--- a/ext/standard/tests/file/glob_variation-win32.phpt
+++ b/ext/standard/tests/file/glob_variation-win32.phpt
@@ -333,7 +333,7 @@ array(0) {
}
-- Iteration 8 --
-glob() expects parameter 1 to be a valid path, string given
+glob() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 9 --
array(0) {
@@ -436,7 +436,7 @@ array(1) {
array(0) {
}
-- Iteration 8 --
-glob() expects parameter 1 to be a valid path, string given
+glob() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 9 --
array(0) {
}
diff --git a/ext/standard/tests/file/glob_variation.phpt b/ext/standard/tests/file/glob_variation.phpt
index eb5aff0cf4..655b3efe78 100644
--- a/ext/standard/tests/file/glob_variation.phpt
+++ b/ext/standard/tests/file/glob_variation.phpt
@@ -336,7 +336,7 @@ array(0) {
}
-- Iteration 8 --
-glob() expects parameter 1 to be a valid path, string given
+glob() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 9 --
array(0) {
@@ -439,7 +439,7 @@ array(1) {
array(0) {
}
-- Iteration 8 --
-glob() expects parameter 1 to be a valid path, string given
+glob() expects argument #1 ($pattern) to be a valid path, string given
-- Iteration 9 --
array(0) {
}
diff --git a/ext/standard/tests/file/is_dir_variation4.phpt b/ext/standard/tests/file/is_dir_variation4.phpt
index 8d4838524e..f527974d90 100644
--- a/ext/standard/tests/file/is_dir_variation4.phpt
+++ b/ext/standard/tests/file/is_dir_variation4.phpt
@@ -54,7 +54,7 @@ $file_path = __DIR__;
$dir_name = $file_path."/is_dir_variation4";
rmdir($dir_name);
?>
---EXPECTF--
+--EXPECT--
*** Testing is_dir() with different notations of dir names ***
-- Iteration 1 --
bool(true)
@@ -81,9 +81,9 @@ bool(true)
bool(false)
-- Iteration 9 --
-is_dir() expects parameter 1 to be a valid path, string given
+is_dir() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 10 --
-is_dir() expects parameter 1 to be a valid path, string given
+is_dir() expects argument #1 ($filename) to be a valid path, string given
*** Done ***
diff --git a/ext/standard/tests/file/is_executable_variation1.phpt b/ext/standard/tests/file/is_executable_variation1.phpt
index 5c8193b44d..9dadbd6b0a 100644
--- a/ext/standard/tests/file/is_executable_variation1.phpt
+++ b/ext/standard/tests/file/is_executable_variation1.phpt
@@ -67,7 +67,7 @@ echo "Done\n";
unlink(__DIR__."/is_executable_variation1/bar.tmp");
rmdir(__DIR__."/is_executable_variation1/");
?>
---EXPECTF--
+--EXPECT--
*** Testing is_executable(): usage variations ***
-- Iteration 1 --
bool(false)
@@ -80,9 +80,9 @@ bool(false)
-- Iteration 5 --
bool(false)
-- Iteration 6 --
-is_executable() expects parameter 1 to be a valid path, string given
+is_executable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 7 --
-is_executable() expects parameter 1 to be a valid path, string given
+is_executable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 8 --
bool(false)
-- Iteration 9 --
diff --git a/ext/standard/tests/file/is_file_variation4.phpt b/ext/standard/tests/file/is_file_variation4.phpt
index e67180c086..5651c5fc02 100644
--- a/ext/standard/tests/file/is_file_variation4.phpt
+++ b/ext/standard/tests/file/is_file_variation4.phpt
@@ -56,7 +56,7 @@ $dir_name = $file_path."/is_file_variation4";
unlink($dir_name."/is_file_variation4.tmp");
rmdir($dir_name);
?>
---EXPECTF--
+--EXPECT--
*** Testing is_file() with different notations of file names ***
- Iteration 1 -
bool(true)
@@ -71,8 +71,8 @@ bool(false)
- Iteration 6 -
bool(false)
- Iteration 7 -
-is_file() expects parameter 1 to be a valid path, string given
+is_file() expects argument #1 ($filename) to be a valid path, string given
- Iteration 8 -
-is_file() expects parameter 1 to be a valid path, string given
+is_file() expects argument #1 ($filename) to be a valid path, string given
*** Done ***
diff --git a/ext/standard/tests/file/is_readable_variation1.phpt b/ext/standard/tests/file/is_readable_variation1.phpt
index ab2e591ad5..102f9b177c 100644
--- a/ext/standard/tests/file/is_readable_variation1.phpt
+++ b/ext/standard/tests/file/is_readable_variation1.phpt
@@ -81,11 +81,11 @@ bool(false)
-- Iteration 6 --
bool(false)
-- Iteration 7 --
-is_readable() expects parameter 1 to be a valid path, string given
+is_readable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 8 --
-is_readable() expects parameter 1 to be a valid path, string given
+is_readable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 9 --
-is_readable() expects parameter 1 to be a valid path, string given
+is_readable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 10 --
bool(true)
-- Iteration 11 --
diff --git a/ext/standard/tests/file/is_writable_variation1.phpt b/ext/standard/tests/file/is_writable_variation1.phpt
index 45ef1524b6..53090a9f80 100644
--- a/ext/standard/tests/file/is_writable_variation1.phpt
+++ b/ext/standard/tests/file/is_writable_variation1.phpt
@@ -92,14 +92,14 @@ bool(false)
bool(false)
bool(false)
-- Iteration 7 --
-is_writable() expects parameter 1 to be a valid path, string given
-is_writeable() expects parameter 1 to be a valid path, string given
+is_writable() expects argument #1 ($filename) to be a valid path, string given
+is_writeable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 8 --
-is_writable() expects parameter 1 to be a valid path, string given
-is_writeable() expects parameter 1 to be a valid path, string given
+is_writable() expects argument #1 ($filename) to be a valid path, string given
+is_writeable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 9 --
-is_writable() expects parameter 1 to be a valid path, string given
-is_writeable() expects parameter 1 to be a valid path, string given
+is_writable() expects argument #1 ($filename) to be a valid path, string given
+is_writeable() expects argument #1 ($filename) to be a valid path, string given
-- Iteration 10 --
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/mkdir_rmdir_variation2.phpt b/ext/standard/tests/file/mkdir_rmdir_variation2.phpt
index bd6a7c56a9..bcf83fb2bc 100644
--- a/ext/standard/tests/file/mkdir_rmdir_variation2.phpt
+++ b/ext/standard/tests/file/mkdir_rmdir_variation2.phpt
@@ -63,8 +63,8 @@ Warning: rmdir(%s/mkdir_variation2/): %s on line %d
bool(false)
*** Testing mkdir() and rmdir() for binary safe functionality ***
-mkdir() expects parameter 1 to be a valid path, string given
-rmdir() expects parameter 1 to be a valid path, string given
+mkdir() expects argument #1 ($pathname) to be a valid path, string given
+rmdir() expects argument #1 ($dirname) to be a valid path, string given
*** Testing mkdir() with miscellaneous input ***
bool(true)
diff --git a/ext/standard/tests/file/readfile_variation10-win32.phpt b/ext/standard/tests/file/readfile_variation10-win32.phpt
index c6c3f87a36..02fa1266fd 100644
--- a/ext/standard/tests/file/readfile_variation10-win32.phpt
+++ b/ext/standard/tests/file/readfile_variation10-win32.phpt
@@ -75,10 +75,10 @@ Warning: readfile(): Filename cannot be empty in %s on line %d
Warning: readfile( ): Failed to open stream: Permission denied in %s on line %d
-- Filename: \0 --
-readfile() expects parameter 1 to be a valid path, string given
+readfile() expects argument #1 ($filename) to be a valid path, string given
-- Filename: array() --
-readfile() expects parameter 1 to be a valid path, array given
+readfile() expects argument #1 ($filename) to be a valid path, array given
-- Filename: /no/such/file/dir --
diff --git a/ext/standard/tests/file/readfile_variation10.phpt b/ext/standard/tests/file/readfile_variation10.phpt
index fd501eaef5..f735ba5b58 100644
--- a/ext/standard/tests/file/readfile_variation10.phpt
+++ b/ext/standard/tests/file/readfile_variation10.phpt
Binary files differ
diff --git a/ext/standard/tests/file/stream_rfc2397_006.phpt b/ext/standard/tests/file/stream_rfc2397_006.phpt
index 2c8b8fd720..fd362a6ea0 100644
--- a/ext/standard/tests/file/stream_rfc2397_006.phpt
+++ b/ext/standard/tests/file/stream_rfc2397_006.phpt
@@ -23,8 +23,8 @@ foreach($streams as $stream)
?>
--EXPECTF--
-file_get_contents() expects parameter 1 to be a valid path, string given
-file_get_contents() expects parameter 1 to be a valid path, string given
+file_get_contents() expects argument #1 ($filename) to be a valid path, string given
+file_get_contents() expects argument #1 ($filename) to be a valid path, string given
Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): Failed to open stream: rfc2397: unable to decode in %sstream_rfc2397_006.php on line %d
bool(false)
diff --git a/ext/standard/tests/file/tempnam_variation3-win32.phpt b/ext/standard/tests/file/tempnam_variation3-win32.phpt
index 3311b0bc7c..1639cebe99 100644
--- a/ext/standard/tests/file/tempnam_variation3-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation3-win32.phpt
@@ -110,9 +110,9 @@ Notice: tempnam(): file created in the system's temporary directory in %stempnam
Failed, not created in the correct directory %s vs %s
0
-- Iteration 6 --
-tempnam() expects parameter 2 to be a valid path, string given
+tempnam() expects argument #2 ($prefix) to be a valid path, string given
-- Iteration 7 --
-tempnam() expects parameter 2 to be a valid path, array given
+tempnam() expects argument #2 ($prefix) to be a valid path, array given
-- Iteration 8 --
OK
-- Iteration 9 --
diff --git a/ext/standard/tests/file/tempnam_variation3.phpt b/ext/standard/tests/file/tempnam_variation3.phpt
index 78ef3bbaca..b255b32f41 100644
--- a/ext/standard/tests/file/tempnam_variation3.phpt
+++ b/ext/standard/tests/file/tempnam_variation3.phpt
@@ -106,9 +106,9 @@ File name is => %s/%s
File permissions are => 100600
File created in => directory specified
-- Iteration 6 --
-tempnam() expects parameter 2 to be a valid path, string given
+tempnam() expects argument #2 ($prefix) to be a valid path, string given
-- Iteration 7 --
-tempnam() expects parameter 2 to be a valid path, array given
+tempnam() expects argument #2 ($prefix) to be a valid path, array given
-- Iteration 8 --
File name is => %s/dir%s
File permissions are => 100600
diff --git a/ext/standard/tests/file/tempnam_variation7-win32.phpt b/ext/standard/tests/file/tempnam_variation7-win32.phpt
index 26ccaef84d..069b2f369d 100644
--- a/ext/standard/tests/file/tempnam_variation7-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation7-win32.phpt
@@ -100,9 +100,9 @@ File name is => %s%et%s
File permissions are => 100666
File created in => temp dir
-- Iteration 6 --
-tempnam() expects parameter 1 to be a valid path, string given
+tempnam() expects argument #1 ($dir) to be a valid path, string given
-- Iteration 7 --
-tempnam() expects parameter 1 to be a valid path, array given
+tempnam() expects argument #1 ($dir) to be a valid path, array given
-- Iteration 8 --
Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.php on line %d
diff --git a/ext/standard/tests/file/tempnam_variation7.phpt b/ext/standard/tests/file/tempnam_variation7.phpt
index a385fe43b6..5ee1d80c7d 100644
--- a/ext/standard/tests/file/tempnam_variation7.phpt
+++ b/ext/standard/tests/file/tempnam_variation7.phpt
@@ -105,9 +105,9 @@ File name is => %s%etempnam_variation3.tmp%s
File permissions are => 100600
File created in => temp dir
-- Iteration 6 --
-tempnam() expects parameter 1 to be a valid path, string given
+tempnam() expects argument #1 ($dir) to be a valid path, string given
-- Iteration 7 --
-tempnam() expects parameter 1 to be a valid path, array given
+tempnam() expects argument #1 ($dir) to be a valid path, array given
-- Iteration 8 --
Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on line %d
diff --git a/ext/standard/tests/file/windows_links/bug78862.phpt b/ext/standard/tests/file/windows_links/bug78862.phpt
index 3bd787e705..70a26c1d5f 100644
--- a/ext/standard/tests/file/windows_links/bug78862.phpt
+++ b/ext/standard/tests/file/windows_links/bug78862.phpt
@@ -7,7 +7,7 @@ var_dump(link(__DIR__ . "/bug78862.target\0more", __DIR__ . "/bug78862.link\0mor
var_dump(file_exists(__DIR__ . '/bug78862.link'));
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: link() expects parameter 1 to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: link() expects argument #1 ($target) to be a valid path, string given in %s:%d
Stack trace:
#0 %s(%d): link('%s', '%s')
#1 {main}
diff --git a/ext/standard/tests/general_functions/bug41970.phpt b/ext/standard/tests/general_functions/bug41970.phpt
index f43bf64380..211ad3b2d3 100644
--- a/ext/standard/tests/general_functions/bug41970.phpt
+++ b/ext/standard/tests/general_functions/bug41970.phpt
@@ -21,11 +21,11 @@ try {
echo "Done\n";
?>
--EXPECTF--
-Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line %d
+Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
bool(true)
-strlen() expects parameter 1 to be string, array given
+strlen() expects argument #1 ($str) to be of type string, array given
-Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line %d
+Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
bool(true)
-strlen() expects parameter 1 to be string, array given
+strlen() expects argument #1 ($str) to be of type string, array given
Done
diff --git a/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt b/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt
index a5b61d9971..1f2abbae29 100644
--- a/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt
+++ b/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt
@@ -42,7 +42,7 @@ array(1) {
}
------ Calling by_ref() with unreferenced argument ------
-Warning: Parameter 1 to by_ref() expected to be a reference, value given in %s on line %d
+Warning: by_ref() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
array(1) {
[0]=>
string(8) "original"
diff --git a/ext/standard/tests/general_functions/callbacks_001.phpt b/ext/standard/tests/general_functions/callbacks_001.phpt
index 827f5c0182..b667da66c9 100644
--- a/ext/standard/tests/general_functions/callbacks_001.phpt
+++ b/ext/standard/tests/general_functions/callbacks_001.phpt
@@ -106,4 +106,4 @@ O
$this|O::who
O
$this|B::who
-call_user_func() expects parameter 1 to be a valid callback, class 'P' is not a subclass of 'B'
+call_user_func() expects argument #1 ($function) to be a valid callback, class 'P' is not a subclass of 'B'
diff --git a/ext/standard/tests/general_functions/callbacks_002.phpt b/ext/standard/tests/general_functions/callbacks_002.phpt
index 0d44035e0e..4f327e3b86 100644
--- a/ext/standard/tests/general_functions/callbacks_002.phpt
+++ b/ext/standard/tests/general_functions/callbacks_002.phpt
@@ -21,6 +21,6 @@ try {
?>
--EXPECTF--
-call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found
-call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
-call_user_func() expects parameter 1 to be a valid callback, second array member is not a valid method
+call_user_func() expects argument #1 ($function) to be a valid callback, class 'Foo' not found
+call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
+call_user_func() expects argument #1 ($function) to be a valid callback, second array member is not a valid method
diff --git a/ext/standard/tests/math/abs_variation.phpt b/ext/standard/tests/math/abs_variation.phpt
index 854cb71181..e635fa2fca 100644
--- a/ext/standard/tests/math/abs_variation.phpt
+++ b/ext/standard/tests/math/abs_variation.phpt
@@ -105,25 +105,25 @@ int(1)
int(0)
-- Iteration 7 --
-abs() expects parameter 1 to be int or float, string given
+abs() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 8 --
-abs() expects parameter 1 to be int or float, string given
+abs() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 9 --
-abs() expects parameter 1 to be int or float, array given
+abs() expects argument #1 ($number) to be of type int|float, array given
-- Iteration 10 --
-abs() expects parameter 1 to be int or float, string given
+abs() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 11 --
-abs() expects parameter 1 to be int or float, string given
+abs() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 12 --
-abs() expects parameter 1 to be int or float, string given
+abs() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 13 --
-abs() expects parameter 1 to be int or float, object given
+abs() expects argument #1 ($number) to be of type int|float, object given
-- Iteration 14 --
int(0)
@@ -132,4 +132,4 @@ int(0)
int(0)
-- Iteration 16 --
-abs() expects parameter 1 to be int or float, resource given
+abs() expects argument #1 ($number) to be of type int|float, resource given
diff --git a/ext/standard/tests/math/bindec_variation1.phpt b/ext/standard/tests/math/bindec_variation1.phpt
index 2b166a3edd..9a29aa3480 100644
--- a/ext/standard/tests/math/bindec_variation1.phpt
+++ b/ext/standard/tests/math/bindec_variation1.phpt
@@ -151,7 +151,7 @@ int(0)
int(0)
-- Iteration 18 --
-bindec() expects parameter 1 to be string, array given
+bindec() expects argument #1 ($binary_string) to be of type string, array given
-- Iteration 19 --
@@ -175,4 +175,4 @@ int(0)
int(0)
-- Iteration 24 --
-bindec() expects parameter 1 to be string, resource given
+bindec() expects argument #1 ($binary_string) to be of type string, resource given
diff --git a/ext/standard/tests/math/bindec_variation1_64bit.phpt b/ext/standard/tests/math/bindec_variation1_64bit.phpt
index 6784c13601..16f205f29f 100644
--- a/ext/standard/tests/math/bindec_variation1_64bit.phpt
+++ b/ext/standard/tests/math/bindec_variation1_64bit.phpt
@@ -151,7 +151,7 @@ int(0)
int(0)
-- Iteration 18 --
-bindec() expects parameter 1 to be string, array given
+bindec() expects argument #1 ($binary_string) to be of type string, array given
-- Iteration 19 --
@@ -175,4 +175,4 @@ int(0)
int(0)
-- Iteration 24 --
-bindec() expects parameter 1 to be string, resource given
+bindec() expects argument #1 ($binary_string) to be of type string, resource given
diff --git a/ext/standard/tests/math/ceil_variation1.phpt b/ext/standard/tests/math/ceil_variation1.phpt
index 815093ea49..1946c77879 100644
--- a/ext/standard/tests/math/ceil_variation1.phpt
+++ b/ext/standard/tests/math/ceil_variation1.phpt
@@ -98,25 +98,25 @@ float(1)
float(0)
-- Iteration 7 --
-ceil() expects parameter 1 to be int or float, string given
+ceil() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 8 --
-ceil() expects parameter 1 to be int or float, string given
+ceil() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 9 --
-ceil() expects parameter 1 to be int or float, array given
+ceil() expects argument #1 ($number) to be of type int|float, array given
-- Iteration 10 --
-ceil() expects parameter 1 to be int or float, string given
+ceil() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 11 --
-ceil() expects parameter 1 to be int or float, string given
+ceil() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 12 --
-ceil() expects parameter 1 to be int or float, string given
+ceil() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 13 --
-ceil() expects parameter 1 to be int or float, object given
+ceil() expects argument #1 ($number) to be of type int|float, object given
-- Iteration 14 --
float(0)
@@ -125,4 +125,4 @@ float(0)
float(0)
-- Iteration 16 --
-ceil() expects parameter 1 to be int or float, resource given
+ceil() expects argument #1 ($number) to be of type int|float, resource given
diff --git a/ext/standard/tests/math/floor_variation1.phpt b/ext/standard/tests/math/floor_variation1.phpt
index dd0e70b863..2aa72337bb 100644
--- a/ext/standard/tests/math/floor_variation1.phpt
+++ b/ext/standard/tests/math/floor_variation1.phpt
@@ -98,25 +98,25 @@ float(1)
float(0)
-- Iteration 7 --
-floor() expects parameter 1 to be int or float, string given
+floor() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 8 --
-floor() expects parameter 1 to be int or float, string given
+floor() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 9 --
-floor() expects parameter 1 to be int or float, array given
+floor() expects argument #1 ($number) to be of type int|float, array given
-- Iteration 10 --
-floor() expects parameter 1 to be int or float, string given
+floor() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 11 --
-floor() expects parameter 1 to be int or float, string given
+floor() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 12 --
-floor() expects parameter 1 to be int or float, string given
+floor() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 13 --
-floor() expects parameter 1 to be int or float, object given
+floor() expects argument #1 ($number) to be of type int|float, object given
-- Iteration 14 --
float(0)
@@ -125,4 +125,4 @@ float(0)
float(0)
-- Iteration 16 --
-floor() expects parameter 1 to be int or float, resource given
+floor() expects argument #1 ($number) to be of type int|float, resource given
diff --git a/ext/standard/tests/math/hexdec_variation1.phpt b/ext/standard/tests/math/hexdec_variation1.phpt
index c50c550f61..5df2c7ff06 100644
--- a/ext/standard/tests/math/hexdec_variation1.phpt
+++ b/ext/standard/tests/math/hexdec_variation1.phpt
@@ -157,7 +157,7 @@ int(0)
int(0)
-- Iteration 20 --
-hexdec() expects parameter 1 to be string, array given
+hexdec() expects argument #1 ($hex_string) to be of type string, array given
-- Iteration 21 --
@@ -181,4 +181,4 @@ int(0)
int(0)
-- Iteration 26 --
-hexdec() expects parameter 1 to be string, resource given
+hexdec() expects argument #1 ($hex_string) to be of type string, resource given
diff --git a/ext/standard/tests/math/hexdec_variation1_64bit.phpt b/ext/standard/tests/math/hexdec_variation1_64bit.phpt
index d3b22d8040..6d984502af 100644
--- a/ext/standard/tests/math/hexdec_variation1_64bit.phpt
+++ b/ext/standard/tests/math/hexdec_variation1_64bit.phpt
@@ -157,7 +157,7 @@ int(0)
int(0)
-- Iteration 20 --
-hexdec() expects parameter 1 to be string, array given
+hexdec() expects argument #1 ($hex_string) to be of type string, array given
-- Iteration 21 --
@@ -181,4 +181,4 @@ int(0)
int(0)
-- Iteration 26 --
-hexdec() expects parameter 1 to be string, resource given
+hexdec() expects argument #1 ($hex_string) to be of type string, resource given
diff --git a/ext/standard/tests/math/octdec_variation1.phpt b/ext/standard/tests/math/octdec_variation1.phpt
index 48e4faf466..18dfc698ce 100644
--- a/ext/standard/tests/math/octdec_variation1.phpt
+++ b/ext/standard/tests/math/octdec_variation1.phpt
@@ -160,7 +160,7 @@ int(0)
int(0)
-- Iteration 20 --
-octdec() expects parameter 1 to be string, array given
+octdec() expects argument #1 ($octal_string) to be of type string, array given
-- Iteration 21 --
@@ -184,5 +184,5 @@ int(0)
int(0)
-- Iteration 26 --
-octdec() expects parameter 1 to be string, resource given
+octdec() expects argument #1 ($octal_string) to be of type string, resource given
---Done---
diff --git a/ext/standard/tests/math/round_variation1.phpt b/ext/standard/tests/math/round_variation1.phpt
index b8566e6df7..add8cf7637 100644
--- a/ext/standard/tests/math/round_variation1.phpt
+++ b/ext/standard/tests/math/round_variation1.phpt
@@ -143,25 +143,25 @@ float(1)
float(0)
-- Iteration 17 --
-round() expects parameter 1 to be int or float, string given
+round() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 18 --
-round() expects parameter 1 to be int or float, string given
+round() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 19 --
-round() expects parameter 1 to be int or float, array given
+round() expects argument #1 ($number) to be of type int|float, array given
-- Iteration 20 --
-round() expects parameter 1 to be int or float, string given
+round() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 21 --
-round() expects parameter 1 to be int or float, string given
+round() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 22 --
-round() expects parameter 1 to be int or float, string given
+round() expects argument #1 ($number) to be of type int|float, string given
-- Iteration 23 --
-round() expects parameter 1 to be int or float, object given
+round() expects argument #1 ($number) to be of type int|float, object given
-- Iteration 24 --
float(0)
@@ -170,4 +170,4 @@ float(0)
float(0)
-- Iteration 26 --
-round() expects parameter 1 to be int or float, resource given
+round() expects argument #1 ($number) to be of type int|float, resource given
diff --git a/ext/standard/tests/password/password_hash_error.phpt b/ext/standard/tests/password/password_hash_error.phpt
index a0d8c6461e..dc8def5eef 100644
--- a/ext/standard/tests/password/password_hash_error.phpt
+++ b/ext/standard/tests/password/password_hash_error.phpt
@@ -40,6 +40,6 @@ password_hash() expects at least 2 parameters, 1 given
Warning: Array to string conversion in %s on line %d
Unknown password hashing algorithm: Array
-password_hash() expects parameter 3 to be array, object given
-password_hash() expects parameter 3 to be array, string given
-password_hash() expects parameter 1 to be string, array given
+password_hash() expects argument #3 ($options) to be of type array, object given
+password_hash() expects argument #3 ($options) to be of type array, string given
+password_hash() expects argument #1 ($password) to be of type string, array given
diff --git a/ext/standard/tests/password/password_needs_rehash_error.phpt b/ext/standard/tests/password/password_needs_rehash_error.phpt
index f64723ee85..688bbb4eb7 100644
--- a/ext/standard/tests/password/password_needs_rehash_error.phpt
+++ b/ext/standard/tests/password/password_needs_rehash_error.phpt
@@ -26,9 +26,9 @@ try {
echo "OK!";
?>
---EXPECTF--
+--EXPECT--
password_needs_rehash() expects at least 2 parameters, 1 given
bool(false)
-password_needs_rehash() expects parameter 1 to be string, array given
-password_needs_rehash() expects parameter 3 to be array, string given
+password_needs_rehash() expects argument #1 ($hash) to be of type string, array given
+password_needs_rehash() expects argument #3 ($options) to be of type array, string given
OK!
diff --git a/ext/standard/tests/strings/addcslashes_001.phpt b/ext/standard/tests/strings/addcslashes_001.phpt
index 5b60f6168d..6b15319c0e 100644
--- a/ext/standard/tests/strings/addcslashes_001.phpt
+++ b/ext/standard/tests/strings/addcslashes_001.phpt
Binary files differ
diff --git a/ext/standard/tests/strings/bug54322.phpt b/ext/standard/tests/strings/bug54322.phpt
index f31f94fd84..fd491b2faa 100644
--- a/ext/standard/tests/strings/bug54322.phpt
+++ b/ext/standard/tests/strings/bug54322.phpt
@@ -9,4 +9,4 @@ try {
}
?>
--EXPECT--
-get_html_translation_table() expects parameter 1 to be int, float given
+get_html_translation_table() expects argument #1 ($table) to be of type int, float given
diff --git a/ext/standard/tests/strings/chunk_split_variation5.phpt b/ext/standard/tests/strings/chunk_split_variation5.phpt
index bfcaa54e26..85690a234e 100644
--- a/ext/standard/tests/strings/chunk_split_variation5.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation5.phpt
Binary files differ
diff --git a/ext/standard/tests/strings/chunk_split_variation8.phpt b/ext/standard/tests/strings/chunk_split_variation8.phpt
index 74b41ede03..fe19f325be 100644
--- a/ext/standard/tests/strings/chunk_split_variation8.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation8.phpt
@@ -83,6 +83,6 @@ string(129) "This's heredoc string with and
It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test
chunk_split():::"
-- Iteration 7 --
-chunk_split() expects parameter 2 to be int, float given
+chunk_split() expects argument #2 ($chunklen) to be of type int, float given
-- Iteration 8 --
Chunk length should be greater than zero
diff --git a/ext/standard/tests/strings/implode1.phpt b/ext/standard/tests/strings/implode1.phpt
index ae460d6037..4fdb97b6cd 100644
--- a/ext/standard/tests/strings/implode1.phpt
+++ b/ext/standard/tests/strings/implode1.phpt
Binary files differ
diff --git a/ext/standard/tests/strings/join_error.phpt b/ext/standard/tests/strings/join_error.phpt
index fa15b75da5..976dd97242 100644
--- a/ext/standard/tests/strings/join_error.phpt
+++ b/ext/standard/tests/strings/join_error.phpt
@@ -26,5 +26,5 @@ echo "Done\n";
*** Testing join() : error conditions ***
-- Testing join() with less than expected no. of arguments --
-Argument must be an array
+join() expects argument #1 ($pieces) to be of type array, string given
Done
diff --git a/ext/standard/tests/strings/join_variation1.phpt b/ext/standard/tests/strings/join_variation1.phpt
index c3035fb57f..58cb3d2d11 100644
--- a/ext/standard/tests/strings/join_variation1.phpt
+++ b/ext/standard/tests/strings/join_variation1.phpt
@@ -102,7 +102,7 @@ for($index = 0; $index < count($values); $index ++) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing join() : usage variations ***
--- Testing join() by supplying different values for 'glue' argument ---
@@ -125,15 +125,15 @@ string(29) "element11.07654321E-9element2"
-- Iteration 9 --
string(19) "element10.5element2"
-- Iteration 10 --
-The first argument must be a string
+join() expects argument #1 ($glue) to be of type string, array given
-- Iteration 11 --
-The first argument must be a string
+join() expects argument #1 ($glue) to be of type string, array given
-- Iteration 12 --
-The first argument must be a string
+join() expects argument #1 ($glue) to be of type string, array given
-- Iteration 13 --
-The first argument must be a string
+join() expects argument #1 ($glue) to be of type string, array given
-- Iteration 14 --
-The first argument must be a string
+join() expects argument #1 ($glue) to be of type string, array given
-- Iteration 15 --
string(17) "element11element2"
-- Iteration 16 --
@@ -153,7 +153,7 @@ string(16) "element1element2"
-- Iteration 23 --
string(16) "element1element2"
-- Iteration 24 --
-join() expects parameter 1 to be string or array, resource given
+join() expects argument #1 ($glue) to be of type string|array, resource given
-- Iteration 25 --
string(16) "element1element2"
-- Iteration 26 --
diff --git a/ext/standard/tests/strings/join_variation2.phpt b/ext/standard/tests/strings/join_variation2.phpt
index d44ff90921..fe52aebeb7 100644
--- a/ext/standard/tests/strings/join_variation2.phpt
+++ b/ext/standard/tests/strings/join_variation2.phpt
@@ -108,49 +108,49 @@ echo "Done\n";
--- Testing join() by supplying different values for 'pieces' argument ---
-- Iteration 1 --
-join() expects parameter 2 to be array, int given
+join() expects argument #2 ($pieces) to be of type array, int given
-- Iteration 2 --
-join() expects parameter 2 to be array, int given
+join() expects argument #2 ($pieces) to be of type array, int given
-- Iteration 3 --
-join() expects parameter 2 to be array, int given
+join() expects argument #2 ($pieces) to be of type array, int given
-- Iteration 4 --
-join() expects parameter 2 to be array, int given
+join() expects argument #2 ($pieces) to be of type array, int given
-- Iteration 5 --
-join() expects parameter 2 to be array, float given
+join() expects argument #2 ($pieces) to be of type array, float given
-- Iteration 6 --
-join() expects parameter 2 to be array, float given
+join() expects argument #2 ($pieces) to be of type array, float given
-- Iteration 7 --
-join() expects parameter 2 to be array, float given
+join() expects argument #2 ($pieces) to be of type array, float given
-- Iteration 8 --
-join() expects parameter 2 to be array, float given
+join() expects argument #2 ($pieces) to be of type array, float given
-- Iteration 9 --
-join() expects parameter 2 to be array, float given
+join() expects argument #2 ($pieces) to be of type array, float given
-- Iteration 10 --
-join() expects parameter 2 to be array, bool given
+join() expects argument #2 ($pieces) to be of type array, bool given
-- Iteration 11 --
-join() expects parameter 2 to be array, bool given
+join() expects argument #2 ($pieces) to be of type array, bool given
-- Iteration 12 --
-join() expects parameter 2 to be array, bool given
+join() expects argument #2 ($pieces) to be of type array, bool given
-- Iteration 13 --
-join() expects parameter 2 to be array, bool given
+join() expects argument #2 ($pieces) to be of type array, bool given
-- Iteration 14 --
-join() expects parameter 2 to be array, string given
+join() expects argument #2 ($pieces) to be of type array, string given
-- Iteration 15 --
-join() expects parameter 2 to be array, string given
+join() expects argument #2 ($pieces) to be of type array, string given
-- Iteration 16 --
-join() expects parameter 2 to be array, object given
+join() expects argument #2 ($pieces) to be of type array, object given
-- Iteration 17 --
-join() expects parameter 2 to be array, string given
+join() expects argument #2 ($pieces) to be of type array, string given
-- Iteration 18 --
-join() expects parameter 2 to be array, string given
+join() expects argument #2 ($pieces) to be of type array, string given
-- Iteration 19 --
-join() expects parameter 2 to be array, null given
+join() expects argument #2 ($pieces) to be of type array, null given
-- Iteration 20 --
-join() expects parameter 2 to be array, null given
+join() expects argument #2 ($pieces) to be of type array, null given
-- Iteration 21 --
-join() expects parameter 2 to be array, resource given
+join() expects argument #2 ($pieces) to be of type array, resource given
-- Iteration 22 --
-join() expects parameter 2 to be array, null given
+join() expects argument #2 ($pieces) to be of type array, null given
-- Iteration 23 --
-join() expects parameter 2 to be array, null given
+join() expects argument #2 ($pieces) to be of type array, null given
Done
diff --git a/ext/standard/tests/strings/join_variation4.phpt b/ext/standard/tests/strings/join_variation4.phpt
index e1739facc5..25ea766421 100644
--- a/ext/standard/tests/strings/join_variation4.phpt
+++ b/ext/standard/tests/strings/join_variation4.phpt
Binary files differ
diff --git a/ext/standard/tests/strings/join_variation5.phpt b/ext/standard/tests/strings/join_variation5.phpt
index 4e8ad88d14..63e884e438 100644
--- a/ext/standard/tests/strings/join_variation5.phpt
+++ b/ext/standard/tests/strings/join_variation5.phpt
@@ -41,7 +41,7 @@ Warning: Array to string conversion in %s on line %d
Warning: Array to string conversion in %s on line %d
string(27) "ArrayTESTArrayTESTPHPTEST50"
-The first argument must be a string
+join() expects argument #1 ($glue) to be of type string, array given
Warning: Array to string conversion in %s on line %d
diff --git a/ext/standard/tests/strings/printf_variation1.phpt b/ext/standard/tests/strings/printf_variation1.phpt
index d6fad7e97a..61dd6b3aa4 100644
--- a/ext/standard/tests/strings/printf_variation1.phpt
+++ b/ext/standard/tests/strings/printf_variation1.phpt
@@ -122,7 +122,7 @@ foreach($values as $value) {
fclose($file_handle);
?>
---EXPECTF--
+--EXPECT--
*** Testing printf() : with unexpected values for format argument ***
-- Iteration 1 --
@@ -198,29 +198,29 @@ int(3)
int(3)
-- Iteration 10 --
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
-- Iteration 11 --
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
-- Iteration 12 --
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
-- Iteration 13 --
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
-- Iteration 14 --
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
-printf() expects parameter 1 to be string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
+printf() expects argument #1 ($format) to be of type string, array given
-- Iteration 15 --
@@ -311,6 +311,6 @@ int(0)
int(0)
-- Iteration 26 --
-printf() expects parameter 1 to be string, resource given
-printf() expects parameter 1 to be string, resource given
-printf() expects parameter 1 to be string, resource given
+printf() expects argument #1 ($format) to be of type string, resource given
+printf() expects argument #1 ($format) to be of type string, resource given
+printf() expects argument #1 ($format) to be of type string, resource given
diff --git a/ext/standard/tests/strings/sprintf_variation1.phpt b/ext/standard/tests/strings/sprintf_variation1.phpt
index f30cf5182e..b1f2395003 100644
--- a/ext/standard/tests/strings/sprintf_variation1.phpt
+++ b/ext/standard/tests/strings/sprintf_variation1.phpt
@@ -117,7 +117,7 @@ fclose($file_handle);
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : with unexpected values for format argument ***
-- Iteration 1 --
@@ -166,29 +166,29 @@ string(3) "0.5"
string(3) "0.5"
-- Iteration 10 --
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 11 --
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 12 --
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 13 --
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 14 --
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
-sprintf() expects parameter 1 to be string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
+sprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 15 --
string(0) ""
@@ -246,7 +246,7 @@ string(0) ""
string(0) ""
-- Iteration 26 --
-sprintf() expects parameter 1 to be string, resource given
-sprintf() expects parameter 1 to be string, resource given
-sprintf() expects parameter 1 to be string, resource given
+sprintf() expects argument #1 ($format) to be of type string, resource given
+sprintf() expects argument #1 ($format) to be of type string, resource given
+sprintf() expects argument #1 ($format) to be of type string, resource given
Done
diff --git a/ext/standard/tests/strings/str_pad_variation1.phpt b/ext/standard/tests/strings/str_pad_variation1.phpt
index 6123bc60c9..b093fb691e 100644
--- a/ext/standard/tests/strings/str_pad_variation1.phpt
+++ b/ext/standard/tests/strings/str_pad_variation1.phpt
@@ -36,7 +36,6 @@ var_dump( str_pad($input, $php_int_max_pad_length) );
?>
--EXPECTF--
*** Testing str_pad() function: with large value for for 'pad_length' argument ***
-str_pad() expects parameter 2 to be int, float given
+str_pad() expects argument #2 ($pad_length) to be of type int, float given
Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
-
diff --git a/ext/standard/tests/strings/str_replace_basic.phpt b/ext/standard/tests/strings/str_replace_basic.phpt
index fa39b24e3a..1a0b7d5531 100644
--- a/ext/standard/tests/strings/str_replace_basic.phpt
+++ b/ext/standard/tests/strings/str_replace_basic.phpt
@@ -47,5 +47,5 @@ string(1) "q"
int(1)
string(0) ""
int(0)
-str_replace() expects parameter 3 to be string or array, resource given
+str_replace() expects argument #3 ($subject) to be of type string|array, resource given
resource(%d) of type (stream)
diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt
index f1bbf89b9f..d5d56b8208 100644
--- a/ext/standard/tests/strings/str_replace_variation3.phpt
+++ b/ext/standard/tests/strings/str_replace_variation3.phpt
@@ -200,8 +200,8 @@ array(2) {
int(1)
-- Testing Resources --
-str_replace() expects parameter 3 to be string or array, resource given
-str_replace() expects parameter 3 to be string or array, resource given
+str_replace() expects argument #3 ($subject) to be of type string|array, resource given
+str_replace() expects argument #3 ($subject) to be of type string|array, resource given
-- Testing a longer and heredoc string --
string(623) "FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
diff --git a/ext/standard/tests/strings/stripos_variation10.phpt b/ext/standard/tests/strings/stripos_variation10.phpt
index 879da88aa7..f36c23dfbd 100644
--- a/ext/standard/tests/strings/stripos_variation10.phpt
+++ b/ext/standard/tests/strings/stripos_variation10.phpt
@@ -126,19 +126,19 @@ bool(false)
int(17)
-- Iteration 10 --
-stripos() expects parameter 2 to be string, array given
+stripos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 11 --
-stripos() expects parameter 2 to be string, array given
+stripos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 12 --
-stripos() expects parameter 2 to be string, array given
+stripos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 13 --
-stripos() expects parameter 2 to be string, array given
+stripos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 14 --
-stripos() expects parameter 2 to be string, array given
+stripos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 15 --
int(9)
@@ -168,7 +168,7 @@ int(0)
int(0)
-- Iteration 24 --
-stripos() expects parameter 2 to be string, resource given
+stripos() expects argument #2 ($needle) to be of type string, resource given
-- Iteration 25 --
int(0)
diff --git a/ext/standard/tests/strings/stripos_variation11.phpt b/ext/standard/tests/strings/stripos_variation11.phpt
index 7a9c9ff9a0..9746cdb59a 100644
--- a/ext/standard/tests/strings/stripos_variation11.phpt
+++ b/ext/standard/tests/strings/stripos_variation11.phpt
@@ -96,7 +96,7 @@ for($index = 0; $index < count($values); $index ++) {
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function with unexpected values for haystack and needle ***
-- Iteration 1 --
int(0)
@@ -126,20 +126,20 @@ bool(false)
int(0)
bool(false)
-- Iteration 10 --
-TypeError: stripos() expects parameter 1 to be string, array given
-TypeError: stripos() expects parameter 1 to be string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 11 --
-TypeError: stripos() expects parameter 1 to be string, array given
-TypeError: stripos() expects parameter 1 to be string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 12 --
-TypeError: stripos() expects parameter 1 to be string, array given
-TypeError: stripos() expects parameter 1 to be string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 13 --
-TypeError: stripos() expects parameter 1 to be string, array given
-TypeError: stripos() expects parameter 1 to be string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 14 --
-TypeError: stripos() expects parameter 1 to be string, array given
-TypeError: stripos() expects parameter 1 to be string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 15 --
int(0)
bool(false)
@@ -168,8 +168,8 @@ ValueError: Offset not contained in string
int(0)
ValueError: Offset not contained in string
-- Iteration 24 --
-TypeError: stripos() expects parameter 1 to be string, resource given
-TypeError: stripos() expects parameter 1 to be string, resource given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given
+TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given
-- Iteration 25 --
int(0)
ValueError: Offset not contained in string
diff --git a/ext/standard/tests/strings/stristr_variation2.phpt b/ext/standard/tests/strings/stristr_variation2.phpt
index 8448292802..7c25c4032d 100644
--- a/ext/standard/tests/strings/stristr_variation2.phpt
+++ b/ext/standard/tests/strings/stristr_variation2.phpt
@@ -100,11 +100,11 @@ bool(false)
-- Iteration 7 --
bool(false)
-- Iteration 8 --
-stristr() expects parameter 2 to be string, array given
+stristr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 9 --
-stristr() expects parameter 2 to be string, array given
+stristr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 10 --
-stristr() expects parameter 2 to be string, array given
+stristr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 11 --
bool(false)
-- Iteration 12 --
@@ -120,7 +120,7 @@ string(11) "Hello World"
-- Iteration 17 --
bool(false)
-- Iteration 18 --
-stristr() expects parameter 2 to be string, resource given
+stristr() expects argument #2 ($needle) to be of type string, resource given
-- Iteration 19 --
string(11) "Hello World"
-- Iteration 20 --
diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt
index 27b87cb99a..1929b83f74 100644
--- a/ext/standard/tests/strings/strpos.phpt
+++ b/ext/standard/tests/strings/strpos.phpt
Binary files differ
diff --git a/ext/standard/tests/strings/strrchr_variation10.phpt b/ext/standard/tests/strings/strrchr_variation10.phpt
index 1004a3d915..04e96f9714 100644
--- a/ext/standard/tests/strings/strrchr_variation10.phpt
+++ b/ext/standard/tests/strings/strrchr_variation10.phpt
@@ -154,15 +154,15 @@ string(2) "10"
-- Iteration 9 --
bool(false)
-- Iteration 10 --
-strrchr() expects parameter 2 to be string, array given
+strrchr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 11 --
-strrchr() expects parameter 2 to be string, array given
+strrchr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 12 --
-strrchr() expects parameter 2 to be string, array given
+strrchr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 13 --
-strrchr() expects parameter 2 to be string, array given
+strrchr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 14 --
-strrchr() expects parameter 2 to be string, array given
+strrchr() expects argument #2 ($needle) to be of type string, array given
-- Iteration 15 --
bool(false)
-- Iteration 16 --
@@ -182,7 +182,7 @@ bool(false)
-- Iteration 23 --
bool(false)
-- Iteration 24 --
-strrchr() expects parameter 2 to be string, resource given
+strrchr() expects argument #2 ($needle) to be of type string, resource given
-- Iteration 25 --
bool(false)
-- Iteration 26 --
diff --git a/ext/standard/tests/strings/strrchr_variation11.phpt b/ext/standard/tests/strings/strrchr_variation11.phpt
index 79ffe4c2ec..33a34e21ab 100644
--- a/ext/standard/tests/strings/strrchr_variation11.phpt
+++ b/ext/standard/tests/strings/strrchr_variation11.phpt
@@ -113,15 +113,15 @@ string(4) "1E-9"
-- Iteration 9 --
string(3) "0.5"
-- Iteration 10 --
-strrchr() expects parameter 1 to be string, array given
+strrchr() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 11 --
-strrchr() expects parameter 1 to be string, array given
+strrchr() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 12 --
-strrchr() expects parameter 1 to be string, array given
+strrchr() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 13 --
-strrchr() expects parameter 1 to be string, array given
+strrchr() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 14 --
-strrchr() expects parameter 1 to be string, array given
+strrchr() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 15 --
string(1) "1"
-- Iteration 16 --
@@ -141,7 +141,7 @@ bool(false)
-- Iteration 23 --
bool(false)
-- Iteration 24 --
-strrchr() expects parameter 1 to be string, resource given
+strrchr() expects argument #1 ($haystack) to be of type string, resource given
-- Iteration 25 --
bool(false)
-- Iteration 26 --
diff --git a/ext/standard/tests/strings/strripos_offset.phpt b/ext/standard/tests/strings/strripos_offset.phpt
index 4f4ab2bea4..f2673ded5b 100644
--- a/ext/standard/tests/strings/strripos_offset.phpt
+++ b/ext/standard/tests/strings/strripos_offset.phpt
@@ -36,7 +36,7 @@ try {
echo "Done\n";
?>
--EXPECT--
-strripos() expects parameter 3 to be int, float given
+strripos() expects argument #3 ($offset) to be of type int, float given
Offset not contained in string
Offset not contained in string
Offset not contained in string
diff --git a/ext/standard/tests/strings/strrpos_offset.phpt b/ext/standard/tests/strings/strrpos_offset.phpt
index 213cd24c6f..21f0ea7745 100644
--- a/ext/standard/tests/strings/strrpos_offset.phpt
+++ b/ext/standard/tests/strings/strrpos_offset.phpt
@@ -36,7 +36,7 @@ try {
echo "Done\n";
?>
--EXPECT--
-strrpos() expects parameter 3 to be int, float given
+strrpos() expects argument #3 ($offset) to be of type int, float given
Offset not contained in string
Offset not contained in string
Offset not contained in string
diff --git a/ext/standard/tests/strings/strrpos_variation10.phpt b/ext/standard/tests/strings/strrpos_variation10.phpt
index 2a6b84337c..c14c4643c1 100644
--- a/ext/standard/tests/strings/strrpos_variation10.phpt
+++ b/ext/standard/tests/strings/strrpos_variation10.phpt
@@ -116,15 +116,15 @@ bool(false)
-- Iteration 9 --
int(28)
-- Iteration 10 --
-strrpos() expects parameter 2 to be string, array given
+strrpos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 11 --
-strrpos() expects parameter 2 to be string, array given
+strrpos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 12 --
-strrpos() expects parameter 2 to be string, array given
+strrpos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 13 --
-strrpos() expects parameter 2 to be string, array given
+strrpos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 14 --
-strrpos() expects parameter 2 to be string, array given
+strrpos() expects argument #2 ($needle) to be of type string, array given
-- Iteration 15 --
int(41)
-- Iteration 16 --
@@ -144,7 +144,7 @@ int(87)
-- Iteration 23 --
int(87)
-- Iteration 24 --
-strrpos() expects parameter 2 to be string, resource given
+strrpos() expects argument #2 ($needle) to be of type string, resource given
-- Iteration 25 --
int(87)
-- Iteration 26 --
diff --git a/ext/standard/tests/strings/strrpos_variation11.phpt b/ext/standard/tests/strings/strrpos_variation11.phpt
index 2f8627d5ad..24d9828581 100644
--- a/ext/standard/tests/strings/strrpos_variation11.phpt
+++ b/ext/standard/tests/strings/strrpos_variation11.phpt
@@ -97,7 +97,7 @@ for($index = 0; $index < count($values); $index ++) {
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function with unexpected values for haystack and needle ***
-- Iteration 1 --
int(0)
@@ -127,20 +127,20 @@ bool(false)
int(0)
bool(false)
-- Iteration 10 --
-TypeError: strrpos() expects parameter 1 to be string, array given
-TypeError: strrpos() expects parameter 1 to be string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 11 --
-TypeError: strrpos() expects parameter 1 to be string, array given
-TypeError: strrpos() expects parameter 1 to be string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 12 --
-TypeError: strrpos() expects parameter 1 to be string, array given
-TypeError: strrpos() expects parameter 1 to be string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 13 --
-TypeError: strrpos() expects parameter 1 to be string, array given
-TypeError: strrpos() expects parameter 1 to be string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 14 --
-TypeError: strrpos() expects parameter 1 to be string, array given
-TypeError: strrpos() expects parameter 1 to be string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given
-- Iteration 15 --
int(0)
bool(false)
@@ -169,8 +169,8 @@ ValueError: Offset not contained in string
int(0)
ValueError: Offset not contained in string
-- Iteration 24 --
-TypeError: strrpos() expects parameter 1 to be string, resource given
-TypeError: strrpos() expects parameter 1 to be string, resource given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given
+TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given
-- Iteration 25 --
int(0)
ValueError: Offset not contained in string
diff --git a/ext/standard/tests/strings/strtr_variation6.phpt b/ext/standard/tests/strings/strtr_variation6.phpt
index 9956acaca8..0a44abbb80 100644
--- a/ext/standard/tests/strings/strtr_variation6.phpt
+++ b/ext/standard/tests/strings/strtr_variation6.phpt
@@ -90,7 +90,7 @@ for($index = 0; $index < count($from_arr); $index++) {
fclose($file_handle); //closing the file handle
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() function: with unexpected inputs for 'from' ***
-- Iteration 1 --
string(6) "a12atm"
@@ -125,7 +125,7 @@ string(6) "012atm"
-- Iteration 16 --
string(6) "012ttm"
-- Iteration 17 --
-strtr() expects parameter 2 to be string or array, resource given
+strtr() expects argument #2 ($from) to be of type string|array, resource given
-- Iteration 18 --
string(6) "012atm"
-- Iteration 19 --
diff --git a/ext/standard/tests/strings/strtr_variation8.phpt b/ext/standard/tests/strings/strtr_variation8.phpt
index 97d3163e21..5dc910e9be 100644
--- a/ext/standard/tests/strings/strtr_variation8.phpt
+++ b/ext/standard/tests/strings/strtr_variation8.phpt
@@ -90,7 +90,7 @@ fclose($file_handle); //closing the file handle
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() function: with unexpected inputs for 'replace_pairs' ***
-- Iteration 1 --
@@ -142,7 +142,7 @@ If two arguments are passed, the second argument must be an array
If two arguments are passed, the second argument must be an array
-- Iteration 17 --
-strtr() expects parameter 2 to be string or array, resource given
+strtr() expects argument #2 ($from) to be of type string|array, resource given
-- Iteration 18 --
If two arguments are passed, the second argument must be an array
diff --git a/ext/standard/tests/strings/vfprintf_error3.phpt b/ext/standard/tests/strings/vfprintf_error3.phpt
index 0496d9b19c..72866ef1a8 100644
--- a/ext/standard/tests/strings/vfprintf_error3.phpt
+++ b/ext/standard/tests/strings/vfprintf_error3.phpt
@@ -43,6 +43,6 @@ unlink( $file );
?>
--EXPECT--
-- Testing vfprintf() function with wrong variable types as argument --
-vfprintf() expects parameter 2 to be string, array given
+vfprintf() expects argument #2 ($format) to be of type string, array given
int(9)
string(9) "Foo fake"
diff --git a/ext/standard/tests/strings/vfprintf_error4.phpt b/ext/standard/tests/strings/vfprintf_error4.phpt
index 53eba8f415..1279ac3904 100644
--- a/ext/standard/tests/strings/vfprintf_error4.phpt
+++ b/ext/standard/tests/strings/vfprintf_error4.phpt
@@ -38,7 +38,7 @@ $file = 'vfprintf_error4.txt';
unlink( $file );
?>
---EXPECTF--
+--EXPECT--
-- Testing vfprintf() function with other strangeties --
-vfprintf() expects parameter 1 to be resource, string given
+vfprintf() expects argument #1 ($handle) to be of type resource, string given
Error found: Argument number must be greater than zero.
diff --git a/ext/standard/tests/strings/vfprintf_variation20.phpt b/ext/standard/tests/strings/vfprintf_variation20.phpt
index 95477f6c25..d181e50eac 100644
--- a/ext/standard/tests/strings/vfprintf_variation20.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation20.phpt
@@ -109,7 +109,7 @@ echo "\n";
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing vfprintf() : with unexpected values for format argument ***
*** Testing vprintf() with with unexpected values for format argument ***
@@ -133,19 +133,19 @@ unlink($data_file);
-- Iteration 9 --
0.5
-- Iteration 10 --
-vfprintf() expects parameter 2 to be string, array given
+vfprintf() expects argument #2 ($format) to be of type string, array given
-- Iteration 11 --
-vfprintf() expects parameter 2 to be string, array given
+vfprintf() expects argument #2 ($format) to be of type string, array given
-- Iteration 12 --
-vfprintf() expects parameter 2 to be string, array given
+vfprintf() expects argument #2 ($format) to be of type string, array given
-- Iteration 13 --
-vfprintf() expects parameter 2 to be string, array given
+vfprintf() expects argument #2 ($format) to be of type string, array given
-- Iteration 14 --
-vfprintf() expects parameter 2 to be string, array given
+vfprintf() expects argument #2 ($format) to be of type string, array given
-- Iteration 15 --
@@ -170,4 +170,4 @@ object
-- Iteration 25 --
-- Iteration 26 --
-vfprintf() expects parameter 2 to be string, resource given
+vfprintf() expects argument #2 ($format) to be of type string, resource given
diff --git a/ext/standard/tests/strings/vprintf_variation1.phpt b/ext/standard/tests/strings/vprintf_variation1.phpt
index fd479274ef..51c3c8985e 100644
--- a/ext/standard/tests/strings/vprintf_variation1.phpt
+++ b/ext/standard/tests/strings/vprintf_variation1.phpt
@@ -103,7 +103,7 @@ foreach($values as $value) {
fclose($file_handle);
?>
---EXPECTF--
+--EXPECT--
*** Testing vprintf() : with unexpected values for format argument ***
-- Iteration 1 --
@@ -143,19 +143,19 @@ int(13)
int(3)
-- Iteration 10 --
-vprintf() expects parameter 1 to be string, array given
+vprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 11 --
-vprintf() expects parameter 1 to be string, array given
+vprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 12 --
-vprintf() expects parameter 1 to be string, array given
+vprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 13 --
-vprintf() expects parameter 1 to be string, array given
+vprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 14 --
-vprintf() expects parameter 1 to be string, array given
+vprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 15 --
@@ -202,4 +202,4 @@ int(0)
int(0)
-- Iteration 26 --
-vprintf() expects parameter 1 to be string, resource given
+vprintf() expects argument #1 ($format) to be of type string, resource given
diff --git a/ext/standard/tests/strings/vsprintf_variation1.phpt b/ext/standard/tests/strings/vsprintf_variation1.phpt
index 4b2da4b551..15155a0626 100644
--- a/ext/standard/tests/strings/vsprintf_variation1.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation1.phpt
@@ -101,7 +101,7 @@ fclose($file_handle);
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : with unexpected values for format argument ***
-- Iteration 1 --
@@ -132,19 +132,19 @@ string(13) "1.07654321E-9"
string(3) "0.5"
-- Iteration 10 --
-vsprintf() expects parameter 1 to be string, array given
+vsprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 11 --
-vsprintf() expects parameter 1 to be string, array given
+vsprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 12 --
-vsprintf() expects parameter 1 to be string, array given
+vsprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 13 --
-vsprintf() expects parameter 1 to be string, array given
+vsprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 14 --
-vsprintf() expects parameter 1 to be string, array given
+vsprintf() expects argument #1 ($format) to be of type string, array given
-- Iteration 15 --
string(0) ""
@@ -180,5 +180,5 @@ string(0) ""
string(0) ""
-- Iteration 26 --
-vsprintf() expects parameter 1 to be string, resource given
+vsprintf() expects argument #1 ($format) to be of type string, resource given
Done
diff --git a/tests/classes/abstract_user_call.phpt b/tests/classes/abstract_user_call.phpt
index 0a61d477b6..ad96101386 100644
--- a/tests/classes/abstract_user_call.phpt
+++ b/tests/classes/abstract_user_call.phpt
@@ -29,4 +29,4 @@ try {
?>
--EXPECT--
test::func()
-call_user_func() expects parameter 1 to be a valid callback, cannot call abstract method test_base::func()
+call_user_func() expects argument #1 ($function) to be a valid callback, cannot call abstract method test_base::func()
diff --git a/tests/classes/autoload_009.phpt b/tests/classes/autoload_009.phpt
index 63f1ea9801..7932fd4240 100644
--- a/tests/classes/autoload_009.phpt
+++ b/tests/classes/autoload_009.phpt
@@ -13,7 +13,7 @@ function f(UndefClass $x)
f(new stdClass);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to f() must be an instance of UndefClass, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: f() expects argument #1 ($x) to be of type UndefClass, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): f(Object(stdClass))
#1 {main}
diff --git a/tests/classes/autoload_012.phpt b/tests/classes/autoload_012.phpt
index c5b32debae..7ed944dc48 100644
--- a/tests/classes/autoload_012.phpt
+++ b/tests/classes/autoload_012.phpt
@@ -14,4 +14,4 @@ try {
?>
--EXPECT--
In autoload: string(6) "UndefC"
-call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found
+call_user_func() expects argument #1 ($function) to be a valid callback, class 'UndefC' not found
diff --git a/tests/classes/bug27504.phpt b/tests/classes/bug27504.phpt
index 4e227a1075..a56efde2d9 100644
--- a/tests/classes/bug27504.phpt
+++ b/tests/classes/bug27504.phpt
@@ -27,5 +27,5 @@ try {
?>
--EXPECT--
Called function foo:bar(1)
-call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method foo::bar()
+call_user_func_array() expects argument #1 ($function) to be a valid callback, cannot access private method foo::bar()
Call to private method foo::bar() from context ''
diff --git a/tests/classes/tostring_004.phpt b/tests/classes/tostring_004.phpt
index 8cde860d56..02968a9b3b 100644
--- a/tests/classes/tostring_004.phpt
+++ b/tests/classes/tostring_004.phpt
@@ -53,7 +53,7 @@ try {
--EXPECT--
Object with no __toString():
Try 1:
-printf() expects parameter 1 to be string, object given
+printf() expects argument #1 ($format) to be of type string, object given
Try 2:
diff --git a/tests/classes/type_hinting_001.phpt b/tests/classes/type_hinting_001.phpt
index fdc74a3194..ca476187f3 100644
--- a/tests/classes/type_hinting_001.phpt
+++ b/tests/classes/type_hinting_001.phpt
@@ -32,7 +32,7 @@ $a->b($b);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to FooBar::a() must implement interface Foo, instance of Blort given, called in %s on line 27 and defined in %s:12
+Fatal error: Uncaught TypeError: FooBar::a() expects argument #1 ($foo) to be of type Foo, Blort given, called in %s on line 27 and defined in %s:12
Stack trace:
#0 %s(%d): FooBar->a(Object(Blort))
#1 {main}
diff --git a/tests/classes/type_hinting_002.phpt b/tests/classes/type_hinting_002.phpt
index 23d201a51a..a491a26a62 100644
--- a/tests/classes/type_hinting_002.phpt
+++ b/tests/classes/type_hinting_002.phpt
@@ -11,7 +11,7 @@ $o = new Foo;
$o->a($o);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to Foo::a() must be an instance of NonExisting, instance of Foo given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: Foo::a() expects argument #1 ($foo) to be of type NonExisting, Foo given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): Foo->a(Object(Foo))
#1 {main}
diff --git a/tests/classes/type_hinting_003.phpt b/tests/classes/type_hinting_003.phpt
index 9dfbd7c3b8..c43f13dbef 100644
--- a/tests/classes/type_hinting_003.phpt
+++ b/tests/classes/type_hinting_003.phpt
@@ -57,7 +57,7 @@ array(1) {
int(25)
}
-Fatal error: Uncaught TypeError: Argument 1 passed to Test::f1() must be of the type array, int given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: Test::f1() expects argument #1 ($ar) to be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): Test::f1(1)
#1 {main}
diff --git a/tests/classes/type_hinting_004.phpt b/tests/classes/type_hinting_004.phpt
index 27f15a3e16..299ec1dd46 100644
--- a/tests/classes/type_hinting_004.phpt
+++ b/tests/classes/type_hinting_004.phpt
@@ -144,10 +144,10 @@ Ensure type hints are enforced for functions invoked as callbacks.
?>
--EXPECTF--
---> Type hints with callback function:
-0: Argument 1 passed to f1() must be an instance of A, int given%s(%d)
+0: f1() expects argument #1 ($a) to be of type A, int given%s(%d)
in f1;
-0: Argument 1 passed to f2() must be an instance of A or null, int given%s(%d)
+0: f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
in f2;
in f2;
@@ -155,10 +155,10 @@ in f2;
---> Type hints with callback static method:
-0: Argument 1 passed to C::f1() must be an instance of A, int given%s(%d)
+0: C::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
in C::f1 (static);
-0: Argument 1 passed to C::f2() must be an instance of A or null, int given%s(%d)
+0: C::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
in C::f2 (static);
in C::f2 (static);
@@ -166,10 +166,10 @@ in C::f2 (static);
---> Type hints with callback instance method:
-0: Argument 1 passed to D::f1() must be an instance of A, int given%s(%d)
+0: D::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
in C::f1 (instance);
-0: Argument 1 passed to D::f2() must be an instance of A or null, int given%s(%d)
+0: D::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
in C::f2 (instance);
in C::f2 (instance);
diff --git a/tests/lang/bug24658.phpt b/tests/lang/bug24658.phpt
index 4baa195242..5f35b3a229 100644
--- a/tests/lang/bug24658.phpt
+++ b/tests/lang/bug24658.phpt
@@ -53,7 +53,7 @@ int(2)
object(foo)#%d (0) {
}
-Fatal error: Uncaught TypeError: Argument 1 passed to typehint() must be an instance of foo, int given in %s:%d
+Fatal error: Uncaught TypeError: typehint() expects argument #1 ($a) to be of type foo, int given in %s:%d
Stack trace:
#0 [internal function]: typehint(1, 1)
#1 %s(%d): array_walk(Array, 'typehint')
diff --git a/tests/lang/catchable_error_001.phpt b/tests/lang/catchable_error_001.phpt
index 499ac14430..4d785592d8 100644
--- a/tests/lang/catchable_error_001.phpt
+++ b/tests/lang/catchable_error_001.phpt
@@ -19,7 +19,7 @@ Catchable fatal error [1]
echo "ALIVE!\n";
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5
+Fatal error: Uncaught TypeError: blah() expects argument #1 ($a) to be of type Foo, stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5
Stack trace:
#0 %s(%d): blah(Object(stdClass))
#1 {main}
diff --git a/tests/lang/catchable_error_002.phpt b/tests/lang/catchable_error_002.phpt
index 7cdc02c899..70e054c698 100644
--- a/tests/lang/catchable_error_002.phpt
+++ b/tests/lang/catchable_error_002.phpt
@@ -25,5 +25,5 @@ Catchable fatal error [2]
echo "ALIVE!\n";
?>
--EXPECTF--
-Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_002.php on line %d
+blah() expects argument #1 ($a) to be of type Foo, stdClass given, called in %scatchable_error_002.php on line %d
ALIVE!
diff --git a/tests/lang/type_hints_001.phpt b/tests/lang/type_hints_001.phpt
index f82a53fe75..eb17ff5b8d 100644
--- a/tests/lang/type_hints_001.phpt
+++ b/tests/lang/type_hints_001.phpt
@@ -20,7 +20,7 @@ type_hint_foo($bar);
?>
--EXPECTF--
-Fatal error: Uncaught TypeError: Argument 1 passed to type_hint_foo() must be an instance of Foo, instance of Bar given, called in %s on line 16 and defined in %s:9
+Fatal error: Uncaught TypeError: type_hint_foo() expects argument #1 ($a) to be of type Foo, Bar given, called in %s on line 16 and defined in %s:9
Stack trace:
#0 %s(%d): type_hint_foo(Object(Bar))
#1 {main}
diff --git a/tests/output/sapi_windows_vt100_support_winko_err.phpt b/tests/output/sapi_windows_vt100_support_winko_err.phpt
index 07c6355dab..9041461150 100644
--- a/tests/output/sapi_windows_vt100_support_winko_err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winko_err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winko_in-err.phpt b/tests/output/sapi_windows_vt100_support_winko_in-err.phpt
index ef2f573584..8e4509370e 100644
--- a/tests/output/sapi_windows_vt100_support_winko_in-err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winko_in-err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winko_in-out-err.phpt b/tests/output/sapi_windows_vt100_support_winko_in-out-err.phpt
index 600c92e704..4ee1fd0cd6 100644
--- a/tests/output/sapi_windows_vt100_support_winko_in-out-err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winko_in-out-err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winko_in-out.phpt b/tests/output/sapi_windows_vt100_support_winko_in-out.phpt
index 727d053579..f330e124c2 100644
--- a/tests/output/sapi_windows_vt100_support_winko_in-out.phpt
+++ b/tests/output/sapi_windows_vt100_support_winko_in-out.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(true)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winko_out-err.phpt b/tests/output/sapi_windows_vt100_support_winko_out-err.phpt
index 6448651f71..82694ad586 100644
--- a/tests/output/sapi_windows_vt100_support_winko_out-err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winko_out-err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winko_out.phpt b/tests/output/sapi_windows_vt100_support_winko_out.phpt
index ce111741c0..a46f1767f3 100644
--- a/tests/output/sapi_windows_vt100_support_winko_out.phpt
+++ b/tests/output/sapi_windows_vt100_support_winko_out.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(true)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winok_err.phpt b/tests/output/sapi_windows_vt100_support_winok_err.phpt
index 9354df4f94..eca06f2819 100644
--- a/tests/output/sapi_windows_vt100_support_winok_err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winok_err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winok_in-err.phpt b/tests/output/sapi_windows_vt100_support_winok_in-err.phpt
index 0be05527a9..366de4b0fe 100644
--- a/tests/output/sapi_windows_vt100_support_winok_in-err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winok_in-err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winok_in-out-err.phpt b/tests/output/sapi_windows_vt100_support_winok_in-out-err.phpt
index e497c5f55a..9166cc47d0 100644
--- a/tests/output/sapi_windows_vt100_support_winok_in-out-err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winok_in-out-err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winok_in-out.phpt b/tests/output/sapi_windows_vt100_support_winok_in-out.phpt
index 363e3ae0fa..526c0dd098 100644
--- a/tests/output/sapi_windows_vt100_support_winok_in-out.phpt
+++ b/tests/output/sapi_windows_vt100_support_winok_in-out.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(true)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winok_out-err.phpt b/tests/output/sapi_windows_vt100_support_winok_out-err.phpt
index 8bd6ee6bdd..826aedb114 100644
--- a/tests/output/sapi_windows_vt100_support_winok_out-err.phpt
+++ b/tests/output/sapi_windows_vt100_support_winok_out-err.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(false)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream:
diff --git a/tests/output/sapi_windows_vt100_support_winok_out.phpt b/tests/output/sapi_windows_vt100_support_winok_out.phpt
index c649764c4c..b7b4ff34be 100644
--- a/tests/output/sapi_windows_vt100_support_winok_out.phpt
+++ b/tests/output/sapi_windows_vt100_support_winok_out.phpt
@@ -77,67 +77,67 @@ STDERR (php://fd/2):
- disabling VT100: bool(true)
- current value : bool(false)
Not a stream:
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- enabling VT100 :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- enabling VT100 :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- disabling VT100:
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- disabling VT100:
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
-- current value :
-Warning: sapi_windows_vt100_support() expects parameter 1 to be resource, string given in %s on line %d
+- current value :
+Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://input):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
Invalid stream (php://memory):
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- enabling VT100 :
+- enabling VT100 :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- disabling VT100:
+- disabling VT100:
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
-- current value :
+- current value :
Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
bool(false)
File stream: