]> granicus.if.org Git - php/commitdiff
Change argument error message format
authorMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 25 Feb 2020 19:58:33 +0000 (20:58 +0100)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Wed, 26 Feb 2020 14:00:08 +0000 (15:00 +0100)
Closes GH-5211

357 files changed:
Zend/tests/008.phpt
Zend/tests/009.phpt
Zend/tests/arrow_functions/006.phpt
Zend/tests/bug31720.phpt
Zend/tests/bug39003.phpt
Zend/tests/bug42802.phpt
Zend/tests/bug43332_1.phpt
Zend/tests/bug45186.phpt
Zend/tests/bug45186_2.phpt
Zend/tests/bug48770_2.phpt
Zend/tests/bug48770_3.phpt
Zend/tests/bug61273.phpt
Zend/tests/bug68446.phpt
Zend/tests/bug70895.phpt
Zend/tests/bug70898.phpt
Zend/tests/bug72598.phpt
Zend/tests/bug72598_2.phpt
Zend/tests/bug73954.phpt
Zend/tests/bug74164.phpt
Zend/tests/call_user_func_001.phpt
Zend/tests/call_user_func_002.phpt
Zend/tests/call_user_func_006.phpt
Zend/tests/call_user_func_007.phpt
Zend/tests/call_user_func_008.phpt
Zend/tests/call_user_func_009.phpt
Zend/tests/call_user_func_array_invalid_type.phpt
Zend/tests/closure_027.phpt
Zend/tests/closure_059.phpt
Zend/tests/exception_017.phpt
Zend/tests/exception_handler_004.phpt
Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt
Zend/tests/function_arguments/variadic_argument_type_error.phpt
Zend/tests/generators/generator_with_type_check.phpt
Zend/tests/generators/generator_with_type_check_2.phpt
Zend/tests/generators/throw_not_an_exception.phpt
Zend/tests/methods-on-non-objects-call-user-func.phpt
Zend/tests/ns_071.phpt
Zend/tests/ns_072.phpt
Zend/tests/object_types/type_hint_in_class_method.phpt
Zend/tests/object_types/type_hint_in_function.phpt
Zend/tests/objects_022.phpt
Zend/tests/trait_type_errors.phpt
Zend/tests/type_declarations/array_001.phpt
Zend/tests/type_declarations/callable_001.phpt
Zend/tests/type_declarations/explicit_weak_include_strict.phpt
Zend/tests/type_declarations/inexistent_class_hint_with_scalar_arg.phpt
Zend/tests/type_declarations/internal_function_strict_mode.phpt
Zend/tests/type_declarations/iterable_001.phpt
Zend/tests/type_declarations/scalar_basic.phpt
Zend/tests/type_declarations/scalar_constant_defaults.phpt
Zend/tests/type_declarations/scalar_constant_defaults_error.phpt
Zend/tests/type_declarations/scalar_null.phpt
Zend/tests/type_declarations/scalar_strict.phpt
Zend/tests/type_declarations/scalar_strict_64bit.phpt
Zend/tests/type_declarations/scalar_strict_basic.phpt
Zend/tests/type_declarations/strict_call_weak.phpt
Zend/tests/type_declarations/strict_call_weak_explicit.phpt
Zend/tests/type_declarations/union_types/multiple_classes.phpt
Zend/tests/type_declarations/union_types/type_checking_strict.phpt
Zend/tests/type_declarations/union_types/type_checking_weak.phpt
Zend/tests/type_declarations/weak_include_strict.phpt
Zend/tests/typehints/or_null.phpt
Zend/tests/variadic/typehint_error.phpt
Zend/tests/variadic/typehint_suppressed_error.phpt
Zend/zend_API.c
Zend/zend_builtin_functions.c
Zend/zend_execute.c
Zend/zend_execute_API.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/curl/tests/curl_setopt_error.phpt
ext/date/tests/014.phpt
ext/date/tests/68062.phpt
ext/date/tests/DateTimeImmutable_createFromMutable.phpt
ext/date/tests/DateTime_createFromImmutable.phpt
ext/date/tests/bug36988.phpt
ext/date/tests/bug52062.phpt
ext/date/tests/bug70245.phpt
ext/date/tests/microtime_error.phpt
ext/date/tests/timezone_offset_get_error.phpt
ext/ffi/tests/045.phpt
ext/fileinfo/tests/finfo_open_001.phpt
ext/fileinfo/tests/finfo_open_error.phpt
ext/gd/tests/imagegd2_nullbyte_injection.phpt
ext/gd/tests/imagegd_nullbyte_injection.phpt
ext/gd/tests/imagexbm_nullbyte_injection.phpt
ext/gmp/tests/gmp_clrbit.phpt
ext/gmp/tests/gmp_pow.phpt
ext/gmp/tests/gmp_setbit.phpt
ext/imap/tests/imap_expunge_error.phpt
ext/imap/tests/imap_gc_error.phpt
ext/imap/tests/imap_headers.phpt
ext/imap/tests/imap_num_msg_error.phpt
ext/imap/tests/imap_num_recent_error.phpt
ext/imap/tests/imap_ping_error.phpt
ext/imap/tests/imap_timeout_basic.phpt
ext/intl/tests/breakiter___construct_error.phpt
ext/intl/tests/bug48227.phpt
ext/intl/tests/calendar_add_error.phpt
ext/intl/tests/calendar_before_after_error.phpt
ext/intl/tests/calendar_clear_error.phpt
ext/intl/tests/calendar_equals_error.phpt
ext/intl/tests/calendar_fieldDifference_error.phpt
ext/intl/tests/calendar_getDayOfWeekType_error.phpt
ext/intl/tests/calendar_getErrorCode_error.phpt
ext/intl/tests/calendar_getErrorMessage_error.phpt
ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
ext/intl/tests/calendar_getTimeZone_error.phpt
ext/intl/tests/calendar_getTime_error.phpt
ext/intl/tests/calendar_getType_error.phpt
ext/intl/tests/calendar_getWeekendTransition_error.phpt
ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
ext/intl/tests/calendar_inDaylightTime_error.phpt
ext/intl/tests/calendar_isEquivalentTo_error.phpt
ext/intl/tests/calendar_isLenient_error.phpt
ext/intl/tests/calendar_isSet_error.phpt
ext/intl/tests/calendar_isWeekend_error.phpt
ext/intl/tests/calendar_roll_error.phpt
ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
ext/intl/tests/calendar_setLenient_error.phpt
ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
ext/intl/tests/calendar_setTimeZone_error.phpt
ext/intl/tests/calendar_set_error.phpt
ext/intl/tests/calendar_toDateTime_error.phpt
ext/intl/tests/formatter_fail.phpt
ext/intl/tests/gregoriancalendar___construct_error.phpt
ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt
ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt
ext/intl/tests/msgfmt_fail2.phpt
ext/intl/tests/timezone_getDSTSavings_error.phpt
ext/intl/tests/timezone_getDisplayName_error.phpt
ext/intl/tests/timezone_getErrorCode_error.phpt
ext/intl/tests/timezone_getErrorMessage_error.phpt
ext/intl/tests/timezone_getID_error.phpt
ext/intl/tests/timezone_getOffset_error.phpt
ext/intl/tests/timezone_getRawOffset_error.phpt
ext/intl/tests/timezone_hasSameRules_error.phpt
ext/intl/tests/timezone_toDateTimeZone_error.phpt
ext/intl/tests/timezone_useDaylightTime_error.phpt
ext/intl/tests/transliterator_create_inverse_error.phpt
ext/intl/tests/transliterator_get_error_code_error.phpt
ext/intl/tests/transliterator_get_error_message_error.phpt
ext/libxml/tests/004.phpt
ext/libxml/tests/bug63389.phpt
ext/mbstring/tests/mb_ereg1.phpt
ext/mysqli/tests/mysqli_class_mysqli_warning.phpt
ext/mysqli/tests/mysqli_embedded_connect.phpt
ext/mysqli/tests/mysqli_fetch_object.phpt
ext/mysqli/tests/mysqli_fetch_object_oo.phpt
ext/oci8/tests/bug51291_1.phpt
ext/oci8/tests/conn_attr_4.phpt
ext/oci8/tests/lob_002.phpt
ext/oci8/tests/lob_021.phpt
ext/oci8/tests/lob_026.phpt
ext/oci8/tests/null_byte_1.phpt
ext/oci8/tests/privileged_connect.phpt
ext/oci8/tests/privileged_connect1.phpt
ext/odbc/tests/odbc_exec_001.phpt
ext/openssl/tests/openssl_csr_export_bacis.phpt
ext/openssl/tests/openssl_csr_export_to_file_basic.phpt
ext/openssl/tests/openssl_pkey_new_error.phpt
ext/pcre/tests/preg_grep_error1.phpt
ext/pcre/tests/preg_match_all_error1.phpt
ext/pcre/tests/preg_match_all_error2.phpt
ext/pcre/tests/preg_match_error1.phpt
ext/pcre/tests/preg_match_error2.phpt
ext/pcre/tests/preg_split_error1.phpt
ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
ext/phar/tests/badparameters.phpt
ext/phar/tests/bug64931/bug64931.phpt
ext/phar/tests/create_path_error.phpt
ext/phar/tests/fgc_edgecases.phpt
ext/phar/tests/fopen_edgecases2.phpt
ext/phar/tests/opendir_edgecases.phpt
ext/phar/tests/phar_extract.phpt
ext/phar/tests/phar_oo_006.phpt
ext/phar/tests/phar_unlinkarchive.phpt
ext/phar/tests/pharfileinfo_construct.phpt
ext/reflection/tests/ReflectionClass_getMethod_002.phpt
ext/reflection/tests/ReflectionClass_getProperty_002.phpt
ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt
ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
ext/reflection/tests/ReflectionExtension_constructor_error.phpt
ext/reflection/tests/ReflectionFunction_construct.001.phpt
ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt
ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
ext/reflection/tests/ReflectionMethod_invoke_error1.phpt
ext/reflection/tests/ReflectionReference_errors.phpt
ext/reflection/tests/bug42976.phpt
ext/reflection/tests/request38992.phpt
ext/session/tests/session_set_save_handler_iface_002.phpt
ext/snmp/tests/snmp-object-error.phpt
ext/soap/tests/bug77088.phpt
ext/sodium/tests/sodium_error_001.phpt
ext/spl/tests/CallbackFilterIteratorTest-002.phpt
ext/spl/tests/SplFileInfo_setFileClass_error.phpt
ext/spl/tests/SplFileInfo_setInfoClass_error.phpt
ext/spl/tests/SplFixedArray__construct_param_array.phpt
ext/spl/tests/SplFixedArray__construct_param_string.phpt
ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt
ext/spl/tests/SplTempFileObject_constructor_error.phpt
ext/spl/tests/arrayObject___construct_error1.phpt
ext/spl/tests/arrayObject_asort_basic1.phpt
ext/spl/tests/arrayObject_ksort_basic1.phpt
ext/spl/tests/arrayObject_setIteratorClass_error1.phpt
ext/spl/tests/bug54291.phpt
ext/spl/tests/bug54292.phpt
ext/spl/tests/bug77431.phpt
ext/spl/tests/bug78863.phpt
ext/spl/tests/fixedarray_005.phpt
ext/spl/tests/fixedarray_009.phpt
ext/spl/tests/fixedarray_015.phpt
ext/spl/tests/iterator_042.phpt
ext/spl/tests/iterator_044.phpt
ext/spl/tests/iterator_count.phpt
ext/spl/tests/iterator_to_array.phpt
ext/spl/tests/recursive_tree_iterator_003.phpt
ext/spl/tests/spl_004.phpt
ext/standard/filestat.c
ext/standard/string.c
ext/standard/tests/array/array_change_key_case_variation.phpt
ext/standard/tests/array/array_diff_uassoc_error.phpt
ext/standard/tests/array/array_diff_ukey_variation10.phpt
ext/standard/tests/array/array_filter_variation9.phpt
ext/standard/tests/array/array_intersect_ukey_variation8.phpt
ext/standard/tests/array/array_key_exists.phpt
ext/standard/tests/array/array_map_object1.phpt
ext/standard/tests/array/array_map_object2.phpt
ext/standard/tests/array/array_map_object3.phpt
ext/standard/tests/array/array_map_variation12.phpt
ext/standard/tests/array/array_map_variation14.phpt
ext/standard/tests/array/array_map_variation15.phpt
ext/standard/tests/array/array_map_variation16.phpt
ext/standard/tests/array/array_map_variation17.phpt
ext/standard/tests/array/array_search_variation3.phpt
ext/standard/tests/array/array_slice_variation1.phpt
ext/standard/tests/array/array_walk_objects.phpt
ext/standard/tests/array/array_walk_rec_objects.phpt
ext/standard/tests/array/array_walk_recursive_variation8.phpt
ext/standard/tests/array/array_walk_variation8.phpt
ext/standard/tests/array/bug40191.phpt
ext/standard/tests/array/in_array_variation3.phpt
ext/standard/tests/array/range_errors.phpt
ext/standard/tests/array/range_variation.phpt
ext/standard/tests/class_object/get_class_variation_001.phpt
ext/standard/tests/file/006_variation2.phpt
ext/standard/tests/file/bug39863.phpt
ext/standard/tests/file/chgrp.phpt
ext/standard/tests/file/disk_free_space_variation.phpt
ext/standard/tests/file/disk_total_space_variation.phpt
ext/standard/tests/file/file_get_contents_variation8-win32.phpt
ext/standard/tests/file/file_get_contents_variation8.phpt
ext/standard/tests/file/file_put_contents_variation8-win32.phpt
ext/standard/tests/file/file_put_contents_variation8.phpt
ext/standard/tests/file/filegroup_variation3.phpt
ext/standard/tests/file/fileinode_variation3.phpt
ext/standard/tests/file/fileowner_variation3.phpt
ext/standard/tests/file/fileperms_variation3.phpt
ext/standard/tests/file/flock_error.phpt
ext/standard/tests/file/fnmatch_variation.phpt
ext/standard/tests/file/fopen_variation10-win32.phpt
ext/standard/tests/file/fopen_variation11-win32.phpt
ext/standard/tests/file/glob_variation-win32-mb.phpt
ext/standard/tests/file/glob_variation-win32.phpt
ext/standard/tests/file/glob_variation.phpt
ext/standard/tests/file/is_dir_variation4.phpt
ext/standard/tests/file/is_executable_variation1.phpt
ext/standard/tests/file/is_file_variation4.phpt
ext/standard/tests/file/is_readable_variation1.phpt
ext/standard/tests/file/is_writable_variation1.phpt
ext/standard/tests/file/mkdir_rmdir_variation2.phpt
ext/standard/tests/file/readfile_variation10-win32.phpt
ext/standard/tests/file/readfile_variation10.phpt
ext/standard/tests/file/stream_rfc2397_006.phpt
ext/standard/tests/file/tempnam_variation3-win32.phpt
ext/standard/tests/file/tempnam_variation3.phpt
ext/standard/tests/file/tempnam_variation7-win32.phpt
ext/standard/tests/file/tempnam_variation7.phpt
ext/standard/tests/file/windows_links/bug78862.phpt
ext/standard/tests/general_functions/bug41970.phpt
ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt
ext/standard/tests/general_functions/callbacks_001.phpt
ext/standard/tests/general_functions/callbacks_002.phpt
ext/standard/tests/math/abs_variation.phpt
ext/standard/tests/math/bindec_variation1.phpt
ext/standard/tests/math/bindec_variation1_64bit.phpt
ext/standard/tests/math/ceil_variation1.phpt
ext/standard/tests/math/floor_variation1.phpt
ext/standard/tests/math/hexdec_variation1.phpt
ext/standard/tests/math/hexdec_variation1_64bit.phpt
ext/standard/tests/math/octdec_variation1.phpt
ext/standard/tests/math/round_variation1.phpt
ext/standard/tests/network/bug73594.phpt
ext/standard/tests/password/password_hash_error.phpt
ext/standard/tests/password/password_needs_rehash_error.phpt
ext/standard/tests/strings/addcslashes_001.phpt
ext/standard/tests/strings/bug54322.phpt
ext/standard/tests/strings/chunk_split_variation5.phpt
ext/standard/tests/strings/chunk_split_variation8.phpt
ext/standard/tests/strings/implode1.phpt
ext/standard/tests/strings/join_error.phpt
ext/standard/tests/strings/join_variation1.phpt
ext/standard/tests/strings/join_variation2.phpt
ext/standard/tests/strings/join_variation4.phpt
ext/standard/tests/strings/join_variation5.phpt
ext/standard/tests/strings/printf_variation1.phpt
ext/standard/tests/strings/sprintf_variation1.phpt
ext/standard/tests/strings/str_pad_variation1.phpt
ext/standard/tests/strings/str_replace_basic.phpt
ext/standard/tests/strings/str_replace_variation3.phpt
ext/standard/tests/strings/stripos_variation10.phpt
ext/standard/tests/strings/stripos_variation11.phpt
ext/standard/tests/strings/stristr_variation2.phpt
ext/standard/tests/strings/strpos.phpt
ext/standard/tests/strings/strrchr_variation10.phpt
ext/standard/tests/strings/strrchr_variation11.phpt
ext/standard/tests/strings/strripos_offset.phpt
ext/standard/tests/strings/strrpos_offset.phpt
ext/standard/tests/strings/strrpos_variation10.phpt
ext/standard/tests/strings/strrpos_variation11.phpt
ext/standard/tests/strings/strtr_variation6.phpt
ext/standard/tests/strings/strtr_variation8.phpt
ext/standard/tests/strings/vfprintf_error3.phpt
ext/standard/tests/strings/vfprintf_error4.phpt
ext/standard/tests/strings/vfprintf_variation20.phpt
ext/standard/tests/strings/vprintf_variation1.phpt
ext/standard/tests/strings/vsprintf_variation1.phpt
tests/classes/abstract_user_call.phpt
tests/classes/autoload_009.phpt
tests/classes/autoload_012.phpt
tests/classes/bug27504.phpt
tests/classes/tostring_004.phpt
tests/classes/type_hinting_001.phpt
tests/classes/type_hinting_002.phpt
tests/classes/type_hinting_003.phpt
tests/classes/type_hinting_004.phpt
tests/lang/bug24658.phpt
tests/lang/catchable_error_001.phpt
tests/lang/catchable_error_002.phpt
tests/lang/type_hints_001.phpt
tests/output/sapi_windows_vt100_support_winko_err.phpt
tests/output/sapi_windows_vt100_support_winko_in-err.phpt
tests/output/sapi_windows_vt100_support_winko_in-out-err.phpt
tests/output/sapi_windows_vt100_support_winko_in-out.phpt
tests/output/sapi_windows_vt100_support_winko_out-err.phpt
tests/output/sapi_windows_vt100_support_winko_out.phpt
tests/output/sapi_windows_vt100_support_winok_err.phpt
tests/output/sapi_windows_vt100_support_winok_in-err.phpt
tests/output/sapi_windows_vt100_support_winok_in-out-err.phpt
tests/output/sapi_windows_vt100_support_winok_in-out.phpt
tests/output/sapi_windows_vt100_support_winok_out-err.phpt
tests/output/sapi_windows_vt100_support_winok_out.phpt

index f597812fa80944c1041cfc3a51e28fdf9e113937..b53578dbb35efbcf69a7625028ab40d08d8f35c4 100644 (file)
@@ -25,7 +25,7 @@ var_dump(constant("test const"));
 echo "Done\n";
 ?>
 --EXPECTF--
-TypeError: define() expects argument #1 ($constant_name) to be of type string, array given
+TypeError: define(): Argument #1 ($constant_name) must be of type string, array given
 
 Notice: Constant TRUE already defined in %s on line %d
 bool(false)
index 222fd36297016ad3e95d3633bdd0f29df2dfb703..16c060389d34ef62342545d5feb0b89dd611c731 100644 (file)
@@ -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 argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
 string(3) "foo"
 string(4) "foo2"
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
 Done
index e0ca1e1b5c169922d34643ebbea1673ff727e01d..6bf4c683c86c430e91af22a85063a35a19ab8e5a 100644 (file)
@@ -32,7 +32,7 @@ try {
 --EXPECTF--
 int(2)
 int(10)
-{closure}() expects argument #1 ($x) to be of type int, string given, called in %s on line %d
+{closure}(): Argument #1 ($x) must 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)
 }
-{closure}() expects argument #2 ($args) to be of type ?int, string given, called in %s on line %d
+{closure}(): Argument #2 ($args) must be of type ?int, string given, called in %s on line %d
index ea4ba7753cf65d556d414c1f4558311244f143f0..fb3992eceed8e1c9f47f4bcd898f367b1a147811 100644 (file)
@@ -12,4 +12,4 @@ try {
 ?>
 --EXPECTF--
 Warning: Undefined variable: nonesuchvar in %s on line %d
-array_walk() expects argument #2 ($funcname) to be a valid callback, first array member is not a valid class name or object
+array_walk(): Argument #2 ($funcname) must be a valid callback, first array member is not a valid class name or object
index 758e3f9c838b2b86dc23b2b7ad9f128e0a1ef945..5f7c7849762dc2d432235130418ed1743f50e936 100644 (file)
@@ -20,7 +20,7 @@ test($obj);
 echo "Done\n";
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: test(): Argument #1 ($object) must be of type OtherClassName, ClassName given, called in %s:%d
 Stack trace:
 #0 %s(%d): test(Object(ClassName))
 #1 {main}
index 084b7c0e9d4ad6faf5b99570cc2774db4fabc742..375d7f6b5bbc9ebfa5a772185db3cce3d06c84f1 100644 (file)
@@ -37,7 +37,7 @@ ok
 ok
 ok
 
-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
+Fatal error: Uncaught TypeError: foo\test5(): Argument #1 ($bar) must be of type bar, foo\bar given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo\test5(Object(foo\bar))
 #1 {main}
index e7f52eae9c3e18df30c68cb69c28d825b1435af1..3b999646b57cfded10dcf4d6a55343274d472354 100644 (file)
@@ -12,7 +12,7 @@ $foo = new foo;
 $foo->bar($foo); // Ok!
 $foo->bar(new \stdclass); // Error, ok!
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: foobar\foo::bar(): Argument #1 ($a) must be of type foobar\foo, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(%d): foobar\foo->bar(Object(stdClass))
 #1 {main}
index d60cab50887df969f321222273c4fb44eebe1ca0..7e4d0e5a7331e6d77a4de008d80b8e12ef0a1d6a 100644 (file)
@@ -54,4 +54,4 @@ string(1) "y"
 ok
 __callstatic:
 string(3) "www"
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot access self:: when no class scope is active
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access self:: when no class scope is active
index 262b379180222d45c649498e199267bcbb3839d0..01f5734a4f5cc59a35b7b1c1d8f46b1da7ffbd38 100644 (file)
@@ -52,5 +52,5 @@ string(1) "y"
 __call:
 string(1) "y"
 ok
-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
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'bar' does not have a method 'www'
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access self:: when no class scope is active
index c5c17acb835ff6fa38c1be044aeaf1812a9e444e..b8f88445f8189e791e3e5b560d74e55d32dc8937 100644 (file)
@@ -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 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'
+call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method A::func22()
+call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'A' does not have a method 'inexistent'
index 07cc8025df8590c45c8dca575c110f0f6ab8c537..0ce0d6911987a28a61cd53dcb2c8577ee7a930d4 100644 (file)
@@ -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 argument #1 ($function) to be a valid callback, class 'B' does not have a method 'inexistent'
+call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'B' does not have a method 'inexistent'
index e9d67f9d2a26edea2fbb4d639c9ec99cc13cf81e..45461729cbdc68798ec5cdcc393f8bf4a3ce905a 100644 (file)
@@ -11,5 +11,5 @@ $args = array_fill(0, 64 * 1024 - 64, 0);
 call_user_func_array(function(&$a) {}, $args);
 echo strval("okey");
 --EXPECTF--
-Warning: {closure}() expects argument #1 ($a) to be passed by reference, value given in %s on line %d
+Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d
 okey
index c9d833a37f6a1a441380933492075f8af5c0c6c9..34cdb23149cb3f960d6d39f4e597c463fa2a800b 100644 (file)
@@ -32,7 +32,7 @@ array(1) {
   int(1)
 }
 
-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
+Fatal error: Uncaught TypeError: a(): Argument #1 ($a) must be of type array, null given, called in %s:%d
 Stack trace:
 #0 %s(%d): a(NULL)
 #1 {main}
index 0d4dc470043246a1e9e2af0e8036f6fefb383274..9aa3706362f19d03ed69627ed1ad01b1fd1ed9cb 100644 (file)
@@ -20,6 +20,6 @@ try {
 }
 ?>
 --EXPECT--
-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
+array_map(): Argument #1 ($callback) must be a valid callback, function '%n' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '%n %i' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name
index 2a0fabd138458cf44c2f817548fb4631447e5f3b..ea67acaaf860a4213e89208d45677a352562b04a 100644 (file)
@@ -13,4 +13,4 @@ try {
 }
 ?>
 --EXPECT--
-array_map() expects argument #1 ($callback) to be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name
index acf40cbba05e23d93041886ec1576e22d9dd0d9b..741abc35e227b6dd24bd31c963f01b3df382a798 100644 (file)
@@ -17,10 +17,10 @@ new class {
 };
 ?>
 --EXPECTF--
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 object(class@anonymous)#1 (0) {
 }
 
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 object(class@anonymous)#1 (0) {
 }
index 75c4894dff9f38f6d053aa3e5a94508e4966f847..9a9274aae4253e5dff659c8a9dc7bbaa4e2f0a23 100644 (file)
@@ -20,8 +20,8 @@ new class {
 };
 ?>
 --EXPECTF--
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 int(0)
 
-Warning: ref() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 int(0)
index 062d438b600b305a45443d670037a1456942d8dd..bff81f500120c9bb2cb0b7aa6e356563fbfc6b2a 100644 (file)
@@ -16,7 +16,7 @@ takes_int(log(tan(3.14)));
 float(NAN)
 bool(true)
 
-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
+Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($int) must be of type int, float given, called in %s:%d
 Stack trace:
 #0 %s(9): takes_int(NAN)
 #1 {main}
index e0dbed9a195a4f1c175761b569fc8150f6c6edb4..36d681290d12d1b2f98b1ab444790c67cf475ec6 100644 (file)
@@ -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: Foo\{closure}() expects argument #1 ($ref) to be passed by reference, value given in %s:%d
+Fatal error: Uncaught Exception: Foo\{closure}(): Argument #1 ($ref) must 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)
index 8ad76564597ca906e76726025d360cb0cf2b33bd..34234271b36b9afb6d327f6f251b50bb6735f038 100644 (file)
@@ -37,5 +37,5 @@ namespace testing {
 ?>
 --EXPECT--
 string(6) "foobar"
-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()
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access private method testing\foo::priv()
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot access protected method testing\foo::prot()
index 3ac930854353d183ee89c68e3d35c082a3f9fbe8..c06803334a2c4166eaec38275cb7602394a4f4e3 100644 (file)
@@ -31,11 +31,11 @@ try {
 ?>
 --EXPECTF--
 string(3) "foo"
-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
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'foo' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class '' not found
 
 Warning: Undefined variable: foo in %s on line %d
-call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object
+call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
 
 Warning: Undefined variable: foo in %s on line %d
-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(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
index 624ce2391c2e56610a83ffc4be1ed1720f92fe86..e45c81dc108bf193cd0c28b09e3678cd1fbfb5d0 100644 (file)
@@ -21,8 +21,8 @@ var_dump($y);
 
 ?>
 --EXPECTF--
-Warning: Foo\bar() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: Foo\bar(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 int(42)
 
-Warning: Foo\bar() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: Foo\bar(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 int(42)
index 8efa3ab9018d5b4cab50e65db98d671e3e6b83a2..4dd7341add7a21401f63e29c39e42995db586b3b 100644 (file)
@@ -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: foo() expects argument #1 ($ref) to be passed by reference, value given in %s on line %d
+Warning: foo(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
 array(0) {
 }
index c710360a1325267ad20c3df08f9c1b545e469f55..1d20bc60d6608017a3eff701ca8eb6fdce72c175 100644 (file)
@@ -25,30 +25,30 @@ var_dump($i, $j);
 
 ?>
 --EXPECTF--
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by 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
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
 bool(true)
 int(0)
 int(0)
 
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by 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
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
 bool(true)
 int(0)
 int(0)
 
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by 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
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
 bool(true)
 int(0)
 int(0)
 
-Warning: test() expects argument #1 ($ref1) to be passed by reference, value given in %s on line %d
+Warning: test(): Argument #1 ($ref1) must be passed by 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
+Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
 bool(true)
 int(0)
 int(0)
index ebbecd73e690d9d05afe0152ec67d1357f5a0bdf..6f2ec7a4b6b58ba632f5c02d1d5bea2358a38d80 100644 (file)
@@ -10,8 +10,8 @@ var_dump(\call_user_func('sort', []));
 
 ?>
 --EXPECTF--
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
 bool(true)
 
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
 bool(true)
index a7b5fb3cb7b71b85f26978fdc055505763f2ad58..785a6e35e9076e7bee9e7efaea1cde37e7172221 100644 (file)
@@ -15,4 +15,4 @@ try {
 }
 ?>
 --EXPECT--
-call_user_func_array() expects argument #2 ($args) to be of type array, null given
+call_user_func_array(): Argument #2 ($args) must be of type array, null given
index bffd69c11a6cff3aeec7c17d808789302cb03ade..ceffcd72abb689141cc0fcaa92ceb7b429381e4b 100644 (file)
@@ -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: test() expects argument #1 ($a) to be of type Closure, stdClass given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: test(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(%d): test(Object(stdClass))
 #1 {main}
index c63e654f2d0fa5e2c76701f39d959c1550b1a8fc..ab418e42b7e18d2fae07c62c82a973a59a560b26 100644 (file)
@@ -33,6 +33,6 @@ try {
     echo "Exception: " . $e->getMessage() . "\n";
 }
 --EXPECTF--
-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
+Exception: {closure}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d
+Exception: {closure}(): Argument #1 ($a) must be of type A, B given
+Exception: {closure}(): Argument #1 ($a) must be of type A, B given
index 4299ada5c0427af185c28fc1ed079e5b214ea334..f2f5f964ce8f0cad23c0622a00bb9367f791bd97 100644 (file)
@@ -28,7 +28,7 @@ Error: Cannot call abstract method C::foo() in %s:%d
 Stack trace:
 #0 {main}
 
-TypeError: foo() expects argument #1 ($x) to be of type callable, string given, called in %s on line %d and defined in %s:%d
+TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo('C::foo')
 #1 {main}
index e4684e942dd9fa44ac685aaa2dac3bc0e4dc8d14..757a1b7f2d3d181cd35589edc048a9c50bac96a8 100644 (file)
@@ -9,7 +9,7 @@ set_exception_handler(array("", ""));
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: set_exception_handler() expects argument #1 ($exception_handler) to be a valid callback in %s on line %d
+Warning: set_exception_handler(): Argument #1 ($exception_handler) must 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(): Argument #1 ($exception_handler) must be a valid callback in %s on line %d
 Done
index c8977ece99ea5cce9105ca4cc5c9967f443a13cf..206b96149b4a2f4f80b409bcdbea714c8b848b9e 100644 (file)
@@ -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
-bat() expects argument #1 ($foo) to be of type int, string given, called in %s on line %d
+bat(): Argument #1 ($foo) must be of type int, string given, called in %s on line %d
 TypeError
-bat() expects argument #2 ($bar) to be of type string, int given, called in %s on line %d
+bat(): Argument #2 ($bar) must be of type string, int given, called in %s on line %d
index ee244ab4a1ad9d1daf7c407efd2b4cb021255da8..3a9bc050ccc35335a7fb11bcb6ff5957f810b626 100644 (file)
@@ -18,5 +18,5 @@ try {
 }
 
 --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
+foo(): Argument #2 ($bar) must be of type int, array given, called in %s on line %d
+foo(): Argument #4 ($bar) must be of type int, array given, called in %s on line %d
index 90636406b4096c3701ab85ecffc2821aee5b37ae..67d19ab9479e3fe27930e0f964b716d37200f5c3 100644 (file)
@@ -6,7 +6,7 @@ function gen(array $a) { yield; }
 gen(42);
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: gen(): Argument #1 ($a) must be of type array, int given, called in %s:%d
 Stack trace:
 #0 %sgenerator_with_type_check.php(3): gen(42)
 #1 {main}
index 445c8f4a9fedf5aecdb49aeb1c1aa6c0981723c1..21e8ab8bedc0dbc540ca835381ede107ab957ebf 100644 (file)
@@ -18,5 +18,5 @@ try {
 }
 ?>
 --EXPECTF--
-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
+gen(): Argument #1 ($a) must be of type array, int given, called in %s on line %d
+gen(): Argument #1 ($a) must be of type array, int given, called in %s on line %d
index dcb1d3d0b014feae43d0edaa6dd9c1dc95fa71ab..d1ff81882f8a48d19ad8e417679e42fac729c644 100644 (file)
@@ -12,7 +12,7 @@ $gen->throw(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Generator::throw() expects argument #1 ($exception) to be of type Throwable, object given in %s:%d
+Fatal error: Uncaught TypeError: Generator::throw(): Argument #1 ($exception) must be of type Throwable, object given in %s:%d
 Stack trace:
 #0 %s(%d): Generator->throw(Object(stdClass))
 #1 {main}
index 5ccf9e0d26653cd7bd81a6cc5657c75ba3a72c5e..c158cd1ca12ac1d5082c2f81dff9df6f9b1d2264 100644 (file)
@@ -10,4 +10,4 @@ try {
 }
 ?>
 --EXPECT--
-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(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
index cee6431be0b6496b06fdc3837d040e95498141cd..b0126e399fae236dd6d13304900e818c4b393650 100644 (file)
@@ -18,7 +18,7 @@ new bar(new \stdclass);
 --EXPECTF--
 NULL
 
-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
+Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?array, object given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo\bar->__construct(Object(stdClass))
 #1 {main}
index 642963265858653dc966bfe79f5f9b0ea9141881..b41fe29778faac870a5ddb4450c8679a353b42a6 100644 (file)
@@ -30,7 +30,7 @@ object(foo\test)#%d (0) {
 }
 NULL
 
-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
+Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?foo\foo, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo\bar->__construct(Object(stdClass))
 #1 {main}
index 098bfc0c52cb0fb154d119ec022037adc62a1839..f23189cb50cd09b06fc672a17f5df92a13fafed0 100644 (file)
@@ -11,7 +11,7 @@ $one = new One();
 $one->a(new One());
 $one->a(123);
 --EXPECTF--
-Fatal error: Uncaught TypeError: One::a() expects argument #1 ($obj) to be of type object, int given, called in %s:%d
+Fatal error: Uncaught TypeError: One::a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
 Stack trace:
 #0 %s(9): One->a(123)
 #1 {main}
index e834997f4d5528d8aded963e7f4621f5f785d2ef..f35e73b3a744faf287a39fcf8be31663ee733c34 100644 (file)
@@ -9,7 +9,7 @@ function a(object $obj) {}
 a(new A());
 a(123);
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
 Stack trace:
 #0 %s(7): a(123)
 #1 {main}
index ce2d2f7c0032de414d57086c9829d241d622b3d5..5fa6f8e95d6a563f804ae83f9401076af6b47868 100644 (file)
@@ -36,7 +36,7 @@ object(bar)#%d (0) {
 object(baz)#%d (0) {
 }
 
-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
+Fatal error: Uncaught TypeError: foo::testFoo(): Argument #1 ($obj) must be of type foo, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo->testFoo(Object(stdClass))
 #1 {main}
index 1d29714a2f1e41b44d78c9dffc7f91a2dbaafb8e..2f5069a4331fc8366933d71ec0763f4cd138213c 100644 (file)
@@ -39,5 +39,5 @@ try {
 ?>
 --EXPECTF--
 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
+C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
+C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
index 0e08bd8b7f2594b039d00eb7ee40fede2c65d702..5739ae1b72e26a128e5aa8628090b57cffef6a23 100644 (file)
@@ -12,7 +12,7 @@ foo(123);
 --EXPECTF--
 3
 
-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
+Fatal error: Uncaught TypeError: foo(): Argument #1 ($a) must be of type array, int given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo(123)
 #1 {main}
index e6c2702235df5573ec0eb82a817be2c5fa9fd2e4..6b555f40e691285bad74703de0fad0f72b2f9169 100644 (file)
@@ -29,7 +29,7 @@ array(2) {
   string(3) "foo"
 }
 
-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
+Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type callable, array given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo(Array)
 #1 {main}
index 5ad7bd17fcb88cf6a37812cc2f51f9514f17c06a..60d4159dc24b90f8a70808b43ca041d0c0ddf7eb 100644 (file)
@@ -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: takes_int() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($x) must be of type int, float given, called in %s:%d
 Stack trace:
 #0 %s(%d): takes_int(1)
 #1 %s(%d): require('%s')
index 661616fb92f2c9a301e590281c180e0a0061cb9d..d70f7e240a6a1e651e80550186d062b296a6e61e 100644 (file)
@@ -8,7 +8,7 @@ foo(null);
 
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: foo(): Argument #1 ($ex) must be of type bar, null given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo(NULL)
 #1 {main}
index b3b9adc9d3b4e8de7b107a1af5d9712e0cacf1bd..04c59ae3410ef7ea72334933b2d2e21f0d6d4737 100644 (file)
@@ -28,8 +28,8 @@ try {
 ?>
 --EXPECT--
 *** Trying Ord With Integer
-*** Caught ord() expects argument #1 ($character) to be of type string, int given
+*** Caught ord(): Argument #1 ($character) must be of type string, int given
 *** Trying Array Map With Invalid Callback
-*** Caught array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
+*** Caught array_map(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
 *** Trying Strlen With Float
-*** Caught strlen() expects argument #1 ($str) to be of type string, float given
+*** Caught strlen(): Argument #1 ($str) must be of type string, float given
index 856dc63c4d8d42b81e40531ba6f77a7bdbb5882c..e5f21957badee411fa54761b50b491f520e3dfcb 100644 (file)
@@ -44,4 +44,4 @@ object(ArrayIterator)#1 (1) {
     int(3)
   }
 }
-test() expects argument #1 ($iterable) to be of type iterable, int given, called in %s on line %d
+test(): Argument #1 ($iterable) must be of type iterable, int given, called in %s on line %d
index ef10e67ac075ef9739b29a7c384b308015b7be91..e4b8ab5c51e0b0b22dfa6283ee85eb951519cdf9 100644 (file)
@@ -78,16 +78,16 @@ E_NOTICE: A non well formed numeric value encountered on line %d
 int(1)
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying int(%d)
 int(%d)
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must 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 {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying object(Stringable)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must 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 {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must 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 {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying object(Stringable)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must 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 {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must 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 {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must 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 {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying object(Stringable)#%s (0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying resource(%d) of type (stream)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
 
 Done
index 28f0252cdfb1227c417fe42f9a17e9788c46e98a..5e3826de7dcb633a1b5174bcc68676565ca81168 100644 (file)
@@ -96,9 +96,9 @@ float(10.7)
 Testing string add val
 string(14) "this is a test"
 Testing int with default null constant
-int_val_default_null() expects argument #1 ($a) to be of type int, null given, called in %s on line %d
+int_val_default_null(): Argument #1 ($a) must be of type int, null given, called in %s on line %d
 Testing int with null null constant
-int_val_default_null() expects argument #1 ($a) to be of type int, null given, called in %s on line %d
+int_val_default_null(): Argument #1 ($a) must 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
index 66d56e72df41783270d11705e08dc2ac83ade18b..72cc9820dad4f9c7707c32473fc5ab8ce3c8c9e6 100644 (file)
@@ -13,7 +13,7 @@ var_dump(int_val());
 
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: int_val(): Argument #1 ($a) must be of type int, string given, called in %s:%d
 Stack trace:
 #0 %s(%d): int_val()
 #1 {main}
index ab9647ba9c9b2f52455a79ec02db67ca30ba41bc..d1ade3ad48c4326c708380d0731be5733a315908 100644 (file)
@@ -27,13 +27,13 @@ echo PHP_EOL . "Done";
 ?>
 --EXPECTF--
 Testing int:
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
 Testing float:
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
 Testing string:
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
 Testing bool:
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
 Testing int nullable:
 NULL
 Testing float nullable:
index 89ab6a024b06c80cd5e196a3de8c81f529e1be3e..032fd3d3015be54e3a990bc8c423eb521b027210 100644 (file)
@@ -60,52 +60,52 @@ Testing 'int' type:
 int(1)
 
 *** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying float(1)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying int(2147483647)
 int(2147483647)
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
 
 *** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
 
 *** Trying NULL
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must 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 {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must 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 {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must 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 {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
 
 *** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
 
 *** Trying NULL
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
 
 Testing 'string' type:
 
 *** Trying int(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
 
 *** Trying string(1) "1"
 string(1) "1"
 
 *** Trying float(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
 
 *** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must 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 {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
 
 *** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
 
 *** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
 
 *** Trying NULL
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
 
 Testing 'bool' type:
 
 *** Trying int(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
 
 *** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying float(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
 
 *** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
 
 *** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying int(2147483647)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must 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 {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
 
 Done
index 2d00b6f23b1a233b430c05a48c50e3dff8b50dc6..5818606b4cfda72071e49fe4a5b9143e3d20cfc5 100644 (file)
@@ -60,52 +60,52 @@ Testing 'int' type:
 int(1)
 
 *** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying float(1)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying int(9223372036854775807)
 int(9223372036854775807)
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
 
 *** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
 
 *** Trying NULL
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must 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 {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must 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 {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying int(9223372036854775807)
 float(9.223372036854776E+18)
@@ -137,42 +137,42 @@ float(9.223372036854776E+18)
 float(NAN)
 
 *** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
 
 *** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
 
 *** Trying NULL
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
 
 Testing 'string' type:
 
 *** Trying int(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
 
 *** Trying string(1) "1"
 string(1) "1"
 
 *** Trying float(1)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
 
 *** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must 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 {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
 
 *** Trying bool(true)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
 
 *** Trying bool(false)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
 
 *** Trying NULL
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
 
 Testing 'bool' type:
 
 *** Trying int(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
 
 *** Trying string(1) "1"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying float(1)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
 
 *** Trying float(1.5)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
 
 *** Trying string(2) "1a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying string(1) "a"
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying string(0) ""
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
 
 *** Trying int(9223372036854775807)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
 
 *** Trying float(NAN)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must 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 {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
 
 *** Trying array(0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying object(Stringable)#6 (0) {
 }
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
 
 Done
index d3050314f42b25fd62001159071cba30ea576564..cb385422bdb0ad25ef387f9db52ddc3ef4342a9f 100644 (file)
@@ -57,28 +57,28 @@ Testing 'int' type:
 int(1)
 
 *** Trying float value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
 
 *** Trying string value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
 
 *** Trying true value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
 
 *** Trying false value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
 
 *** Trying null value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
 
 *** Trying array value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
 
 *** Trying resource value
-*** Caught {closure}() expects argument #1 ($i) to be of type int, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must 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 {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
 
 *** Trying true value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
 
 *** Trying false value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
 
 *** Trying null value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
 
 *** Trying array value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
 
 *** Trying resource value
-*** Caught {closure}() expects argument #1 ($f) to be of type float, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
 
 Testing 'string' type:
 
 *** Trying integer value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, int given, called in %s on line %d
 
 *** Trying float value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
 
 *** Trying string value
 string(1) "1"
 
 *** Trying true value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
 
 *** Trying false value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, bool given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
 
 *** Trying null value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
 
 *** Trying array value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
 
 *** Trying resource value
-*** Caught {closure}() expects argument #1 ($s) to be of type string, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
 
 Testing 'bool' type:
 
 *** Trying integer value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, int given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
 
 *** Trying float value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, float given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
 
 *** Trying string value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, string given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must 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 {closure}() expects argument #1 ($b) to be of type bool, null given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
 
 *** Trying array value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, array given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
 
 *** Trying resource value
-*** Caught {closure}() expects argument #1 ($b) to be of type bool, resource given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
 
 Done
index e20524b2d51f891429cb733d020d76daf3bcc56c..55da67a6ef8a62ebdeb5674368a759fbe56157b8 100644 (file)
@@ -13,7 +13,7 @@ require 'strict_call_weak_2.inc';
 function_declared_in_weak_mode(1.0);
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: function_declared_in_weak_mode(): Argument #1 ($x) must be of type int, float given, called in %s:%d
 Stack trace:
 #0 %s(%d): function_declared_in_weak_mode(1)
 #1 {main}
index b6b382e5cce22e302092dadc0fd094fc35e89345..14b460aa9ddca32306ea05c836f1ad9ea70081a1 100644 (file)
@@ -13,7 +13,7 @@ require 'strict_call_weak_explicit_2.inc';
 function_declared_in_weak_mode(1.0);
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: function_declared_in_weak_mode(): Argument #1 ($x) must be of type int, float given, called in %s:%d
 Stack trace:
 #0 %s(%d): function_declared_in_weak_mode(1)
 #1 {main}
index 31874155865a20c9847fae75bd1477aaeea2b376..b45fc02d83fa5034fb96ae34544242283a4668f3 100644 (file)
@@ -68,7 +68,7 @@ int(42)
 int(42)
 int(42)
 Cannot assign stdClass to property Test::$prop of type X|Y|Z|int
-Test::method() expects argument #1 ($arg) to be of type X|Y|Z|int, stdClass given, called in %s on line %d
+Test::method(): Argument #1 ($arg) must be of type X|Y|Z|int, stdClass given, called in %s on line %d
 object(X)#4 (0) {
 }
 object(X)#6 (0) {
index 81c75328d6f7ffe146ef8050a5453d0bc78f9c48..4887b3b7967a5e313850307165a274fbffdc821a 100644 (file)
@@ -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('{closure}() expects argument #1', 'Argument ...', $msg);
+            $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
             echo $msg;
         }
         echo "\n";
@@ -70,86 +70,86 @@ Type int|float:
 42               => 42
 42.0             => 42.0
 INF              => INF
-"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
+"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
 
 Type int|float|false:
 42               => 42
 42.0             => 42.0
 INF              => INF
-"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
+"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
 false            => false
-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
+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
 
 Type int|float|bool:
 42               => 42
 42.0             => 42.0
 INF              => INF
-"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
+"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
 true             => true
 false            => false
-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
+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
 
 Type int|bool:
 42               => 42
-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
+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
 true             => true
 false            => false
-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
+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
 
 Type int|string|null:
 42               => 42
-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.0             => Argument ... must be of type string|int|null, float given
+INF              => Argument ... must be of type string|int|null, float given
 "42"             => "42"
 "42.0"           => "42.0"
 "42x"            => "42x"
 "x"              => "x"
 ""               => ""
-true             => Argument ... ($arg) to be of type string|int|null, bool given
-false            => Argument ... ($arg) to be of type string|int|null, bool given
+true             => Argument ... must be of type string|int|null, bool given
+false            => Argument ... must be of type string|int|null, bool given
 null             => null
-[]               => 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
+[]               => 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
 
 Type string|bool:
-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               => 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"             => "42"
 "42.0"           => "42.0"
 "42x"            => "42x"
@@ -157,55 +157,55 @@ INF              => Argument ... ($arg) to be of type string|bool, float given
 ""               => ""
 true             => true
 false            => false
-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
+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
 
 Type float|array:
 42               => 42.0
 42.0             => 42.0
 INF              => INF
-"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
+"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
 []               => []
-new stdClass     => Argument ... ($arg) to be of type array|float, object given
-new WithToString => Argument ... ($arg) to be of type array|float, object given
+new stdClass     => Argument ... must be of type array|float, object given
+new WithToString => Argument ... must be of type array|float, object given
 
 Type string|array:
-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               => 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"             => "42"
 "42.0"           => "42.0"
 "42x"            => "42x"
 "x"              => "x"
 ""               => ""
-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
+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
 []               => []
-new stdClass     => Argument ... ($arg) to be of type array|string, object given
-new WithToString => Argument ... ($arg) to be of type array|string, object given
+new stdClass     => Argument ... must be of type array|string, object given
+new WithToString => Argument ... must be of type array|string, object given
 
 Type bool|array:
-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
+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
 true             => true
 false            => false
-null             => Argument ... ($arg) to be of type array|bool, null given
+null             => Argument ... must be of type array|bool, null 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
+new stdClass     => Argument ... must be of type array|bool, object given
+new WithToString => Argument ... must be of type array|bool, object given
index c48e95f640e7458b119981ff6788bf18e556b300..1b9fa4b316eb8d6aef3f9ba70ccd90337d10cdfc 100644 (file)
@@ -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('{closure}() expects argument #1', 'Argument ...', $msg);
+            $msg = str_replace('{closure}(): Argument #1 ($arg)', '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 ... ($arg) to be of type int|float, string given
-""               => Argument ... ($arg) to 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             => 1
 false            => 0
-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
+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
 
 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 ... ($arg) to be of type int|float|false, string given
-""               => Argument ... ($arg) to 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             => 1
 false            => false
-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
+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
 
 Type int|float|bool:
 42               => 42
@@ -107,10 +107,10 @@ INF              => INF
 ""               => false
 true             => true
 false            => false
-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
+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
 
 Type int|bool:
 42               => 42
@@ -123,10 +123,10 @@ INF              => true
 ""               => false
 true             => true
 false            => false
-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
+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
 
 Type int|string|null:
 42               => 42
@@ -140,8 +140,8 @@ INF              => "INF"
 true             => 1
 false            => 0
 null             => null
-[]               => Argument ... ($arg) to be of type string|int|null, array given
-new stdClass     => Argument ... ($arg) to be of type string|int|null, object given
+[]               => Argument ... must be of type string|int|null, array given
+new stdClass     => Argument ... must 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 ... ($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
+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 => "__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 ... ($arg) to be of type array|float, string given
-""               => Argument ... ($arg) to 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             => 1.0
 false            => 0.0
-null             => Argument ... ($arg) to be of type array|float, null given
+null             => Argument ... must be of type array|float, null 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
+new stdClass     => Argument ... must be of type array|float, object given
+new WithToString => Argument ... must be of type array|float, object given
 
 Type string|array:
 42               => "42"
@@ -187,9 +187,9 @@ INF              => "INF"
 ""               => ""
 true             => "1"
 false            => ""
-null             => Argument ... ($arg) to be of type array|string, null given
+null             => Argument ... must be of type array|string, null given
 []               => []
-new stdClass     => Argument ... ($arg) to be of type array|string, object given
+new stdClass     => Argument ... must 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 ... ($arg) to be of type array|bool, null given
+null             => Argument ... must be of type array|bool, null 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
+new stdClass     => Argument ... must be of type array|bool, object given
+new WithToString => Argument ... must be of type array|bool, object given
index 61f33818e2420df572226eb552639b890aaa8adc..9bf6c0a47f604d7642d825e052b367713e0fe62b 100644 (file)
@@ -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: takes_int() expects argument #1 ($x) to be of type int, float given, called in %s on line %d and defined in %s:%d
+Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($x) must be of type int, float given, called in %s:%d
 Stack trace:
 #0 %s(%d): takes_int(1)
 #1 %s(%d): require('%s')
index 55714620c28b6cf0f6506c303419ead7da5c33ae..2d0683edbbc15ec56d4f55f5600d022c59f5d663 100644 (file)
@@ -219,39 +219,39 @@ try {
 
 ?>
 --EXPECTF--
-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
+TypeError: unloadedClass(): Argument #1 ($param) must be of type ?I\Dont\Exist, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(8): unloadedClass(Object(stdClass))
 #1 {main}
-TypeError: loadedClass() expects argument #1 ($param) to be of type ?RealClass, stdClass given, called in %s on line %d and defined in %s:%d
+TypeError: loadedClass(): Argument #1 ($param) must be of type ?RealClass, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(20): loadedClass(Object(stdClass))
 #1 {main}
-TypeError: loadedInterface() expects argument #1 ($param) to be of type ?RealInterface, stdClass given, called in %s on line %d and defined in %s:%d
+TypeError: loadedInterface(): Argument #1 ($param) must be of type ?RealInterface, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(26): loadedInterface(Object(stdClass))
 #1 {main}
-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
+TypeError: unloadedClass(): Argument #1 ($param) must be of type ?I\Dont\Exist, int given, called in %s:%d
 Stack trace:
 #0 %s(32): unloadedClass(1)
 #1 {main}
-TypeError: loadedClass() expects argument #1 ($param) to be of type ?RealClass, int given, called in %s on line %d and defined in %s:%d
+TypeError: loadedClass(): Argument #1 ($param) must be of type ?RealClass, int given, called in %s:%d
 Stack trace:
 #0 %s(38): loadedClass(1)
 #1 {main}
-TypeError: loadedInterface() expects argument #1 ($param) to be of type ?RealInterface, int given, called in %s on line %d and defined in %s:%d
+TypeError: loadedInterface(): Argument #1 ($param) must be of type ?RealInterface, int given, called in %s:%d
 Stack trace:
 #0 %s(44): loadedInterface(1)
 #1 {main}
-TypeError: callableF() expects argument #1 ($param) to be of type ?callable, int given, called in %s on line %d and defined in %s:%d
+TypeError: callableF(): Argument #1 ($param) must be of type ?callable, int given, called in %s:%d
 Stack trace:
 #0 %s(52): callableF(1)
 #1 {main}
-TypeError: iterableF() expects argument #1 ($param) to be of type ?iterable, int given, called in %s on line %d and defined in %s:%d
+TypeError: iterableF(): Argument #1 ($param) must be of type ?iterable, int given, called in %s:%d
 Stack trace:
 #0 %s(60): iterableF(1)
 #1 {main}
-TypeError: intF() expects argument #1 ($param) to be of type ?int, object given, called in %s on line %d and defined in %s:%d
+TypeError: intF(): Argument #1 ($param) must be of type ?int, object given, called in %s:%d
 Stack trace:
 #0 %s(68): intF(Object(stdClass))
 #1 {main}
index 712e21d3ac1f12a3935930eb24876888841f84db..3d92214cf390b2caf40eb3ab2f63496ab8863108 100644 (file)
@@ -33,7 +33,7 @@ array(3) {
   }
 }
 
-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
+Fatal error: Uncaught TypeError: test(): Argument #3 ($args) must be of type array, int given, called in %s:%d
 Stack trace:
 #0 %s(%d): test(Array, Array, 2)
 #1 {main}
index d1168f4025deb91e8c2aa86e32883edb78c8d83c..8bec0389f8c26ed3b775648cbf2d22165b2c368e 100644 (file)
@@ -15,4 +15,4 @@ try {
 
 ?>
 --EXPECTF--
-string(%d) "test() expects argument #3 ($args) to be of type array, int given, called in %s on line %d"
+string(%d) "test(): Argument #3 ($args) must be of type array, int given, called in %s on line %d"
index a739303cf3156975a68cc8c4e03c99c1bd204c56..74afc4747454022f1d912f8a873f0b8369721db9 100644 (file)
@@ -216,7 +216,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_error(int num, z
                return;
        }
 
-       zend_argument_type_error(num, "to be %s, %s given", expected_error[expected_type], zend_zval_type_name(arg));
+       zend_argument_type_error(num, "must be %s, %s given", expected_error[expected_type], zend_zval_type_name(arg));
 }
 /* }}} */
 
@@ -226,7 +226,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num,
                return;
        }
 
-       zend_argument_type_error(num, "to be of type %s, %s given", name, zend_zval_type_name(arg));
+       zend_argument_type_error(num, "must be of type %s, %s given", name, zend_zval_type_name(arg));
 }
 /* }}} */
 
@@ -236,7 +236,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error(int num, char *e
                return;
        }
 
-       zend_argument_type_error(num, "to be a valid callback, %s", error);
+       zend_argument_type_error(num, "must be a valid callback, %s", error);
        efree(error);
 }
 /* }}} */
@@ -259,9 +259,10 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_error(zend_class_entry *erro
        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
+       zend_throw_error(error_ce, "%s%s%s(): 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);
 }
@@ -283,13 +284,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))) {
-                       zend_argument_type_error(num, "to be a class name derived from %s, '%s' given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
+                       zend_argument_type_error(num, "must be a class name derived from %s, '%s' given", ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg));
                        *pce = NULL;
                        return 0;
                }
        }
        if (!*pce) {
-               zend_argument_type_error(num, "to be a valid class name, '%s' given", Z_STRVAL_P(arg));
+               zend_argument_type_error(num, "must be a valid class name, '%s' given", Z_STRVAL_P(arg));
                return 0;
        }
        return 1;
@@ -745,10 +746,10 @@ static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec
                }
                if (!(flags & ZEND_PARSE_PARAMS_QUIET) && (*expected_type || error)) {
                        if (error) {
-                               zend_argument_type_error(arg_num, "to be %s", error);
+                               zend_argument_type_error(arg_num, "must be %s", error);
                                efree(error);
                        } else {
-                               zend_argument_type_error(arg_num, "to be of type %s, %s given", expected_type, zend_zval_type_name(arg));
+                               zend_argument_type_error(arg_num, "must be of type %s, %s given", expected_type, zend_zval_type_name(arg));
                        }
                } else if (error) {
                        efree(error);
index 96a6b21ae2892eac07658441898a117c62d434ee..66cf80d64b6a27a23ea3db096a29de69a019ee24 100644 (file)
@@ -1388,7 +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 argument #1 ($error_handler) to be a valid callback", get_active_function_name());
+                       zend_error(E_WARNING, "%s(): Argument #1 ($error_handler) must be a valid callback", get_active_function_name());
                        zend_string_release_ex(error_handler_name, 0);
                        return;
                }
@@ -1452,7 +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 argument #1 ($exception_handler) to be a valid callback", get_active_function_name());
+                       zend_error(E_WARNING, "%s(): Argument #1 ($exception_handler) must be a valid callback", get_active_function_name());
                        zend_string_release_ex(exception_handler_name, 0);
                        return;
                }
index b851439e396bf7461ca623ac06955650f1fb6df9..f550614130d35631a18b5a8200e67ec8645a620e 100644 (file)
@@ -692,16 +692,21 @@ ZEND_API ZEND_COLD void zend_verify_arg_error(
 
                if (zf->common.type == ZEND_USER_FUNCTION) {
                        if (ptr && ptr->func && ZEND_USER_CODE(ptr->func->common.type)) {
-                               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);
+                               zend_type_error("%s%s%s(): Argument #%d ($%s) must 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("%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);
+                               zend_type_error("%s%s%s(): Argument #%d ($%s) must 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("%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_type_error("%s%s%s(): Argument #%d ($%s) must 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);
@@ -1925,7 +1930,7 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_param_must_be_ref(con
 {
        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",
+       zend_error(E_WARNING, "%s%s%s(): Argument #%d%s%s%s must be passed by reference, value given",
                func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
                func->common.scope ? "::" : "",
                ZSTR_VAL(func->common.function_name),
@@ -2550,8 +2555,9 @@ static ZEND_COLD void ZEND_FASTCALL zend_array_key_exists_error(
                ZVAL_UNDEFINED_OP2();
        }
        if (!EG(exception)) {
-               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)));
+               zend_type_error("array_key_exists(): Argument #2 ($array) must be of type array, %s given",
+                       zend_get_type_by_const(Z_TYPE_P(subject))
+               );
        }
 }
 
index 80d0cf26ee66113ac1bd283776f08d3d0178962c..514c40ec1bab8a40336925698e84cde6d1e63cf3 100644 (file)
@@ -751,7 +751,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
                                        const char *arg_name = get_function_arg_name(func, i + 1);
 
                                        zend_error(E_WARNING,
-                                               "%s%s%s() expects argument #%d%s%s%s to be passed by reference, value given",
+                                               "%s%s%s(): Argument #%d%s%s%s must be passed by reference, value given",
                                                func->common.scope ? ZSTR_VAL(func->common.scope->name) : "",
                                                func->common.scope ? "::" : "",
                                                ZSTR_VAL(func->common.function_name),
index 7f0de717a4bb1008cd631fd0a7a922fd5d2204e7..bf5a156389ed2e7cf12ba64cb6252ff694d35c3e 100644 (file)
@@ -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 argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+               zend_type_error("%s(): Argument #1 ($function) must 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 argument #2 ($args) to be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
+               zend_type_error("call_user_func_array(): Argument #2 ($args) must 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 argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+                               zend_type_error("strlen(): Argument #1 ($str) must 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 argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+                               zend_type_error("get_class(): Argument #1 ($object) must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                        }
                        break;
index c9bb2011310f8338c844331834f65470b08197a5..c87df4e871545d83d18f2d5c39275b1b3e0a9afa 100644 (file)
@@ -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 argument #2 ($args) to be of type array, %s given", zend_get_type_by_const(Z_TYPE_P(args)));
+               zend_type_error("call_user_func_array(): Argument #2 ($args) must 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 argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+                               zend_type_error("strlen(): Argument #1 ($str) must 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 argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+               zend_type_error("%s(): Argument #1 ($function) must 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 argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+               zend_type_error("%s(): Argument #1 ($function) must 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 argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+                               zend_type_error("get_class(): Argument #1 ($object) must 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 argument #1 ($function) to be a valid callback, %s", Z_STRVAL_P(RT_CONSTANT(opline, opline->op1)), error);
+               zend_type_error("%s(): Argument #1 ($function) must 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 argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+                               zend_type_error("strlen(): Argument #1 ($str) must 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 argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+                               zend_type_error("get_class(): Argument #1 ($object) must 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 argument 1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+                               zend_type_error("Argument 1 ($object) passed to get_class() must 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 argument #1 ($str) to be of type string, %s given", zend_get_type_by_const(Z_TYPE_P(value)));
+                               zend_type_error("strlen(): Argument #1 ($str) must 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 argument #1 ($object) to be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
+                               zend_type_error("get_class(): Argument #1 ($object) must be of type object, %s given", zend_get_type_by_const(Z_TYPE_P(op1)));
                                ZVAL_UNDEF(EX_VAR(opline->result.var));
                        }
                        break;
index e6a76e7afacf6d336dd5435e0c27c6c5449306c7..62a6002f39ab09594c34af7dbb55c59cb523ca51 100644 (file)
@@ -20,6 +20,6 @@ curl_setopt($ch, -10, 0);
 ?>
 --EXPECTF--
 *** curl_setopt() call with incorrect parameters
-curl_setopt() expects argument #2 ($option) to be of type int, string given
+curl_setopt(): Argument #2 ($option) must be of type int, string given
 
 Warning: curl_setopt(): Invalid curl configuration option in %scurl_setopt_error.php on line %d
index ce346c2ba986101cb033aadfd023872640996958..a2f81090e77e438bd3267b12a236660b1dba3579 100644 (file)
@@ -33,7 +33,7 @@ object(DateTimeZone)#%d (2) {
 }
 int(0)
 
-Fatal error: Uncaught TypeError: timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given in %s:%d
+Fatal error: Uncaught TypeError: timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, object given in %s:%d
 Stack trace:
 #0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone))
 #1 {main}
index 63e40a3bd00cbc31afa1fc3ac5c95197cea36b2c..2a7c6ad61af38a38545528132576d321182f5f1e 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 --EXPECT--
 3600
-DateTimeZone::getOffset() expects argument #1 ($datetime) to be of type DateTimeInterface, int given
+DateTimeZone::getOffset(): Argument #1 ($datetime) must be of type DateTimeInterface, int given
index 8651a90d34e52b7bac6018f6fa8229489d187717..3ac17de49f0c2aade408ce3e8748cc0368c4466e 100644 (file)
@@ -24,4 +24,4 @@ object(DateTimeImmutable)#%d (3) {
   ["timezone"]=>
   string(13) "Europe/London"
 }
-DateTimeImmutable::createFromMutable() expects argument #1 ($object) to be of type DateTime, object given
+DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, object given
index 153e7f3cbffa51e654ef2a873a9b67f76ce29635..6407333f0688afc7fe70a19c35429f77a84306e8 100644 (file)
@@ -30,4 +30,4 @@ object(DateTime)#%d (3) {
   string(13) "Europe/London"
 }
 bool(true)
-DateTime::createFromImmutable() expects argument #1 ($object) to be of type DateTimeImmutable, object given
+DateTime::createFromImmutable(): Argument #1 ($object) must be of type DateTimeImmutable, object given
index ecb6e8ad7ac17607d5743cb75153cc7df83c1ec1..275dc80a0d50539493128907a60dc6724f859e28 100644 (file)
@@ -13,4 +13,4 @@ try {
 }
 ?>
 --EXPECT--
-mktime() expects argument #6 ($year) to be of type int, float given
+mktime(): Argument #6 ($year) must be of type int, float given
index 639868aecb356c4101ba98d9fcb7a3e12f7c42a6..de2936c85341838930a79a79d32b3bf6feebe992 100644 (file)
@@ -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 argument #1 ($timestamp) to be of type int, float given
+DateTime::setTimestamp(): Argument #1 ($timestamp) must be of type int, float given
 string(32) "5138-11-16 09:46:40 100000000000"
 bool(false)
 string(10) "1215752192"
index 2443d91d019da2a9a156f1c0c5b433f01391ce33..9fd566de9a9963870c894c647e3ae0779bb8f923 100644 (file)
@@ -10,4 +10,4 @@ try {
 }
 ?>
 --EXPECT--
-strtotime() expects argument #2 ($now) to be of type int, object given
+strtotime(): Argument #2 ($now) must be of type int, object given
index d746e5b3ac7bb23b5365b5ae7458ac59b6a2adf2..9ab11355e8b3c270da741ec7194463d17c67e56c 100644 (file)
@@ -47,11 +47,11 @@ float(%s)
     int(0)
   }
 }
-microtime() expects argument #1 ($get_as_float) to be of type bool, array given
+microtime(): Argument #1 ($get_as_float) must be of type bool, array given
 
 --> bad arg: object(stdClass)#%d (0) {
 }
-microtime() expects argument #1 ($get_as_float) to be of type bool, object given
+microtime(): Argument #1 ($get_as_float) must be of type bool, object given
 
 --> bad arg: int(1)
 float(%s)
index 1782ced195aea692041b1bbddf2e6c2d28c86313..864dc54c2a9fbc3dd42b0093b8addb9becd80915 100644 (file)
@@ -65,16 +65,16 @@ try {
 *** Testing timezone_offset_get() : error conditions ***
 
 -- Testing timezone_offset_get() function with an invalid values for $object argument --
-string(92) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given"
+string(87) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, object given"
 
-string(89) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, int given"
+string(84) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, int given"
 
-string(90) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, null given"
+string(85) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, null given"
 
 
 -- Testing timezone_offset_get() function with an invalid values for $datetime argument --
-string(99) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, object given"
+string(94) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, object given"
 
-string(96) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, int given"
+string(91) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, int given"
 
-string(97) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, null given"
+string(92) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, null given"
index 411a03702b1795f1ef0efa27e9d09bfeebbdf7b3..7503fb763b002f5165ab95c8ce05be954702fa12 100644 (file)
@@ -23,5 +23,5 @@ try {
 --EXPECTF--
 bool(true)
 bool(false)
-TypeError: FFI::isNull() expects argument #1 ($ptr) to be of type FFI\CData, null given
+TypeError: FFI::isNull(): Argument #1 ($ptr) must be of type FFI\CData, null given
 FFI\Exception: Cannot instantiate FFI\CData of zero size
index 2ceb80444c7f56a77d2742dac0011553ff7d7cd9..70998971424171538f71a8df03e21546d024177a 100644 (file)
@@ -19,7 +19,7 @@ var_dump(finfo_open(FILEINFO_MIME, '/foo/bar/inexistent'));
 
 ?>
 --EXPECTF--
-finfo_open() expects argument #2 ($arg) to be a valid path, string given
+finfo_open(): Argument #2 ($arg) must be a valid path, string given
 resource(%d) of type (file_info)
 resource(%d) of type (file_info)
 
index 6e0c02c4890846aade85b51c6f54718fea4075fe..72b6db3e62144ea3ede7d513622c74ad23e6483a 100644 (file)
@@ -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 argument #1 ($options) to be of type int, string given
-finfo::__construct() expects argument #1 ($options) to be of type int, string given
+finfo_open(): Argument #1 ($options) must be of type int, string given
+finfo::__construct(): Argument #1 ($options) must be of type int, string given
index 775da28b7fc431ee3763e738b928a40903acfb6c..eda6cfed426fc2220054786a70920cf77bba601c 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 ?>
 --EXPECT--
-imagegd() expects argument #2 ($to) to be a valid path, string given
+imagegd(): Argument #2 ($to) must be a valid path, string given
index e9d0af3c93c9f0c8473b5bec05a0ab7400dce8b3..d10e7dc31b7bebb2c7e647db30eef9611e1e613f 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 ?>
 --EXPECT--
-imagegd() expects argument #2 ($to) to be a valid path, string given
+imagegd(): Argument #2 ($to) must be a valid path, string given
index a84bc78eebd164e97ad42b913ec554de22e91e5c..7a24ebf816b0f86ba77a994cfdf28db17215e278 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 ?>
 --EXPECTF--
-imagexbm() expects argument #2 ($filename) to be a valid path, string given
+imagexbm(): Argument #2 ($filename) must be a valid path, string given
index 5169cc79865f55724ea6cf16da5c6e37280ae730..491ef79bfc8a99175ce864ab15997a9c37d9d96d 100644 (file)
@@ -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 argument #1 ($a) to be of type GMP, array given
+gmp_clrbit(): Argument #1 ($a) must be of type GMP, array given
 Done
index afa8cc13e912d0f6b3a269c354587ce328d8c5a9..449f6686671569ae980ea5896e61e02feeedc437 100644 (file)
@@ -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 argument #2 ($exp) to be of type int, array given
+gmp_pow(): Argument #2 ($exp) must be of type int, array given
 
 Warning: gmp_pow(): Unable to convert variable to GMP - wrong type in %s on line %d
 bool(false)
index 30d902124791973e33ed12c422a23245d0359a68..b883060e5425bcbd5da0f2be4cc9d85b0ffb82d0 100644 (file)
@@ -57,6 +57,6 @@ string(1) "7"
 string(12) "100008388608"
 string(12) "100000000000"
 string(12) "100000000008"
-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
+gmp_setbit(): Argument #1 ($a) must be of type GMP, string given
+gmp_setbit(): Argument #1 ($a) must be of type GMP, array given
 Done
index 3b6686a68d532c8632b6fe8da5e73d3c59968742..b27038093cfa327f276bd9513666005582b92c07 100644 (file)
@@ -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 argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_num_recent(): Argument #1 must be of type resource, string 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
+Warning: imap_num_recent(): Argument #1 must be of type resource, bool given in %s on line %d
index e3c05c68550f39e430e3031806868f84e017dede..2d825ce1fdf19691d302450fac5c1f6170477b92 100644 (file)
@@ -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 argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_gc(): Argument #1 must be of type resource, string 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(): Argument #1 must 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
index 73c0c52306556a24dab4dea0adddc62c5c65534b..1ff30bfc10f0be3ce14f61b156a161c81efacc08 100644 (file)
@@ -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 argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_headers(): Argument #1 must be of type resource, string given in %s on line %d
 
-Warning: imap_headers() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_headers(): Argument #1 must be of type resource, bool given in %s on line %d
index e6a5650e6d68923d4802cba831315c8dd8cf8617..28a727ddb23d4a7c0b30e1ebbdf4c69678adbb34 100644 (file)
@@ -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 argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_num_msg(): Argument #1 must be of type resource, string 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
+Warning: imap_num_msg(): Argument #1 must be of type resource, bool given in %s on line %d
index 4f4fef50541bfdcd4f5da61023fd55d9fd2d0757..0bb877c76df482e44bea3c7da78eb7f4327ff040 100644 (file)
@@ -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 argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_expunge(): Argument #1 must be of type resource, string given in %s on line %d
 
-Warning: imap_expunge() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_expunge(): Argument #1 must be of type resource, bool given in %s on line %d
index 918407ac0636a7072b6b0a2fbee2f6966543c537..2aedcbddd50b4a52ecd7dbad5ef7b3205eb2130b 100644 (file)
@@ -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 argument #1 to be of type resource, string given in %s on line %d
+Warning: imap_ping(): Argument #1 must be of type resource, string given in %s on line %d
 
-Warning: imap_ping() expects argument #1 to be of type resource, bool given in %s on line %d
+Warning: imap_ping(): Argument #1 must be of type resource, bool given in %s on line %d
index 7b83309ef7a52c0a7bb3c35234a08e95530fc7a3..afe1d2d081821803e864e7b7922443c17e675471 100644 (file)
@@ -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 argument #1 to be of type int, %s given in %s on line %d
+Warning: imap_timeout(): Argument #1 must be of type int, %s given in %s on line %d
 GET values:
 int(%d)
 int(%d)
index 35a145dceccb1bab7a8703defce1a62bd7b6c466..c8cbdcc6de3e2e075dbea24a38c5c1407c90125a 100644 (file)
@@ -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 argument #2 ($areCompiled) to be of type bool, array given in %s on line %d
+Exception: IntlRuleBasedBreakIterator::__construct(): Argument #2 ($areCompiled) must 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
index 28a614da030a5a05dc40ef255f720d5dcd9b4593..9635b70906e6de20f94de9f9989812160f0008e5 100644 (file)
@@ -16,7 +16,7 @@ foreach (['', 1, NULL, $x] as $value) {
 
 ?>
 --EXPECT--
-NumberFormatter::format() expects argument #1 ($value) to be of type number, string given
+NumberFormatter::format(): Argument #1 ($value) must be of type number, string given
 string(1) "1"
 string(1) "0"
-NumberFormatter::format() expects argument #1 ($value) to be of type number, object given
+NumberFormatter::format(): Argument #1 ($value) must be of type number, object given
index e30ed028568616ee7143da1d7e2e7d4ca7adce7c..59b9abc053d85c4c0764a1eb12a8c623a6ad85c7 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_add(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_add(1, 2, 3)
 #1 {main}
index a9bbed25e6d3cfddeba7f7ba6b17cdfa2bb3ccc3..8fd6db2a1be3a40c4b21680c07dd785a5878cde0 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::after(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
-error: 0, IntlCalendar::before() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::before(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
 error: 0, IntlCalendar::after() expects exactly 1 parameter, 2 given
 
index c56f9065fc69564ed421fca59d34ac01bf604d03..dd2c1e0e75b6fa0251a29f06f59b977409c8c20c 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_clear(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_clear(1, 2)
 #1 {main}
index 0d4665af60983f1fd19c015196656731deec20bc..9da547fe5a27a108fad9678ddf3560ae1101a3da 100644 (file)
@@ -47,10 +47,10 @@ try {
 --EXPECT--
 error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
 
-error: 0, IntlCalendar::equals() expects argument #1 ($calendar) to be of type IntlCalendar, object given
+error: 0, IntlCalendar::equals(): Argument #1 ($calendar) must be of type IntlCalendar, object given
 
 error: 0, IntlCalendar::equals() expects exactly 1 parameter, 2 given
 
-error: 0, intlcal_equals() expects argument #2 ($calendar) to be of type IntlCalendar, array given
+error: 0, intlcal_equals(): Argument #2 ($calendar) must be of type IntlCalendar, array given
 
-error: 0, intlcal_equals() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given
+error: 0, intlcal_equals(): Argument #1 ($calendarObject) must be of type IntlCalendar, int given
index 872fea825d8e563d1b817c263e325b1272889276..bf9ab18c763ed2edcf75476e64afa751173edca1 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_field_difference(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_field_difference(1, 0, 1)
 #1 {main}
index 644e580f11683117c241894a4b80ec36124a79b7..5408f966e2d6e5de6f518446c80bd8e311e024a9 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_day_of_week_type(1, 1)
 #1 {main}
index 4d69bdedfd6fb24a94b551d2784330efe8b70350..5bf65b59c54420530e5f0422f72cfe6956823e53 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_error_code(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_error_code(NULL)
 #1 {main}
index 68b1ad1d6cf671a89c116252c58ffd5ec36ebba0..733194fee9a4e99b49305aba2b16c5b6cca72b34 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_error_message(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_error_message(NULL)
 #1 {main}
index 22de5dadcdbd76b0abd75d6292f86d552c20c88e..fa37edd380c2f9abf1e72672188ce800ff5996c8 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_first_day_of_week(1)
 #1 {main}
index 644a7eab1c5e8590b0ffa9869d913759db31159e..9a84ac971948502a3617b9a751f422773ca256df 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_minimal_days_in_first_week(1)
 #1 {main}
index b49861ba49404d68dcbdc21ac01c2a4c3475068f..3c8082d62b56000298f01418ffc78e0989c1d267 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_skipped_wall_time_option(1)
 #1 {main}
index be9585a8217c31ca21630b9c9b69fd1c2fad165f..11bc5631c8b1dd4153b5ec841cbb22dffeab5cd3 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_time_zone(1)
 #1 {main}
index 6c917103cb941c7b58eef252c1ac3d72fe438ae1..6018cd7c92706bfe856bb1d7b4982eb3739c7205 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_time(1)
 #1 {main}
index f623bd3e8bc2b41ce307ddb44784be5a3412cdd2..83bf07250841718366f36fb963a1d9aa36ce5cb2 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_type(1)
 #1 {main}
index b9d7f30299a63230c3b7fa77e124bb3ecc5c5ed9..3be22cfc9c872658943cbb8ab1e440ee9fe8b736 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_get_weekend_transition(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_get_weekend_transition(1, 1)
 #1 {main}
index 7392294b961df0830e941588dc1e54e00c3d17a0..318738f0941f5881952eadeba63d038daf31afd5 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_least_maximum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
-error: 0, intlcal_get_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_maximum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
-error: 0, intlcal_get_greatest_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_greatest_minimum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
-error: 0, intlcal_get_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_get_minimum(): Argument #1 ($calendar) must be of type IntlCalendar, int given
index 5fe75fe17a4dcf8ac46267ac2ee90cbeca6710ea..207d9e5cdb795e6d5643174649de49ce874c5cdd 100644 (file)
@@ -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 argument #2 ($field) to be of type int, string given
+error: 0, intlcal_get(): Argument #2 ($field) must be of type 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_maximum(): Argument #2 ($field) must be of type int, string given
 
-error: 0, intlcal_get_actual_minimum() expects argument #2 ($field) to be of type int, string given
+error: 0, intlcal_get_actual_minimum(): Argument #2 ($field) must be of type int, string given
 
 error: 0, intlcal_get() expects exactly 2 parameters, 1 given
 
index fb4492cb08b578276059ce41fe68bb8393cba753..4b6d88aa4cb5e9c9a2c0a417b80964807b5e732f 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_in_daylight_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_in_daylight_time(1)
 #1 {main}
index 4acb3b6143e7f4fcbf3368fd14875c62188cd323..a801bba952370a7904b38aeed042c2f454ca5b12 100644 (file)
@@ -49,14 +49,14 @@ try {
     echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
 }
 --EXPECT--
-error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
 
 error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given
 
-error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must 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 argument #2 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_is_equivalent_to(): Argument #2 ($calendar) must be of type IntlCalendar, int given
 
-error: 0, intlcal_is_equivalent_to() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given
+error: 0, intlcal_is_equivalent_to(): Argument #1 ($calendarObject) must be of type IntlCalendar, int given
index 9e4a573908ac45de3bab9666a49be531c4eb4b1b..dafefcc64094804ceb78bea95914e934b1ba2824 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_is_lenient(1)
 #1 {main}
index 905e7c082d912eec21a64641ead75d0fdc85ccd9..969a5130a599de8920ab12c4996e1b209934dd6e 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_is_set(1, 2)
 #1 {main}
index 138939d61ef73ba9e5e19347c98c504d0f632ec2..aed66aefda959c2fe3a40111ad7861d9ab4a6249 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_is_weekend(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_is_weekend(1)
 #1 {main}
index e37c6d24b2da7a5ac44e0a7a57f8aab76692ea86..de110a864cb054b1afd0a1e36dd05c6bb7169588 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_roll(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_roll(1, 2, 3)
 #1 {main}
index abaad1570849fcdc8304af1892e8bbc5acc8a380..163e41fe482863bd14b03bdc8216b5240f7c4836 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_set_first_day_of_week(1, 2)
 #1 {main}
index 7e16004dc25dc4a9d64641df05e7c71e9c476a25..4dadb15c9f23a5a57bd52c518071bdc166d583bd 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_set_lenient(1, false)
 #1 {main}
index 1973018628865a0e95638e2217648939003a55af..c1b1a944fb87f74a57c129e9eeedad2021b90047 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week(): Argument #1 ($calendar) must 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}
index 795d5d56f9e8e8a5e90e11367f9975b95bae32e0..c89e502e7a7a338d501f48bff37b0652de296ff0 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_set_repeated_wall_time_option(1, 1)
 #1 {main}
index e8204c0d9f3cbb436b8b714b9c7f87184bd92384..722b876ec370c721642104da2ef3af0266cbbe3b 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given
+error: 0, intlcal_set_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given
index 397deb48da0e7afe541b72fffabac19d65c828cc..21133536049ceeb9456e0e4375cb87d78199c525 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_set(1, 2, 3)
 #1 {main}
index e6ed8faf9c102ede09a8e9ef81b5f78e7cca893a..20f45ef6d24de55ed61c5a991f5a3415edce6c5e 100644 (file)
@@ -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 argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlcal_to_date_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlcal_to_date_time(3)
 #1 {main}
index 8103f1f1a350e8832a1d9b7bead4aa0cca40b1d5..3201c9a82b1081f2f1f10b63633662e5565cca78 100644 (file)
@@ -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 argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: NumberFormatter::__construct(): Argument #1 ($locale) must be of type string, array given in %s on line %d
 'U_ZERO_ERROR'
 
-TypeError: NumberFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: NumberFormatter::create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
 'U_ZERO_ERROR'
 
-TypeError: numfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: numfmt_create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
 'U_ZERO_ERROR'
 
 IntlException: Constructor failed in %s on line %d
index 83de5565871627c22f23401d8a0b55b354ff0512..1f8d90b518b74af308476bc34e61dffd92465bf3 100644 (file)
@@ -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 argument #6 to be of type int, array given
+IntlGregorianCalendar::__construct(): Argument #6 must be of type int, array given
index 2caa05538819cfabc9920e1de21c85aa050b45ee..3fe4faf46417eeb3446fc9f0c0ecf0a7ed7c7b66 100644 (file)
@@ -14,7 +14,7 @@ var_dump(intlgregcal_get_gregorian_change(1));
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change(): Argument #1 ($calendar) must be of type IntlGregorianCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlgregcal_get_gregorian_change(1)
 #1 {main}
index 6223256deff7dbe568e263efd0f6bc3abc5851d9..9cee3881f3f181d92db6cfe50f5b66f967d30717 100644 (file)
@@ -14,7 +14,7 @@ var_dump(intlgregcal_is_leap_year(1, 2));
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: intlgregcal_is_leap_year() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d
+Fatal error: Uncaught TypeError: intlgregcal_is_leap_year(): Argument #1 ($calendar) must be of type IntlGregorianCalendar, int given in %s:%d
 Stack trace:
 #0 %s(%d): intlgregcal_is_leap_year(1, 2)
 #1 {main}
index c02fcb35c39e5b9d80c848c679e9358d07778aed..b53e70e8ea280eb668b84fea813d45f15485f638 100644 (file)
@@ -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 argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: MessageFormatter::__construct(): Argument #1 ($locale) must be of type string, array given in %s on line %d
 'U_ZERO_ERROR'
 
-TypeError: MessageFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: MessageFormatter::create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
 'U_ZERO_ERROR'
 
-TypeError: msgfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d
+TypeError: msgfmt_create(): Argument #1 ($locale) must be of type string, array given in %s on line %d
 'U_ZERO_ERROR'
 
 IntlException: Constructor failed in %s on line %d
index e5802d1ef46ed3132e2ffd4d4912deaff6458175..fe59f3cae44351c6bc97809e6ae57ff0cdcc44c7 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_dst_savings(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_get_dst_savings(NULL)
 #1 {main}
index 7861f25fe6c5464d3a1081da9f0c035de43889aa..0a76fcf1e93e724cbfd8878c6ed3de466896bce4 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_display_name(): Argument #1 ($tz) must 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}
index 91d0167b8a52a25055b740a6ac2c49dc09718a29..c20e3c666a02052ba2f821126c1dd4d7517a1ae1 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_error_code(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_get_error_code(NULL)
 #1 {main}
index d492a956ea2d61787b8db37a419836ab7b2664ba..9cd26d4f4545baf6fe9870f2fffe6a8a8c665ebe 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_error_message(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_get_error_message(NULL)
 #1 {main}
index 23c4cd172660f788b10c9aea01da9661ae7e0779..da79d7c1bb7ea3e4798bc1064d78fc7150173eed 100644 (file)
@@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING);
 intltz_get_id(null);
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: intltz_get_id() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_id(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_get_id(NULL)
 #1 {main}
index d9715b499850989d0d9ed1e02bd7da72bac490b0..639b690595e7186f3567832950a54b8a64484ca4 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_offset(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_get_offset(NULL, %d, false, NULL, NULL)
 #1 {main}
index 5b495322a1a8e0dc5bf30710130ba11484ab0272..612fa9b39d58d33d43f1e5826b4315051d711a7b 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_get_raw_offset(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_get_raw_offset(NULL)
 #1 {main}
index 4f99dc6eb5ea6e40d79b40b96a98c0758f37f96c..99d2a2e21d2c5a49f6caf9d6484326dcf25616ea 100644 (file)
@@ -31,7 +31,7 @@ try {
 }
 --EXPECT--
 int(0)
-string(106) "IntlTimeZone::hasSameRules() expects argument #1 ($otherTimeZone) to be of type IntlTimeZone, string given"
+string(101) "IntlTimeZone::hasSameRules(): Argument #1 ($otherTimeZone) must be of type IntlTimeZone, string given"
 
 int(0)
-string(88) "intltz_has_same_rules() expects argument #1 ($tz) to be of type IntlTimeZone, null given"
+string(83) "intltz_has_same_rules(): Argument #1 ($tz) must be of type IntlTimeZone, null given"
index fc07b16ad50335886d4feb6af22efbabb2e8bd68..530c73e3bee978901f113b6c6b58ebd384393f92 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, int given in %s:%d
+Fatal error: Uncaught TypeError: intltz_to_date_time_zone(): Argument #1 ($tz) must be of type IntlTimeZone, int given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_to_date_time_zone(1)
 #1 {main}
index 283e42ea237e443c891220e6736f09049a9365ff..6f702848a94eee51c088edb7b2f5b3d169c1a904 100644 (file)
@@ -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 argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d
+Fatal error: Uncaught TypeError: intltz_use_daylight_time(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
 Stack trace:
 #0 %s(%d): intltz_use_daylight_time(NULL)
 #1 {main}
index 3b069cb2302493e285cb0505c319b10057ae37c7..a93554043d4a2a6ba4291a50818a37bddf844452 100644 (file)
@@ -10,7 +10,7 @@ ini_set("intl.error_level", E_WARNING);
 transliterator_create_inverse("jj");
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: transliterator_create_inverse() expects argument #1 ($orig_trans) to be of type Transliterator, string given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_create_inverse(): Argument #1 ($orig_trans) must be of type Transliterator, string given in %s:%d
 Stack trace:
 #0 %s(%d): transliterator_create_inverse('jj')
 #1 {main}
index bfd3c1b118a3a5978e7a8d35b4ac75d66a0880a6..64f9ea5cc2a38c7c9098ee34e81f928b50f04d83 100644 (file)
@@ -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 argument #1 ($trans) to be of type Transliterator, array given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_get_error_code(): Argument #1 ($trans) must be of type Transliterator, array given in %s:%d
 Stack trace:
 #0 %s(%d): transliterator_get_error_code(Array)
 #1 {main}
index 543480d55e3315cb4ee593b48111ce300f16160c..9c2e837da385afc5ca34ef80b604ee5ef1879386 100644 (file)
@@ -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 argument #1 ($trans) to be of type Transliterator, array given in %s:%d
+Fatal error: Uncaught TypeError: transliterator_get_error_message(): Argument #1 ($trans) must be of type Transliterator, array given in %s:%d
 Stack trace:
 #0 %s(%d): transliterator_get_error_message(Array)
 #1 {main}
index ad05ca1b9f5a1e87b64dd65651672f517c3660be..93c3c497a29dfe14964da93ee5d7a938c97463d8 100644 (file)
@@ -28,15 +28,15 @@ echo "Done\n";
 
 ?>
 --EXPECT--
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, null given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, null given
 bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, string given
 bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, int given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, int given
 bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, object given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, object given
 bool(true)
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, array given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, array given
 bool(true)
 NULL
 bool(true)
index 12b3a032a56f32999c363052f4f54240375f4fb8..88fce5d115be444be396e9a84fbd3dfb533e6298 100644 (file)
@@ -14,5 +14,5 @@ try {
 echo "okey";
 ?>
 --EXPECT--
-libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, string given
 okey
index 3f6c1132d1fa3c138fe411f73ed60c7f38edf899..27e321bb64036563e37ac0d3788cefd9242daa5b 100644 (file)
@@ -45,7 +45,7 @@ array(3) {
   array(0) {
   }
 }
-mb_ereg() expects argument #1 ($pattern) to be of type string, array given
+mb_ereg(): Argument #1 ($pattern) must be of type string, array given
 array(3) {
   [0]=>
   array(0) {
@@ -55,7 +55,7 @@ array(3) {
   [2]=>
   &string(0) ""
 }
-mb_ereg() expects argument #2 ($string) to be of type string, array given
+mb_ereg(): Argument #2 ($string) must be of type string, array given
 array(3) {
   [0]=>
   int(1)
index 0cd2696c5aff45c41c47bfff0d837e1dceb27ed4..f11984d0efb8be6135d8550950d209d9fcdfaad8 100644 (file)
@@ -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 argument #1 to be of type object, null given in %s on line %d
+Warning: mysqli_warning::mysqli_warning(): Argument #1 must 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
 
index ecd096953fe54aac82430881dee352518340b44d..aa970aaf74f024fa4f6082f335e12a93b55fa0bc 100644 (file)
@@ -28,5 +28,5 @@ require_once('skipifconnectfailure.inc');
     print "done!";
 ?>
 --EXPECTF--
-Warning: mysqli_embedded_connect() expects argument #1 to be of type mysqli, null given in %s on line %d
+Warning: mysqli_embedded_connect(): Argument #1 must be of type mysqli, null given in %s on line %d
 done!
index f1bbab7e39c2c9c5ad1c3cb31ee732eda4691b3e..c3dde0e2f7c1629f257856f0f5e4155530f61188 100644 (file)
@@ -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 argument #3 ($params) to be of type array, string given in %s on line %d
+[0] mysqli_fetch_object(): Argument #3 ($params) must 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
index 82e181405053af47e02dc2ed34f17fb24b3e3766..341a08ef7923640a2b2a316db7539b6c57c870a4 100644 (file)
@@ -130,9 +130,9 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 mysqli object is not fully initialized
-[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(): Argument #1 ($class_name) must 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 argument #2 ($params) to be of type array, null given in %s on line %d
+[0] mysqli_result::fetch_object(): Argument #2 ($params) must 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
index 4875b1dc17b01487f2063e6b97865a03414727c9..fcb41dd7c950855c35eb791909610aaebcd2ee5f 100644 (file)
@@ -165,7 +165,7 @@ array(4) {
 
 Test 2 - Parse
 
-Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d
+Warning: oci_error(): Argument #1 must 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 argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d
+Warning: oci_error(): Argument #1 must be of type resource, bool%sgiven in %sbug51291_1.php on line %d
 bool(false)
 array(4) {
   ["code"]=>
index 14bdfb73d61281bd258ed12627ecd377fb034bea..72ed493d8a18539c4a7596929bad6e53c26fcc30 100644 (file)
@@ -79,17 +79,17 @@ echo "Done\n";
 
 Invalid Connection resource
 
-Warning: oci_set_action() expects argument #1 to be of type resource, null given in %s on line %d
+Warning: oci_set_action(): Argument #1 must be of type resource, null given in %s on line %d
 NULL
 
 Invalid Connection resource 2
 
-Warning: oci_set_client_info() expects argument #1 to be of type resource, %s given in %s on line %d
+Warning: oci_set_client_info(): Argument #1 must be of type resource, %s given in %s on line %d
 NULL
 
 Invalid Value
 
-Warning: oci_set_action() expects argument #2 to be of type %s, resource given in %s on line %d
+Warning: oci_set_action(): Argument #2 must be of type %s, resource given in %s on line %d
 NULL
 
 Set Values multiple times
index e69de8e0db81f19826fb44da1098bfd55801bf4f..426ab91cbaf318e8f3f43aec91d7d677bfd78d02 100644 (file)
@@ -60,13 +60,13 @@ object(OCI-Lob)#%d (1) {
 }
 int(0)
 
-Warning: OCI-Lob::write() expects argument #2 to be of type int%s string given in %slob_002.php on line %d
+Warning: OCI-Lob::write(): Argument #2 must 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 argument #1 to be of type int%s string given in %slob_002.php on line %d
+Warning: OCI-Lob::seek(): Argument #1 must be of type int%s string given in %slob_002.php on line %d
 NULL
 bool(false)
 int(40004)
index 0745c76c3c02f5b0dcdf4dfdd6c538bb7428c514..3fbf4fab5a227137782e20e3c60138c5d538798d 100644 (file)
@@ -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 argument #1 to be of type OCI-Lob, object given in %s on line %d
+Warning: oci_free_descriptor(): Argument #1 must 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
index 2a39db46d6aa58018b2ae07c1b0c86a623743dc7..301a8f4b62aafdd28a30a225dea125a38491aa1d 100644 (file)
@@ -73,7 +73,7 @@ NULL
 bool(true)
 int(3)
 
-Warning: oci_lob_seek() expects argument #1 to be of type OCI-Lob, int%sgiven in %s on line %d
+Warning: oci_lob_seek(): Argument #1 must be of type OCI-Lob, int%sgiven in %s on line %d
 NULL
 bool(true)
 array(2) {
index e5857450f8d83f99f93e236e35374b533ecacf7c..4a69258ea3221ac998e90bdd57bb237633658ec3 100644 (file)
@@ -35,9 +35,9 @@ var_dump($r);
 --EXPECTF--
 Test 1: Import
 
-Warning: OCI-Lob::savefile() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI-Lob::savefile(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
 NULL
 Test 2: Export
 
-Warning: OCI-Lob::export() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI-Lob::export(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
 NULL
index ca785aa3618a2b9ea021c94b4dbcceb81b740771..26955d4b1729c0dd4e04585bfae0ff9781723019 100644 (file)
@@ -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 argument #5 to be of type int%s string given in %s on line %d
+Warning: oci_connect(): Argument #5 must be of type int%s string given in %s on line %d
 Done
index aaa819ca921f871798fd373018cc4a7c08d5c6fd..8093620168fb30d38285b14f03b2c73a86a41fe6 100644 (file)
@@ -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 argument #5 to be of type int%s string given in %s on line %d
+Warning: oci_connect(): Argument #5 must be of type int%s string given in %s on line %d
 Done
index 195520484fbcbc2159e0375ba290c2e6dc047910..b288bcd2d0e4a82fbbdac7e508861f18d6c4bffb 100644 (file)
@@ -28,11 +28,11 @@ odbc_exec($conn, NULL);
 
 ?>
 --EXPECTF--
-Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d
+Warning: odbc_exec(): Argument #3 must 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 argument #3 to be of type int, string given in %s on line %d
+Warning: odbc_exec(): Argument #3 must be of type int, string given in %s on line %d
 
 Warning: odbc_exec(): SQL error: %s in %s on line %d
 
index 714b9f7092b309deeacf0d5aed4a369344fb9f1e..f0a258dd15557d1b01e3f24a91897c27df080c1b 100644 (file)
@@ -41,6 +41,6 @@ var_dump(openssl_csr_export($csr, $output, false));
 ?>
 --EXPECT--
 bool(true)
-openssl_csr_export() expects argument #1 ($csr) to be of type resource, string given
+openssl_csr_export(): Argument #1 ($csr) must be of type resource, string given
 openssl_csr_export(): supplied resource is not a valid OpenSSL X.509 CSR resource
 bool(true)
index 907b7fd84430b385bd7fe05982cbea58a05e61ce..7f6347840de5c2b027134ae847be3fa45cd6a51d 100644 (file)
@@ -76,6 +76,6 @@ sfBgVeqg0P4SWez5fHXqBNcjMdMI5f0bikcDZSIfTHS8FX+PMurLBC8UPB0YNIOl
 JViHkCA9x6m8RJXAFvqmgLlWlUzbDv/cRrDfjWjR
 -----END CERTIFICATE REQUEST-----
 "
-openssl_csr_export_to_file() expects argument #1 ($csr) to be of type resource, string given
+openssl_csr_export_to_file(): Argument #1 ($csr) must be of type resource, string given
 openssl_csr_export_to_file(): supplied resource is not a valid OpenSSL X.509 CSR resource
 bool(true)
index 1a6235db702cc191b5e06dfd74ec6a10f7a00657..4bed65278c767368ae22754d49c1ea72c13c1325 100644 (file)
@@ -28,6 +28,6 @@ try {
 }
 ?>
 --EXPECT--
-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
+openssl_pkey_get_details(): Argument #1 ($key) must be of type resource, bool given
+openssl_pkey_get_details(): Argument #1 ($key) must be of type resource, bool given
+openssl_pkey_get_details(): Argument #1 ($key) must be of type resource, bool given
index 5b191a72dc59ab67d2f7e2d84f1065478536f434..b3450beff71a232f42e8cfad4cdf4603f8ae3893 100644 (file)
@@ -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 argument #1 ($regex) to be of type string, array given
+preg_grep(): Argument #1 ($regex) must 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 argument #1 ($regex) to be of type string, object given
+preg_grep(): Argument #1 ($regex) must be of type string, object given
 Done
index 3a65fca852fd82dfe8455829a92fe8e99022375f..e052327ceab9748c2b9f35fbb7aff898067f3d91 100644 (file)
@@ -62,7 +62,7 @@ bool(false)
 NULL
 
 Arg value is Array
-preg_match_all() expects argument #1 ($pattern) to be of type string, array given
+preg_match_all(): Argument #1 ($pattern) must 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 argument #1 ($pattern) to be of type string, object given
+preg_match_all(): Argument #1 ($pattern) must be of type string, object given
 NULL
index 98e70385c0bf9869e4186f6f3549248683a4872b..a2254555bb5a543b28412962cb0da6b0222a6a2d 100644 (file)
@@ -27,7 +27,7 @@ echo "Done";
 *** Testing preg_match_all() : error conditions ***
 
 Arg value is: Array
-preg_match_all() expects argument #2 ($subject) to be of type string, array given
+preg_match_all(): Argument #2 ($subject) must be of type string, array given
 NULL
 
 Arg value is: test
index 3dbb7c2f038af7fce449646f955c89db5f4fba17..b4540bf5da15949d65695ecb66a09604af246606 100644 (file)
@@ -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 argument #1 ($pattern) to be of type string, array given
+preg_match(): Argument #1 ($pattern) must be of type string, array given
 
 Arg value is /[a-zA-Z]/
 int(1)
-preg_match() expects argument #1 ($pattern) to be of type string, object given
+preg_match(): Argument #1 ($pattern) must be of type string, object given
index bc48facc0a0bfac361e0899251664781c2d16eb4..a03bcf4417b0188983962c49527820003a4fb7ad 100644 (file)
@@ -35,6 +35,6 @@ Arg value is: this is a string
 int(1)
 
 Arg value is: Array
-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
+preg_match(): Argument #2 ($subject) must be of type string, array given
+preg_match(): Argument #2 ($subject) must be of type string, object given
 Done
index 0ec80d99f1bc25be75cf5a946f32b14ccc078742..daf7852767027a15c02d2ae90b0881eeb9848a3b 100644 (file)
@@ -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 argument #1 ($pattern) to be of type string, array given
+preg_split(): Argument #1 ($pattern) must 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 argument #1 ($pattern) to be of type string, object given
+preg_split(): Argument #1 ($pattern) must be of type string, object given
index b2ee84a9458fce04d272ba92ca7f4e5841c1c490..1b566be3e3b83739102fcbee93b5e1c1d754e4f2 100644 (file)
@@ -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 argument #1 to be of type int, array given in
+    // Warning: PDOStatement::getColumnMeta(): Argument #1 must be of type int, array given in
     if (false !== ($tmp = @$stmt->getColumnMeta(array())))
         printf("[005] Expecting false got %s\n", var_export($tmp, true));
 
index e086e89c2866d8de3f64c7e5c4a68c8b84074c06..f2aee2082871a3be03485204690ca8695949620d 100644 (file)
@@ -228,40 +228,40 @@ try {
 }
 ?>
 --EXPECTF--
-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
+Phar::mungServer(): Argument #1 ($munglist) must be of type array, string given
+Phar::createDefaultStub(): Argument #1 ($index) must be a valid path, array given
+Phar::loadPhar(): Argument #1 ($filename) must be a valid path, array given
+Phar::canCompress(): Argument #1 ($method) must be of type int, string given
+Phar::__construct(): Argument #1 ($filename) must be a valid path, array given
+Phar::convertToExecutable(): Argument #1 ($format) must be of type int, array given
+Phar::convertToData(): Argument #1 ($format) must be of type int, array given
+PharData::delete(): Argument #1 ($entry) must 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 argument #1 ($alias) to be of type string, array given
+Phar::setAlias(): Argument #1 ($alias) must 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 argument #1 ($newstub) to be of type string, array given
+Phar::setStub(): Argument #1 ($newstub) must be of type string, array given
 A Phar stub cannot be set in a plain tar archive
-Phar::setDefaultStub() expects argument #1 ($index) to be of type string, array given
+Phar::setDefaultStub(): Argument #1 ($index) must be of type string, array given
 Cannot change stub: phar.readonly=1
 Cannot set signature algorithm, phar is read-only
-Phar::compress() expects argument #1 ($compression_type) to be of type int, array given
+Phar::compress(): Argument #1 ($compression_type) must be of type int, array given
 Cannot compress phar archive, phar is read-only
-Phar::compressFiles() expects argument #1 ($compression_type) to be of type int, array given
+Phar::compressFiles(): Argument #1 ($compression_type) must 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 argument #1 ($entry) to be a valid path, array given
-Phar::offsetGet() expects argument #1 ($entry) to be a valid path, array given
+Phar::offsetExists(): Argument #1 ($entry) must be a valid path, array given
+Phar::offsetGet(): Argument #1 ($entry) must be a valid path, array given
 Phar::offsetSet() expects exactly 2 parameters, 1 given
-PharData::offsetUnset() expects argument #1 ($entry) to be a valid path, array given
+PharData::offsetUnset(): Argument #1 ($entry) must be a valid path, array given
 Write operations disabled by the php.ini setting phar.readonly
-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::addEmptyDir(): Argument #1 ($dirname) must be a valid path, array given
+Phar::addFile(): Argument #1 ($filename) must 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
index 8c25692c3f4bb5e4c1035323c49e96baf66f4fe3..2b4b17051ea2809ce8d700d4696e346db44c7945 100644 (file)
@@ -53,4 +53,4 @@ 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 argument #1 ($localname) to be a valid path, string given
+CAUGHT: Phar::addFromString(): Argument #1 ($localname) must be a valid path, string given
index 458ec8b6f51e2fefd53b04a1e564ef2cf09b77bf..ce0b8a59a2f3c32caa98b0c63085bf09155be1fd 100644 (file)
@@ -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 argument #1 ($entry) to be a valid path, string given
+Exception: Phar::offsetSet(): Argument #1 ($entry) must be a valid path, string given
index 861933ba4e7a67e97418ba0cd612f38dcfc0bd14..8f4b40c72b19b0f3ead6b72610ca5cff2df0501f 100644 (file)
@@ -49,7 +49,7 @@ include $pname . '/foo/hi';
 <?php rmdir(__DIR__ . '/poo'); ?>
 <?php unlink(__DIR__ . '/fgc_edgecases.txt'); ?>
 --EXPECTF--
-file_get_contents() expects argument #1 ($filename) to be a valid path, array given
+file_get_contents(): Argument #1 ($filename) must be a valid path, array given
 blah
 <?php
 echo file_get_contents("foo/" . basename(__FILE__));
index 548f50a36236a99b02f9f404cc6cfedb426b0654..9d9b9feed92cecf54b79dd5ac6f85cbe9e8c7c6d 100644 (file)
@@ -38,7 +38,7 @@ include $pname . '/foo/hi';
 <?php rmdir(__DIR__ . '/poo'); ?>
 <?php unlink(__DIR__ . '/fopen_edgecases2.txt'); ?>
 --EXPECTF--
-fopen() expects argument #1 ($filename) to be a valid path, array given
+fopen(): Argument #1 ($filename) must be a valid path, array given
 blah
 test
 
index 59deca53c8fce67fe63ada5ee592eed0a6271abc..14f7f5dae0cdb9f39ef260fbe1e2f13442509d2e 100644 (file)
@@ -55,7 +55,7 @@ include $pname . '/foo';
 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
 <?php rmdir(__DIR__ . '/poo');
 --EXPECTF--
-opendir() expects argument #1 ($path) to be a valid path, array given
+opendir(): Argument #1 ($path) must be a valid path, array given
 .
 ..
 foo
index e5bba5d757a7777d2c8da916dbaa698743f26fca..bbe95dec0dd84a0ce722b535ba93565df1e48886 100644 (file)
@@ -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 argument #1 ($pathto) to be a valid path, array given
+Phar::extractTo(): Argument #1 ($pathto) must 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
index 5de390600fe58c187e3965380f0a529e60d9465f..c050859b864bad914c11ceb6093276812f8bc57e 100644 (file)
@@ -40,7 +40,7 @@ unlink(__DIR__ . '/files/phar_oo_006.phar.php');
 __halt_compiler();
 ?>
 --EXPECTF--
-SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'SplFileInfo' given
+SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, 'SplFileInfo' given
 MyFile::__construct(phar://%s/a.php)
 a.php
 MyFile::__construct(phar://%s/b/c.php)
index 70b251257d11ef1d641e84c125356119e10e8a87..5dc55ce487265551b3575b8fc1e93f217b5d8fe2 100644 (file)
@@ -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 argument #1 ($archive) to be a valid path, array given
+Phar::unlinkArchive(): Argument #1 ($archive) must 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()
index 5ac63d82f59d9c0ad3c45502232d932442058c08..5f222644232571f823e4ee96bb1a27e6dcef8f65 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, array given
+PharFileInfo::__construct(): Argument #1 ($filename) must 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)
index 721ad337ccdc82d13d8cee808283d842e6d65cf1..e48d43587e52036b7f05a9fa7871a9b64ed11967 100644 (file)
@@ -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 argument #1 ($name) to be of type string, array given
-ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, object given
+ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, array given
+ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, object given
index dd3b5f33a2bb23f73afa975fd062d56d17f492f8..86060c8acf119f6ad94e1c45ce30a6fe2ca2698a 100644 (file)
@@ -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 argument #1 ($name) to be of type string, array given
-ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, object given
+ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, array given
+ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, object given
index 2cdbcebefb3a37c4f94bd35b2d46c9e812842f10..e034e082158ea0cadf6568a1274ba458cf17a7bc 100644 (file)
@@ -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 argument #1 ($name) to be of type string, array given
+ReflectionClass::getStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
index 1805607e192fce522d7fbecd47374ee5f0ebe8e8..e7256ea2cbc79b0b93407eaed5275038f0ac953a 100644 (file)
@@ -16,7 +16,7 @@ var_dump($a);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs() expects argument #1 ($args) to be of type array, string given in %s:%d
+Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs(): Argument #1 ($args) must be of type array, string given in %s:%d
 Stack trace:
 #0 %s(%d): ReflectionClass->newInstanceArgs('x')
 #1 {main}
index 87cb894ea8acaa99adf20c3aa8dbde67cc5d9bd4..b9bb76c786e01b599f2a051ef17bd58c82915271 100644 (file)
@@ -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 argument #1 ($name) to be of type string, array given
+ReflectionClass::setStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
index 1047c927dc99f11d41d8ac55b478add3a959f2f2..ccf2414e43e8e6d5dca7c39b61e2236130624c7b 100644 (file)
@@ -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 argument #1 ($name) to be of type string, array given
+Ok - ReflectionExtension::__construct(): Argument #1 ($name) must be of type string, array given
index dbd829252b1d935741deca6624ad4b9619f0acef..1772ba5b681843e90b9f94a73f5f535acdd5cd77 100644 (file)
@@ -35,8 +35,8 @@ try {
 
 ?>
 --EXPECT--
-Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type string, array given
+Ok - ReflectionFunction::__construct(): Argument #1 ($name) must 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 argument #1 ($name) to be of type string, array given
+Ok - ReflectionFunction::__construct(): Argument #1 ($name) must be of type string, array given
index 0d585d2a73bc7533b46fa1c5c4efc7b372fa7451..869682ccdd4516f884fbacc8eefa171b84ab82af 100644 (file)
@@ -24,4 +24,4 @@ try {
 
 ?>
 --EXPECT--
-string(90) "ReflectionMethod::invokeArgs() expects argument #2 ($args) to be of type array, bool given"
+string(85) "ReflectionMethod::invokeArgs(): Argument #2 ($args) must be of type array, bool given"
index 3dc0ed626e4ced58ecef35991113a0c3ad094327..5ff9d2e50df3a405b78883dbd5fa62dceae09ddb 100644 (file)
@@ -103,7 +103,7 @@ NULL
 
 Static method:
 ReflectionMethod::invoke() expects at least 1 parameter, 0 given
-ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given
+ReflectionMethod::invoke(): Argument #1 ($object) must be of type object, bool given
 Called staticMethod()
 Exception: Using $this when not in object context
 NULL
index 8788370b2fe165f5aa74d8b83a68f78776559a91..2b50fa81318e3cf9c9164e4c2f230f3596c3ce96 100644 (file)
@@ -59,7 +59,7 @@ try {
 ?>
 --EXPECT--
 invoke() on a non-object:
-string(89) "ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given"
+string(84) "ReflectionMethod::invoke(): Argument #1 ($object) must 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"
index e70348cba1ba45e38f3274d5672fed6549786951..33154ba22ee5d316ca80da91ebd67373ac0705af 100644 (file)
@@ -41,7 +41,7 @@ var_dump(unserialize('O:19:"ReflectionReference":0:{}'));
 ?>
 --EXPECTF--
 Call to private ReflectionReference::__construct() from invalid context
-ReflectionReference::fromArrayElement() expects argument #1 ($array) to be of type array, object given
+ReflectionReference::fromArrayElement(): Argument #1 ($array) must be of type array, object given
 Key must be array or string
 Array key not found
 Serialization of 'ReflectionReference' is not allowed
index 014d0d0321508941351b3a3569fdbaf18807123a..5e5c3c5be5db975194094142b8775e9e1fd8f839 100644 (file)
@@ -26,9 +26,9 @@ echo "Done\n";
 --EXPECTF--
 string(9) "x.changed"
 
-Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d
+Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line %d
 string(10) "x.original"
 
-Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d
+Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line %d
 string(10) "x.original"
 Done
index 0266cee430f373fed3ef40f4d2349434be1f44f0..b7cd212551b842ac51d494b0231c16fd8ea87048 100644 (file)
@@ -23,5 +23,5 @@ try {
 }
 ?>
 --EXPECT--
-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
+ReflectionMethod::invoke(): Argument #1 ($object) must be of type object, string given
+ReflectionMethod::invokeArgs(): Argument #1 ($object) must be of type object, string given
index 269005565d911b48c20a105ab33098e6ae3916b8..6c1184995678cc7e7e44285b97651fb0b2f3cb79 100644 (file)
@@ -86,5 +86,5 @@ session_start();
 --EXPECT--
 *** Testing session_set_save_handler() function: interface wrong ***
 bool(true)
-session_set_save_handler() expects argument #1 ($open) to be of type SessionHandlerInterface, object given
+session_set_save_handler(): Argument #1 ($open) must be of type SessionHandlerInterface, object given
 good handler writing
index c7adf8f25cc0f74c42a46058440d25ca48ec17df..20901ce7023654449fd2704d861b1378b4f181d0 100644 (file)
@@ -70,8 +70,8 @@ var_dump($session->max_oids);
 ?>
 --EXPECTF--
 SNMP::__construct() expects at least 3 parameters, 2 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
+SNMP::__construct(): Argument #4 must be of type int, string given
+SNMP::__construct(): Argument #5 must be of type int, string given
 Unknown SNMP protocol version
 Exception handling
 
index ed2bea1465417ff4eb33d32f7a00a3940c473ad8..46d2e1d9870745680abc77af7e6c8bcdc2c933d6 100644 (file)
@@ -21,7 +21,7 @@ catch(TypeError $e)
 --EXPECTF--
 object(TypeError)#%d (%d) {
   ["message":protected]=>
-  string(%d) "SoapClient::__construct() expects argument #2 ($options) to be of type array, null given"
+  string(%d) "SoapClient::__construct(): Argument #2 ($options) must be of type array, null given"
   ["string":"Error":private]=>
   string(0) ""
   ["code":protected]=>
index b5b19b1d1294108a44aa8db20f0f0381e189e216..5ebcb8e80ef1af1b09ca4e1d1d3f6c74c3529777 100644 (file)
@@ -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 argument #1 ($string) to be of type string, int given in %s:%d
+Fatal error: Uncaught TypeError: sodium_crypto_shorthash(): Argument #1 ($string) must be of type string, int given in %s:%d
 Stack trace:
 #0 %s(%d): sodium_crypto_shorthash()
 #1 %s(%d): do_crypto_shorthash()
index e1d37ecce59de97e6051be1da3860fdd0faf2468..11529cfee0eb27629f8f8bebe61d0ce83ddac495 100644 (file)
@@ -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 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
+CallbackFilterIterator::__construct(): Argument #2 ($callback) must be a valid callback, no array or string given
+CallbackFilterIterator::__construct(): Argument #2 ($callback) must be a valid callback, array must have exactly two members
 some message
index b8aea64ea2f267df6bb4fd397978c980ab3819f7..c1b373cebe25f9b98e864daa3ea50c9ae6a56f5c 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'stdClass' given
+SplFileInfo::setFileClass(): Argument #1 ($class_name) must be a class name derived from SplFileObject, 'stdClass' given
index b0a358a9b3bff8545ae5fa0613f0de4dd16fff42..f9ef81aeeb4d76b16a5422aa2e860f8dded953e9 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-SplFileInfo::setInfoClass() expects argument #1 ($class_name) to be a class name derived from SplFileInfo, 'stdClass' given
+SplFileInfo::setInfoClass(): Argument #1 ($class_name) must be a class name derived from SplFileInfo, 'stdClass' given
index f4fb329989abb6b3228c4cd57ceaad5264eb0f9e..76f32855b2a2e97b37c1e32b9c5d7a3ff7685d5a 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, array given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, array given
index 240631cc88b2d2e3793e69caf7bb2bf9c55c0e86..1c9a681e82a152b1f6a0b2fe4026751dec9ed73f 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
index cfb0ca79a995c49a31620e764127d8bc8be7a0fe..12e632514e2b49745d45d46e3f244d9c6505f4aa 100644 (file)
@@ -12,4 +12,4 @@ try {
 
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given
index aaf2738915779916e00e61e38d41baa6977dfd94..855479c54afa4f72ea92bf4c1e8af10f781d244a 100644 (file)
@@ -9,4 +9,4 @@ try {
 }
 ?>
 --EXPECT--
-SplTempFileObject::__construct() expects argument #1 ($max_memory) to be of type int, string given
+SplTempFileObject::__construct(): Argument #1 ($max_memory) must be of type int, string given
index b7700e4e315ac9bced86c0ebe5f5c5309a9818b3..3ac214260ac9eccd1e68bdc7554fe184b4d39359 100644 (file)
@@ -20,6 +20,6 @@ try {
 ?>
 --EXPECT--
 Bad iterator type:
-ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'Exception' given(6)
+ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'Exception' given(6)
 Non-existent class:
-ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClassName' given(13)
+ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'nonExistentClassName' given(13)
index db751c6fbacb51530994d20d4a0f44cca8e987b0..042e317273203def29a371af18e1df09c7589b0c 100644 (file)
@@ -38,7 +38,7 @@ object(ArrayObject)#%d (1) {
     int(4)
   }
 }
-asort() expects argument #2 ($sort_flags) to be of type int, string given
+asort(): Argument #2 ($sort_flags) must be of type int, string given
 object(ArrayObject)#%d (1) {
   ["storage":"ArrayObject":private]=>
   array(3) {
index 6e20013177882e3997975ee864326d3a51bb4dda..892e392b8becce682864f30c215526f75c955809 100644 (file)
@@ -37,7 +37,7 @@ object(ArrayObject)#%d (1) {
     int(3)
   }
 }
-ksort() expects argument #2 ($sort_flags) to be of type int, string given
+ksort(): Argument #2 ($sort_flags) must be of type int, string given
 object(ArrayObject)#2 (1) {
   ["storage":"ArrayObject":private]=>
   array(4) {
index a80c8cbb0ddd47b69ff6b2c5f13513235f1baf4c..918dcbee960ca30993646f6d7fa766808ae00704 100644 (file)
@@ -43,7 +43,7 @@ try {
 
 ?>
 --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"
+string(130) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, 'nonExistentClass' given"
+string(122) "ArrayObject::setIteratorClass(): Argument #1 ($iteratorClass) must be a class name derived from Iterator, 'stdClass' given"
+string(126) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'nonExistentClass' given"
+string(118) "ArrayObject::__construct(): Argument #3 ($iterator_class) must be a class name derived from Iterator, 'stdClass' given"
index e48f80fe00c6130aa0295bc4bba06ca3a23a083c..2521c50223eea0201ee35aa71420281f6960f96b 100644 (file)
@@ -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 argument #1 ($path) to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct(): Argument #1 ($path) must be a valid path, string given in %s:%d
 Stack trace:
 #0 %s(%d): DirectoryIterator->__construct('\x00/abc')
 #1 {main}
index 9355ef440827b059ad62602371f737eb2af5956e..27bd706ad82250d74599cdde96bc840f5c9dbb6d 100644 (file)
@@ -11,4 +11,4 @@ try {
 
 ?>
 --EXPECT--
-string(95) "SplFileObject::__construct() expects argument #2 ($open_mode) to be of type string, array given"
+string(90) "SplFileObject::__construct(): Argument #2 ($open_mode) must be of type string, array given"
index 20545fb141017dfbce35e4a4037f6a621c0cb194..75d5c2d600da44c0f6211b3970292e501a70cdfe 100644 (file)
@@ -5,5 +5,8 @@ Bug #77431 (SplFileInfo::__construct() accepts NUL bytes)
 new SplFileInfo("bad\0good");
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects argument #1 ($file_name) to be a valid path, string given in %s:%d
-Stack trace:%A
+Fatal error: Uncaught TypeError: SplFileInfo::__construct(): Argument #1 ($file_name) must be a valid path, string given in %s:%d
+Stack trace:
+#0 %s(%d): SplFileInfo->__construct('bad\x00good')
+#1 {main}
+  thrown in %s on line %d
index 4db36c202e512b6c883c478e9a7547afe5da4811..ad18f49689fee0859cfb314527404b5cb09d0b66 100644 (file)
@@ -16,7 +16,7 @@ foreach ($it as $fileinfo) {
 }
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct(): Argument #1 ($path) must be a valid path, string given in %s:%d
 Stack trace:
 #0 %s(%d): DirectoryIterator->__construct('%s')
 #1 {main}
index 80fffd1566610bb51aad6edbb848e845622ce155..573a995cb1fcde9bbb80d922297057fa3a44ec0e 100644 (file)
@@ -23,6 +23,6 @@ try {
 
 ?>
 --EXPECT--
-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
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
index 6dc6e4cbca5bfd86e52bf5b342a78a5827c122fa..9cc684ce03648e34097d8b8c5b1de78a6c818822 100644 (file)
@@ -10,4 +10,4 @@ try {
 }
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
index 74814268e77994fead6e9728a20e990112cb4c81..1936cc962b9add073d06bb66bdffb89eab0b971f 100644 (file)
@@ -12,5 +12,5 @@ try {
 echo "Done\n";
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
 Done
index f768e4707732f4fc396db053fb2ec79183555714..4ede8afa598249dcea21c071c8e6fa72dee96350 100644 (file)
@@ -39,7 +39,7 @@ foreach($it as $k => $v)
 
 ?>
 --EXPECTF--
-Error AppendIterator::append() expects argument #1 ($iterator) to be of type Iterator, array given in %s on line %d
+Error AppendIterator::append(): Argument #1 ($iterator) must be of type Iterator, array given in %s on line %d
 object(ArrayIterator)#%d (1) {
   %s"storage"%s"ArrayIterator":private]=>
   array(2) {
index c62abb5c1a1117aea4129f067e610d5af2c71db5..21ab075cc92d0eafcdb624d47a9fc61e980398f8 100644 (file)
@@ -83,8 +83,8 @@ NULL
 ===1===
 object(stdClass)#%d (0) {
 }
-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
+CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, object given
+CachingIterator::offsetGet(): Argument #1 ($index) must 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 argument #1 ($index) to be of type string, object given
-CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given
+CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, object given
+CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, object given
 ===2===
 object(MyFoo)#2 (0) {
 }
index 3071f9b06cb8bd1a441be43a6f21e104f0ca1a50..62f9ee833440656563c06b7ba827fdd14df5c89a 100644 (file)
@@ -13,7 +13,7 @@ iterator_count('1');
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: iterator_count() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d
+Fatal error: Uncaught TypeError: iterator_count(): Argument #1 ($iterator) must be of type Traversable, string given in %s:%d
 Stack trace:
 #0 %s(%d): iterator_count('1')
 #1 {main}
index 09dcf5d02fb1850267e0c225d18ac91d6be2068d..a754c9da6fbe4c1130102f3ec35800cb8a3df6b9 100644 (file)
@@ -13,7 +13,7 @@ iterator_to_array('test','test');
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: iterator_to_array() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d
+Fatal error: Uncaught TypeError: iterator_to_array(): Argument #1 ($iterator) must be of type Traversable, string given in %s:%d
 Stack trace:
 #0 %s(%d): iterator_to_array('test', 'test')
 #1 {main}
index 0f4fed97b398c9f295af7139b3e31872e29c17b5..39a94ba8d32c8dbba21163c538ac5e3e4930a753 100644 (file)
@@ -9,4 +9,4 @@ try {
 }
 ?>
 --EXPECT--
-RecursiveCachingIterator::__construct() expects argument #1 ($iterator) to be of type RecursiveIterator, object given
+RecursiveCachingIterator::__construct(): Argument #1 ($iterator) must be of type RecursiveIterator, object given
index 0b628d3ee1d5769517130a3146eac6834931a9a0..0aca8398e6a53751cdc1b723a7f4fe2f2f223b56 100644 (file)
@@ -84,6 +84,6 @@ int(5)
 int(6)
 int(4)
 ===ERRORS===
-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(): Argument #3 ($args) must be of type array, int given
+iterator_apply(): Argument #2 ($function) must be a valid callback, function 'non_existing_function' not found or invalid function name
 iterator_apply() expects at most 3 parameters, 4 given
index c391cef48a3880089650a53e9e0a00cc8d5b27cb..5aad3d990a8248cb534e0e18c3c27acfdc24e41c 100644 (file)
@@ -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("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group));
+                               zend_type_error("chgrp(): Argument #2 ($group) must 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("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group));
+               zend_type_error("chgrp(): Argument #2 ($group) must be of type string|int, %s given", zend_zval_type_name(group));
                RETURN_THROWS();
        }
 
index bd68a6c08b10a1bc6f7ec242603f03b183d7d170..ec397fe97c216ba205310092eeff8bf9661ee0bb 100644 (file)
@@ -1276,7 +1276,7 @@ PHP_FUNCTION(implode)
 
        if (pieces == NULL) {
                if (arg1_array == NULL) {
-                       zend_type_error("%s() expects argument #1 ($pieces) to be of type array, string given", get_active_function_name());
+                       zend_type_error("%s(): Argument #1 ($pieces) must 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("%s() expects argument #1 ($glue) to be of type string, array given", get_active_function_name());
+                       zend_type_error("%s(): Argument #1 ($glue) must be of type string, array given", get_active_function_name());
                        RETURN_THROWS();
                }
        }
index e8b8fe174d8c4d6b8c5101c8d16d239601d0fff0..c221a3f34101a9ca35c0f50cd74988ab14a1507e 100644 (file)
@@ -24,7 +24,7 @@ var_dump( array_change_key_case( array("ONE" => 1, "one" => 1, "One" => 2), 5 )
 echo "end\n";
 ?>
 --EXPECT--
-array_change_key_case() expects argument #2 ($case) to be of type int, string given
+array_change_key_case(): Argument #2 ($case) must be of type int, string given
 array(4) {
   ["ONE"]=>
   int(1)
index 7cd0c1a1fa713fd7ea9564d52694cbd74f83c611..afc72f777a959bb85cc5a4c9dc3f4acff4fcb9d0 100644 (file)
@@ -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 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
+array_diff_uassoc(): Argument #4 must be a valid callback, array must have exactly two members
+array_diff_uassoc(): Argument #6 must 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
index a3be16c21c772fddb1223fa11e54e4a387dd4e14..94ae1bbc0a2471ce2fdfc721fa3d50d7cbe19c3c 100644 (file)
@@ -30,5 +30,5 @@ try {
 ?>
 --EXPECT--
 *** Testing array_diff_ukey() : usage variation ***
-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
+array_diff_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
+array_diff_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
index cedaf840dfb0c3e08b318ea0ecbeac7e3870681c..90454e855e71ce99b65c16eb49169f1c809f9fe3 100644 (file)
@@ -69,6 +69,6 @@ array(7) {
   [6]=>
   NULL
 }
-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
+array_filter(): Argument #2 ($callback) must be a valid callback, function 'echo' not found or invalid function name
+array_filter(): Argument #2 ($callback) must be a valid callback, function 'exit' not found or invalid function name
 Done
index f277285cb62e7e98d3ee76a0a6030b46e1b1c505..a6eccc5bd52c283365e55ccc5531704b41225bcc 100644 (file)
@@ -28,7 +28,7 @@ try {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 *** Testing array_intersect_ukey() : usage variation ***
-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
+array_intersect_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
+array_intersect_ukey(): Argument #3 must be a valid callback, function 'unknown_function' not found or invalid function name
index 0e6c6a5263a34ed953177b34d1c03582f2a242a0..0024ae18672be8240da176f9ea433799b7eacd48 100644 (file)
@@ -224,5 +224,5 @@ bool(true)
 Illegal offset type
 
 *** Testing operation on objects ***
-array_key_exists() expects argument #2 ($array) to be of type array, object given
+array_key_exists(): Argument #2 ($array) must be of type array, object given
 Done
index 46fed2769148d4e63f81a719e740a8b8a3902039..7976f7048e4d446a9a7936eb28f5115300041e40 100644 (file)
@@ -137,15 +137,15 @@ array(2) {
 
 -- simple class with private variable and method --
 SimpleClassPri::add
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method SimpleClassPri::add()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access private method SimpleClassPri::add()
 
 -- simple class with protected variable and method --
 SimpleClassPro::mul
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method SimpleClassPro::mul()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access protected method SimpleClassPro::mul()
 
 -- class without members --
 EmptyClass
-array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
+array_map(): Argument #1 ($callback) must 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 argument #1 ($callback) to be a valid callback, cannot access private method StaticClass::cube()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access private method StaticClass::cube()
 StaticClass::retVal
-array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method StaticClass::retVal()
+array_map(): Argument #1 ($callback) must be a valid callback, cannot access protected method StaticClass::retVal()
 -- class implementing an interface --
 InterClass::square
 array(2) {
index de43ff2c934e9a119e722c6c0355e3c7f36e5e08..92dbc0218186872a8c21055c0891aaa21913e216 100644 (file)
@@ -44,7 +44,7 @@ echo "Done";
 --EXPECT--
 *** Testing array_map() :  with non-existent class and method ***
 -- with non-existent class --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'non-existent' not found
+array_map(): Argument #1 ($callback) must be a valid callback, class 'non-existent' not found
 -- with existent class and non-existent method --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
+array_map(): Argument #1 ($callback) must be a valid callback, class 'SimpleClass' does not have a method 'non-existent'
 Done
index 98f14789b92ea29172e5353a73ac067a2e4e96a2..387e95ed0b125fa5f6af1b2cf16d7cecbf5191e3 100644 (file)
@@ -81,7 +81,7 @@ array(3) {
   int(7)
 }
 -- accessing child method from parent class --
-array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map(): Argument #1 ($callback) must 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 argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild'
+array_map(): Argument #1 ($callback) must be a valid callback, class 'ParentClass' does not have a method 'staticChild'
 Done
index 4f1dba9c85157c9a31cd7a0958e8a5809726cbed..e662d4913c0aab9d370529674da0cc7e947d3921 100644 (file)
@@ -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 argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'echo' not found or invalid function name
 Done
index f0b931eddb74804d499b5690c92ef89b56f5db26..bffb42dbeb955204ef892e7088b5ae870aa31e47 100644 (file)
@@ -123,7 +123,7 @@ array(2) {
   int(2)
 }
 -- with empty string --
-array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
 -- with empty array --
-array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
+array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
 Done
index f352fabc71a26d7d6801d72ecc4b0e41b4ed0f30..0478fb26c2c0417bda284022fc0633bc3d439084 100644 (file)
@@ -28,5 +28,5 @@ echo "Done";
 ?>
 --EXPECT--
 *** Testing array_map() : non existent 'callback' function ***
-array_map() expects argument #1 ($callback) to be a valid callback, function 'non_existent' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'non_existent' not found or invalid function name
 Done
index b9d9b51b147317362647d9c69dd8b95877f83b5e..96bad882b26d3d30dad5bf98031a7cb2681dbe63 100644 (file)
@@ -43,19 +43,19 @@ echo "Done";
 --EXPECT--
 *** Testing array_map() : non-permmited built-in functions ***
 -- Iteration 1 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'echo' not found or invalid function name
 -- Iteration 2 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'array' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'array' not found or invalid function name
 -- Iteration 3 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'empty' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'empty' not found or invalid function name
 -- Iteration 4 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'eval' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'eval' not found or invalid function name
 -- Iteration 5 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'exit' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'exit' not found or invalid function name
 -- Iteration 6 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'isset' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'isset' not found or invalid function name
 -- Iteration 7 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'list' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'list' not found or invalid function name
 -- Iteration 8 --
-array_map() expects argument #1 ($callback) to be a valid callback, function 'print' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function 'print' not found or invalid function name
 Done
index 65268ac9142d403c5469794e249ef44857b47553..549afdc21ad1e1f058cf751cadec0191d0bdef79 100644 (file)
@@ -81,62 +81,62 @@ echo "Done";
 *** Testing array_map() : unexpected values for 'callback' argument ***
 
 -- Iteration 1 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 2 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 3 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 4 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 5 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 6 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 7 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 8 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 9 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 10 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 11 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 12 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 13 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 14 --
-array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
 
 -- Iteration 15 --
-array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name
+array_map(): Argument #1 ($callback) must be a valid callback, function '' not found or invalid function name
 
 -- Iteration 16 --
-array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members
+array_map(): Argument #1 ($callback) must be a valid callback, array must have exactly two members
 
 -- Iteration 17 --
-array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
+array_map(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
 
 -- Iteration 18 --
-array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object
+array_map(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
 
 -- Iteration 19 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 
 -- Iteration 20 --
-array_map() expects argument #1 ($callback) to be a valid callback, no array or string given
+array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
 Done
index ad356ba01dbd329387d548719356cde7176281ca..4ff919d8a830d8003ffec5eb8ecc6b3b32cbaef9 100644 (file)
@@ -56,7 +56,7 @@ string(5) "three"
 int(5)
 
 *** Testing objects with array_search() ***
-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
+array_search(): Argument #2 ($haystack) must be of type array, object given
+array_search(): Argument #2 ($haystack) must be of type array, object given
 int(1)
 Done
index 270206a74731702d3d0377ae5a6d75afdd12d43b..7769f32e41ac59df1f2465684ac07f8e8fd9528d 100644 (file)
@@ -61,6 +61,6 @@ array(1) {
   [2]=>
   int(3)
 }
-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
+array_slice(): Argument #3 ($length) must be of type int, string given
+array_slice(): Argument #3 ($length) must be of type int, string given
 string(3) "foo"
index 7800a9f6f5493bf5ea0dc2993ddf865ea198b192..2c95b5a6d0a9dd77de48ae88f6fdbe838dfac98d 100644 (file)
@@ -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 argument #1 ($input) to be of type array, string given
+array_walk(): Argument #1 ($input) must be of type array, string given
 Done
index 0d0cdcbdc849593347296ffc200cd23082e403dc..4577e1af0c62c2a0743100a524d3d67a169395aa 100644 (file)
Binary files a/ext/standard/tests/array/array_walk_rec_objects.phpt and b/ext/standard/tests/array/array_walk_rec_objects.phpt differ
index 2d80cf9e240bec42411b0efa0aff0dae432cff29..8fc09f562c5903295328ccb48009753bf3fcfe42 100644 (file)
@@ -40,5 +40,5 @@ bool(true)
 -- With 'min' built-in function --
 bool(true)
 -- With 'echo' language construct --
-array_walk_recursive() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name
+array_walk_recursive(): Argument #2 ($funcname) must be a valid callback, function 'echo' not found or invalid function name
 Done
index f95bc43e9d60a9aed7672527dcc6d79615e6b3b3..0a311dd6133c4f78606a07db76f023d3eb2f08a4 100644 (file)
@@ -40,5 +40,5 @@ bool(true)
 -- With 'min' built-in function --
 bool(true)
 -- With 'echo' language construct --
-array_walk() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name
+array_walk(): Argument #2 ($funcname) must be a valid callback, function 'echo' not found or invalid function name
 Done
index a87c5098ab6029a506fd70c9687dfef95a130d87..9ad8f7e2802956926a6961289f3b6b5b4b1bda71 100644 (file)
@@ -17,5 +17,5 @@ try {
 echo "Done\n";
 ?>
 --EXPECT--
-array_unique() expects argument #1 ($arg) to be of type array, object given
+array_unique(): Argument #1 ($arg) must be of type array, object given
 Done
index 09549d94c3b832d62ee76c8530aeed7e36cc65e6..2e6bd0330ef8a1f5116f043234684435306f4ca7 100644 (file)
@@ -59,7 +59,7 @@ bool(true)
 bool(true)
 
 *** Testing objects with in_array() ***
-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
+in_array(): Argument #2 ($haystack) must be of type array, object given
+in_array(): Argument #2 ($haystack) must be of type array, object given
 bool(true)
 Done
index 73a02697e7da58576d5c8fea9fff35b5037875cf..0bb336558282c8836c052a526d8796b4a112d40b 100644 (file)
@@ -105,15 +105,15 @@ Step exceeds the specified range
 
 -- Testing other conditions --
 Step exceeds the specified range
-range() expects argument #3 ($step) to be of type int|float, string given
+range(): Argument #3 ($step) must 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 argument #3 ($step) to be of type int|float, string given
+range(): Argument #3 ($step) must be of type int|float, string given
 Step exceeds the specified range
 Step exceeds the specified range
-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
+range(): Argument #3 ($step) must be of type int|float, string given
+range(): Argument #3 ($step) must be of type int|float, string given
index e924a2784a040668fb8f76ce1da006e5e530fb65..0459634b5405dbb612662701cf8a8cf5525e2882 100644 (file)
@@ -615,5 +615,5 @@ array(5) {
   [4]=>
   int(5)
 }
-range() expects argument #3 ($step) to be of type int|float, array given
+range(): Argument #3 ($step) must be of type int|float, array given
 Done
index b7ae000c0124fed6d715e3d4f9065cfcf4f8dbaa..985a4686801e8e6da0bf0843cf71ff81c4b9efea 100644 (file)
@@ -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 argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
 
 Arg value: 1 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
 
 Arg value: 12345 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
 
 Arg value: -2345 (type: integer)
-get_class() expects argument #1 ($object) to be of type object, int given
+get_class(): Argument #1 ($object) must be of type object, int given
 
 Arg value: 10.5 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
 
 Arg value: -10.5 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
 
 Arg value: 101234567000 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
 
 Arg value: 1.07654321E-9 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
 
 Arg value: 0.5 (type: double)
-get_class() expects argument #1 ($object) to be of type object, float given
+get_class(): Argument #1 ($object) must be of type object, float given
 
 Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
 
 Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
 
 Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
 
 Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
 
 Arg value: Array (type: array)
-get_class() expects argument #1 ($object) to be of type object, array given
+get_class(): Argument #1 ($object) must be of type object, array given
 
 Arg value:  (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
 
 Arg value:  (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
 
 Arg value: 1 (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
 
 Arg value:  (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
 
 Arg value: 1 (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
 
 Arg value:  (type: boolean)
-get_class() expects argument #1 ($object) to be of type object, bool given
+get_class(): Argument #1 ($object) must be of type object, bool given
 
 Arg value:  (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
 
 Arg value:  (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
 
 Arg value: string (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
 
 Arg value: string (type: string)
-get_class() expects argument #1 ($object) to be of type object, string given
+get_class(): Argument #1 ($object) must be of type object, string given
 
 Arg value:  (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
 
 Arg value:  (type: NULL)
-get_class() expects argument #1 ($object) to be of type object, null given
+get_class(): Argument #1 ($object) must be of type object, null given
 Done
index 18d63b8a4409fc47d00734bf2b3263d4cb03d09b..1195d422a4cf65a970bccc58747d725f9bf0e972 100644 (file)
@@ -146,15 +146,15 @@ bool(true)
 bool(true)
 43567
 -- Iteration 12 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
 -- Iteration 13 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
 -- Iteration 14 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
 -- Iteration 15 --
-chmod() expects argument #2 ($mode) to be of type int, string given
-chmod() expects argument #2 ($mode) to be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
+chmod(): Argument #2 ($mode) must be of type int, string given
 *** Done ***
index a4eb48def331c34fb89191c86e3c90aee87491ac..982367cccb459bdf7fe1766ab2add47b04affc68 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 ?>
 --EXPECT--
-file_exists() expects argument #1 ($filename) to be a valid path, string given
+file_exists(): Argument #1 ($filename) must be a valid path, string given
index 9950c9e3fc79edda843b8b452033f9a798a0b10e..37ae20d40e1aec84f961eb4e53692bed0d4de018 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 ?>
 --EXPECT--
-chgrp() expects argument #2 ($group) to be of type string|int, null given
+chgrp(): Argument #2 ($group) must be of type string|int, null given
index 9e8d0cd180417f7550e6f5cce857832fd0d68373..e7aacfdeac569b0ac23af8feec8bd14b6add7bde 100644 (file)
@@ -110,19 +110,19 @@ float(%d)
 float(%d)
 
 -- Iteration 9 --
-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
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
 
 -- Iteration 10 --
-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
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
 
 -- Iteration 11 --
-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
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
 
 -- Iteration 12 --
-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
+disk_free_space(): Argument #1 ($directory) must be a valid path, string given
+diskfreespace(): Argument #1 ($directory) must be a valid path, string given
 
 --- Done ---
index b5f5119c0361329352f1f8f7ac71d7ded643a738..16275e7f39c97a791fdd9cd768f573cd910bd659 100644 (file)
@@ -102,16 +102,16 @@ float(%d)
 float(%d)
 
 -- Iteration 9 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
 
 -- Iteration 10 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
 
 -- Iteration 11 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
 
 -- Iteration 12 --
-disk_total_space() expects argument #1 ($directory) to be a valid path, string given
+disk_total_space(): Argument #1 ($directory) must be a valid path, string given
 *** Testing with Binary Input ***
 float(%s)
 
index 878fa1a7c5f16e447a878ae6ebb0e6efa5731332..12814304d0a3a36e707ac2c58102fa14e851188b 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
 
 -- Filename: array() --
-file_get_contents() expects argument #1 ($filename) to be a valid path, array given
+file_get_contents(): Argument #1 ($filename) must be a valid path, array given
 
 -- Filename: /no/such/file/dir --
 
index c2bb20946180ac362df3af2532e79c5eb06330d8..058f3bf7e0c66d6e97103b5cfd7acc7c8700e8d5 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 7 --
-file_get_contents() expects argument #1 ($filename) to be a valid path, array given
+file_get_contents(): Argument #1 ($filename) must 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
index 310d6abb8691021f8e9342e222cbc6a1d526db06..438fcb69031473d9a0cc780444ec430c5bd7f0ea 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+file_put_contents(): Argument #1 ($filename) must be a valid path, string given
 
 -- Filename: array() --
-file_put_contents() expects argument #1 ($filename) to be a valid path, array given
+file_put_contents(): Argument #1 ($filename) must be a valid path, array given
 
 -- Filename: /no/such/file/dir --
 
index 5b8c156a9488650f13644ffa8e7f756c27eae9de..1a55621c3f3980ae30945e5208b5166ca364cdf0 100644 (file)
@@ -81,9 +81,9 @@ Failed to write data to:
 -- Iteration 5 --
 9 bytes written to:  
 -- Iteration 6 --
-file_put_contents() expects argument #1 ($filename) to be a valid path, string given
+file_put_contents(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 7 --
-file_put_contents() expects argument #1 ($filename) to be a valid path, array given
+file_put_contents(): Argument #1 ($filename) must be a valid path, array given
 -- Iteration 8 --
 
 Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d
index aff47ef1c94d55cd02451cacd8f1076406206804..51c0a338610d93e3e298beb95c883ccd4f1af884 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+filegroup(): Argument #1 ($filename) must be a valid path, string given
 - Iteration 8 -
-filegroup() expects argument #1 ($filename) to be a valid path, string given
+filegroup(): Argument #1 ($filename) must be a valid path, string given
 
 *** Done ***
index b8ed3962dfb35766bc0de6facda8ea52034c2e33..bb3dafd52dd76bc4e9db9c9582dc8de7ffd4f7b0 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+fileinode(): Argument #1 ($filename) must be a valid path, string given
 - Iteration 8 -
-fileinode() expects argument #1 ($filename) to be a valid path, string given
+fileinode(): Argument #1 ($filename) must be a valid path, string given
 
 *** Done ***
index 8768f9d69b0dfa8677aba0b263d198358a36ecc4..b7de38ec6f39fb204ec9f1f44d3a11174bc17317 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+fileowner(): Argument #1 ($filename) must be a valid path, string given
 - Iteration 8 -
-fileowner() expects argument #1 ($filename) to be a valid path, string given
+fileowner(): Argument #1 ($filename) must be a valid path, string given
 
 *** Done ***
index e58594e7d143aee19752901fd4dfbd0a6e61b1be..73c00130d1928b895b21b4120af3bfeb2e041334 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+fileperms(): Argument #1 ($filename) must be a valid path, string given
 - Iteration 8 -
-fileperms() expects argument #1 ($filename) to be a valid path, string given
+fileperms(): Argument #1 ($filename) must be a valid path, string given
 
 *** Done ***
index 9eb5958dbb6c99d66bbbb057c6a81d51eaebabc7..dc9123543d0dc9e70e89ebb0eafeae19899ec383 100644 (file)
@@ -65,13 +65,13 @@ Illegal operation argument
 --- Iteration 3 ---
 Illegal operation argument
 --- Iteration 4 ---
-flock() expects argument #2 ($operation) to be of type int, array given
+flock(): Argument #2 ($operation) must be of type int, array given
 --- Iteration 5 ---
-flock() expects argument #2 ($operation) to be of type int, array given
+flock(): Argument #2 ($operation) must be of type int, array given
 --- Iteration 6 ---
-flock() expects argument #2 ($operation) to be of type int, string given
+flock(): Argument #2 ($operation) must be of type int, string given
 --- Iteration 7 ---
-flock() expects argument #2 ($operation) to be of type int, string given
+flock(): Argument #2 ($operation) must be of type int, string given
 --- Iteration 8 ---
-flock() expects argument #2 ($operation) to be of type int, string given
+flock(): Argument #2 ($operation) must be of type int, string given
 flock(): supplied resource is not a valid stream resource
index 32bb6b32a698f049837d3f2ed28b4710178829a5..746d49747dd07c872b2a25b411c37918f71f1dc3 100644 (file)
@@ -191,9 +191,9 @@ bool(false)
 -- Iteration 22 --
 bool(false)
 -- Iteration 23 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 24 --
-fnmatch() expects argument #1 ($pattern) to be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must 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 argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(true)
 -- Iteration 1 --
-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
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 2 --
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(true)
 -- Iteration 3 --
-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
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 4 --
 bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(true)
 bool(false)
 -- Iteration 5 --
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(true)
 
@@ -405,42 +405,42 @@ bool(true)
 bool(true)
 bool(true)
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(false)
 -- Iteration 1 --
 bool(true)
 bool(true)
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(false)
 -- Iteration 2 --
 bool(true)
 bool(true)
 bool(true)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(false)
 -- Iteration 3 --
-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
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
+fnmatch(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 4 --
 bool(false)
 bool(false)
 bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(true)
 bool(false)
 -- Iteration 5 --
 bool(false)
 bool(false)
 bool(false)
-fnmatch() expects argument #2 ($filename) to be a valid path, string given
+fnmatch(): Argument #2 ($filename) must be a valid path, string given
 bool(false)
 bool(true)
 
index 234022dd6b9fae679e475fc4de641d41febc8e87..10a43df24a0a9d53ba94dda67c4c44d73d0170b9 100644 (file)
@@ -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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
index 61879edf76b47926d5d66cf19c1bfa94acbf52fb..91c3cf1cd6ce9a947a097a4a29a5b3863bf7481f 100644 (file)
@@ -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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must 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 argument #1 to be of type resource, bool given in %s on line %d
+Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
index 814f18a71dad69c354ba9d99777d33ec41d130c8..0997eb30e0cbe46ba8e6db0dda6556fe204f4403 100644 (file)
@@ -334,7 +334,7 @@ array(0) {
 }
 
 -- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
 
 -- Iteration 9 --
 array(0) {
@@ -437,7 +437,7 @@ array(1) {
 array(0) {
 }
 -- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 9 --
 array(0) {
 }
index 966d2b28e003a587f041e865f4effc60a37f41e6..eb30a139236ac208712c87bdf17b184ef066946c 100644 (file)
@@ -333,7 +333,7 @@ array(0) {
 }
 
 -- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
 
 -- Iteration 9 --
 array(0) {
@@ -436,7 +436,7 @@ array(1) {
 array(0) {
 }
 -- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 9 --
 array(0) {
 }
index 655b3efe7810ec679c2da2a4d783a38a885acb74..1fcd56eeafaf93dbf1b19d83de2e42744be6a5c1 100644 (file)
@@ -336,7 +336,7 @@ array(0) {
 }
 
 -- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
 
 -- Iteration 9 --
 array(0) {
@@ -439,7 +439,7 @@ array(1) {
 array(0) {
 }
 -- Iteration 8 --
-glob() expects argument #1 ($pattern) to be a valid path, string given
+glob(): Argument #1 ($pattern) must be a valid path, string given
 -- Iteration 9 --
 array(0) {
 }
index f527974d90a2dc859c2086cde03bc4400ce62c51..111699bd86810882dd01ab65b3ab8ddb0c5675d9 100644 (file)
@@ -81,9 +81,9 @@ bool(true)
 bool(false)
 
 -- Iteration 9 --
-is_dir() expects argument #1 ($filename) to be a valid path, string given
+is_dir(): Argument #1 ($filename) must be a valid path, string given
 
 -- Iteration 10 --
-is_dir() expects argument #1 ($filename) to be a valid path, string given
+is_dir(): Argument #1 ($filename) must be a valid path, string given
 
 *** Done ***
index 9dadbd6b0a0e282c2824d2e69774de1e92a5b36e..0f7e5ba7b16ae525181fa62b877046a9f381413e 100644 (file)
@@ -80,9 +80,9 @@ bool(false)
 -- Iteration 5 --
 bool(false)
 -- Iteration 6 --
-is_executable() expects argument #1 ($filename) to be a valid path, string given
+is_executable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 7 --
-is_executable() expects argument #1 ($filename) to be a valid path, string given
+is_executable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 8 --
 bool(false)
 -- Iteration 9 --
index 5651c5fc023da1b2595bf95bbc062851c87ac184..81804030a067fdbc45ad6ac67a55397bda0cf55b 100644 (file)
@@ -71,8 +71,8 @@ bool(false)
 - Iteration 6 -
 bool(false)
 - Iteration 7 -
-is_file() expects argument #1 ($filename) to be a valid path, string given
+is_file(): Argument #1 ($filename) must be a valid path, string given
 - Iteration 8 -
-is_file() expects argument #1 ($filename) to be a valid path, string given
+is_file(): Argument #1 ($filename) must be a valid path, string given
 
 *** Done ***
index 102f9b177c54904ba20d573f8a07fe19306e807e..95dd003874687d9b14032ef1605228daa55199e9 100644 (file)
@@ -81,11 +81,11 @@ bool(false)
 -- Iteration 6 --
 bool(false)
 -- Iteration 7 --
-is_readable() expects argument #1 ($filename) to be a valid path, string given
+is_readable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 8 --
-is_readable() expects argument #1 ($filename) to be a valid path, string given
+is_readable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 9 --
-is_readable() expects argument #1 ($filename) to be a valid path, string given
+is_readable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 10 --
 bool(true)
 -- Iteration 11 --
index 53090a9f8020e38b82a5c30a634db3ef84182cca..333294e073a854578a5d9abe602267413182d4a0 100644 (file)
@@ -92,14 +92,14 @@ bool(false)
 bool(false)
 bool(false)
 -- Iteration 7 --
-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
+is_writable(): Argument #1 ($filename) must be a valid path, string given
+is_writeable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 8 --
-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
+is_writable(): Argument #1 ($filename) must be a valid path, string given
+is_writeable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 9 --
-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
+is_writable(): Argument #1 ($filename) must be a valid path, string given
+is_writeable(): Argument #1 ($filename) must be a valid path, string given
 -- Iteration 10 --
 bool(true)
 bool(true)
index bcf83fb2bcb699ad4df1b78e039a311f012c6dbd..176ad790708890f9ba3ae3b387e49dda99e61e23 100644 (file)
@@ -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 argument #1 ($pathname) to be a valid path, string given
-rmdir() expects argument #1 ($dirname) to be a valid path, string given
+mkdir(): Argument #1 ($pathname) must be a valid path, string given
+rmdir(): Argument #1 ($dirname) must be a valid path, string given
 
 *** Testing mkdir() with miscellaneous input ***
 bool(true)
index 02fa1266fdaaed105c210a418e2a8054fb2a5590..4934b8cf008340d3b4819397b340c879e94587db 100644 (file)
@@ -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 argument #1 ($filename) to be a valid path, string given
+readfile(): Argument #1 ($filename) must be a valid path, string given
 
 -- Filename: array() --
-readfile() expects argument #1 ($filename) to be a valid path, array given
+readfile(): Argument #1 ($filename) must be a valid path, array given
 
 -- Filename: /no/such/file/dir --
 
index f735ba5b58a743044a49cf139cc17666747a168f..87892a4519c5304378a3f92a7eadd6ad8df213db 100644 (file)
Binary files a/ext/standard/tests/file/readfile_variation10.phpt and b/ext/standard/tests/file/readfile_variation10.phpt differ
index fd362a6ea07c16f91eeb5766939570f4c0d7b98c..7805db41de2dfc9f1c591b78a271194f97162418 100644 (file)
@@ -23,8 +23,8 @@ foreach($streams as $stream)
 
 ?>
 --EXPECTF--
-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
+file_get_contents(): Argument #1 ($filename) must be a valid path, string given
+file_get_contents(): Argument #1 ($filename) must 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)
index 1639cebe997b826980738eec5f43f13d0da23275..dafc626659b08c395a72c5769f56720ade500603 100644 (file)
@@ -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 argument #2 ($prefix) to be a valid path, string given
+tempnam(): Argument #2 ($prefix) must be a valid path, string given
 -- Iteration 7 --
-tempnam() expects argument #2 ($prefix) to be a valid path, array given
+tempnam(): Argument #2 ($prefix) must be a valid path, array given
 -- Iteration 8 --
 OK
 -- Iteration 9 --
index b255b32f416555f77f362fbb672638af84ef4122..a4271b13702a623c5f67f54a205f345f47f76fd2 100644 (file)
@@ -106,9 +106,9 @@ File name is => %s/%s
 File permissions are => 100600
 File created in => directory specified
 -- Iteration 6 --
-tempnam() expects argument #2 ($prefix) to be a valid path, string given
+tempnam(): Argument #2 ($prefix) must be a valid path, string given
 -- Iteration 7 --
-tempnam() expects argument #2 ($prefix) to be a valid path, array given
+tempnam(): Argument #2 ($prefix) must be a valid path, array given
 -- Iteration 8 --
 File name is => %s/dir%s
 File permissions are => 100600
index 069b2f369d2b595c630806ff4caf86418366fb31..b9377e6c67d30ecca921d35a4078587155b6fe97 100644 (file)
@@ -100,9 +100,9 @@ File name is => %s%et%s
 File permissions are => 100666
 File created in => temp dir
 -- Iteration 6 --
-tempnam() expects argument #1 ($dir) to be a valid path, string given
+tempnam(): Argument #1 ($dir) must be a valid path, string given
 -- Iteration 7 --
-tempnam() expects argument #1 ($dir) to be a valid path, array given
+tempnam(): Argument #1 ($dir) must 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
index 5ee1d80c7d59a0f3c0c72e11f8666016600f2a98..a6895c706b18b80d766736f3419aee5819f224bb 100644 (file)
@@ -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 argument #1 ($dir) to be a valid path, string given
+tempnam(): Argument #1 ($dir) must be a valid path, string given
 -- Iteration 7 --
-tempnam() expects argument #1 ($dir) to be a valid path, array given
+tempnam(): Argument #1 ($dir) must 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
index 70a26c1d5fffec1afe788908623b540f54a4c5c6..ce4da1fc8c2ceea2191cb27f84af14b2c09d8b10 100644 (file)
@@ -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 argument #1 ($target) to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: link(): Argument #1 ($target) must be a valid path, string given in %s:%d
 Stack trace:
 #0 %s(%d): link('%s', '%s')
 #1 {main}
index 211ad3b2d318b8eebedb77dc892f611521deae13..87401fdc67281dd63766f76e4aaa7fc95a81d76f 100644 (file)
@@ -21,11 +21,11 @@ try {
 echo "Done\n";
 ?>
 --EXPECTF--
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
 bool(true)
-strlen() expects argument #1 ($str) to be of type string, array given
+strlen(): Argument #1 ($str) must be of type string, array given
 
-Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
 bool(true)
-strlen() expects argument #1 ($str) to be of type string, array given
+strlen(): Argument #1 ($str) must be of type string, array given
 Done
index 1f2abbae29b70a8c2dfe96c3713b127c88e8c679..cd76dc79e3a6abdf250ef78b7c55dc0d0f0c802d 100644 (file)
@@ -42,7 +42,7 @@ array(1) {
 }
 ------ Calling by_ref() with unreferenced argument ------
 
-Warning: by_ref() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d
+Warning: by_ref(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
 array(1) {
   [0]=>
   string(8) "original"
index b667da66c9924acb502b8fd0fce988802f120f71..67afab634564d191009b8a37e848dac22f09b5a2 100644 (file)
@@ -83,7 +83,7 @@ $o = new P;
 $o->test();
 
 ?>
---EXPECTF--
+--EXPECT--
 parent|who
 B
 C|parent::who
@@ -106,4 +106,4 @@ O
 $this|O::who
 O
 $this|B::who
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'P' is not a subclass of 'B'
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'P' is not a subclass of 'B'
index 4f327e3b86fa68a203d36c91f0ea18b639ff4dbd..f69a886ad392b64bc12cebf8c3af6a0cc91e86f8 100644 (file)
@@ -20,7 +20,7 @@ try {
 }
 
 ?>
---EXPECTF--
-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
+--EXPECT--
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'Foo' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
+call_user_func(): Argument #1 ($function) must be a valid callback, second array member is not a valid method
index e635fa2fca191ba05131b69ac22fb6d7c35c6f9d..f6ebeba2efd426df3cf35f045dd454a90d4f10cb 100644 (file)
@@ -105,25 +105,25 @@ int(1)
 int(0)
 
 -- Iteration 7 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 8 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 9 --
-abs() expects argument #1 ($number) to be of type int|float, array given
+abs(): Argument #1 ($number) must be of type int|float, array given
 
 -- Iteration 10 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 11 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 12 --
-abs() expects argument #1 ($number) to be of type int|float, string given
+abs(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 13 --
-abs() expects argument #1 ($number) to be of type int|float, object given
+abs(): Argument #1 ($number) must be of type int|float, object given
 
 -- Iteration 14 --
 int(0)
@@ -132,4 +132,4 @@ int(0)
 int(0)
 
 -- Iteration 16 --
-abs() expects argument #1 ($number) to be of type int|float, resource given
+abs(): Argument #1 ($number) must be of type int|float, resource given
index 9a29aa3480fd183d30f1802b425b14bd7dfa116e..d219f313025419bfa46c8ec821d8df6974cebc8d 100644 (file)
@@ -151,7 +151,7 @@ int(0)
 int(0)
 
 -- Iteration 18 --
-bindec() expects argument #1 ($binary_string) to be of type string, array given
+bindec(): Argument #1 ($binary_string) must be of type string, array given
 
 -- Iteration 19 --
 
@@ -175,4 +175,4 @@ int(0)
 int(0)
 
 -- Iteration 24 --
-bindec() expects argument #1 ($binary_string) to be of type string, resource given
+bindec(): Argument #1 ($binary_string) must be of type string, resource given
index 16f205f29f9d39c98011b8b3a7f24f22a82d2694..695c3f36ba9cf70a7f87a52cc772a8dee3474998 100644 (file)
@@ -151,7 +151,7 @@ int(0)
 int(0)
 
 -- Iteration 18 --
-bindec() expects argument #1 ($binary_string) to be of type string, array given
+bindec(): Argument #1 ($binary_string) must be of type string, array given
 
 -- Iteration 19 --
 
@@ -175,4 +175,4 @@ int(0)
 int(0)
 
 -- Iteration 24 --
-bindec() expects argument #1 ($binary_string) to be of type string, resource given
+bindec(): Argument #1 ($binary_string) must be of type string, resource given
index 1946c77879b305066c573bea325e6521b581b4e9..4140738e0248a65869dc94143a75c7be9826cfc5 100644 (file)
@@ -98,25 +98,25 @@ float(1)
 float(0)
 
 -- Iteration 7 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 8 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 9 --
-ceil() expects argument #1 ($number) to be of type int|float, array given
+ceil(): Argument #1 ($number) must be of type int|float, array given
 
 -- Iteration 10 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 11 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 12 --
-ceil() expects argument #1 ($number) to be of type int|float, string given
+ceil(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 13 --
-ceil() expects argument #1 ($number) to be of type int|float, object given
+ceil(): Argument #1 ($number) must be of type int|float, object given
 
 -- Iteration 14 --
 float(0)
@@ -125,4 +125,4 @@ float(0)
 float(0)
 
 -- Iteration 16 --
-ceil() expects argument #1 ($number) to be of type int|float, resource given
+ceil(): Argument #1 ($number) must be of type int|float, resource given
index 2aa72337bbc229d25a9e92da811eb48983b5ae94..f5b3e984618a130ea57c115318339bb732c9e26a 100644 (file)
@@ -98,25 +98,25 @@ float(1)
 float(0)
 
 -- Iteration 7 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 8 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 9 --
-floor() expects argument #1 ($number) to be of type int|float, array given
+floor(): Argument #1 ($number) must be of type int|float, array given
 
 -- Iteration 10 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 11 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 12 --
-floor() expects argument #1 ($number) to be of type int|float, string given
+floor(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 13 --
-floor() expects argument #1 ($number) to be of type int|float, object given
+floor(): Argument #1 ($number) must be of type int|float, object given
 
 -- Iteration 14 --
 float(0)
@@ -125,4 +125,4 @@ float(0)
 float(0)
 
 -- Iteration 16 --
-floor() expects argument #1 ($number) to be of type int|float, resource given
+floor(): Argument #1 ($number) must be of type int|float, resource given
index 5df2c7ff06625da6da39103261c8145ceadfb1a9..8b62d9458e023c2ec4a59930fb5f12a77453cd07 100644 (file)
@@ -157,7 +157,7 @@ int(0)
 int(0)
 
 -- Iteration 20 --
-hexdec() expects argument #1 ($hex_string) to be of type string, array given
+hexdec(): Argument #1 ($hex_string) must be of type string, array given
 
 -- Iteration 21 --
 
@@ -181,4 +181,4 @@ int(0)
 int(0)
 
 -- Iteration 26 --
-hexdec() expects argument #1 ($hex_string) to be of type string, resource given
+hexdec(): Argument #1 ($hex_string) must be of type string, resource given
index 6d984502af358f5a9ec685dcbe246b9a9c68a23a..86ed97987baa17350eb897f99a62f833813749c3 100644 (file)
@@ -157,7 +157,7 @@ int(0)
 int(0)
 
 -- Iteration 20 --
-hexdec() expects argument #1 ($hex_string) to be of type string, array given
+hexdec(): Argument #1 ($hex_string) must be of type string, array given
 
 -- Iteration 21 --
 
@@ -181,4 +181,4 @@ int(0)
 int(0)
 
 -- Iteration 26 --
-hexdec() expects argument #1 ($hex_string) to be of type string, resource given
+hexdec(): Argument #1 ($hex_string) must be of type string, resource given
index 18dfc698ce8472bd449a37a7f6a82be1d7f906ad..1c4ec0ec86555bf6ac406c05be57a1c7d7b98266 100644 (file)
@@ -160,7 +160,7 @@ int(0)
 int(0)
 
 -- Iteration 20 --
-octdec() expects argument #1 ($octal_string) to be of type string, array given
+octdec(): Argument #1 ($octal_string) must be of type string, array given
 
 -- Iteration 21 --
 
@@ -184,5 +184,5 @@ int(0)
 int(0)
 
 -- Iteration 26 --
-octdec() expects argument #1 ($octal_string) to be of type string, resource given
+octdec(): Argument #1 ($octal_string) must be of type string, resource given
 ---Done---
index add8cf76373d75d880a5b351c77d24cf12457ea1..5371d0fb94e37e51b9f82582441b38efbf033e83 100644 (file)
@@ -143,25 +143,25 @@ float(1)
 float(0)
 
 -- Iteration 17 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 18 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 19 --
-round() expects argument #1 ($number) to be of type int|float, array given
+round(): Argument #1 ($number) must be of type int|float, array given
 
 -- Iteration 20 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 21 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 22 --
-round() expects argument #1 ($number) to be of type int|float, string given
+round(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 23 --
-round() expects argument #1 ($number) to be of type int|float, object given
+round(): Argument #1 ($number) must be of type int|float, object given
 
 -- Iteration 24 --
 float(0)
@@ -170,4 +170,4 @@ float(0)
 float(0)
 
 -- Iteration 26 --
-round() expects argument #1 ($number) to be of type int|float, resource given
+round(): Argument #1 ($number) must be of type int|float, resource given
index 370b6162fde9e1fcdc53aba429f839baac26c39a..79607cacec0cdb4e26e87be0334c69097885724e 100644 (file)
@@ -24,4 +24,4 @@ $res = dns_get_record('php.net', DNS_MX, $auth, $additional);
 var_dump(!empty($res) && empty($additional));
 ?>
 --EXPECT--
-bool(false)
+bool(true)
index dc8def5eefb95c4a0d8afc0d4578fa76cf0505be..c3c924b46b78710d1ed08487c263382e31903d52 100644 (file)
@@ -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 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
+password_hash(): Argument #3 ($options) must be of type array, object given
+password_hash(): Argument #3 ($options) must be of type array, string given
+password_hash(): Argument #1 ($password) must be of type string, array given
index 688bbb4eb78525b0aad478aa286b90906f8c56bb..0b64b0c82ee38bf8bf00f8d4d77e63e525cbe754 100644 (file)
@@ -29,6 +29,6 @@ echo "OK!";
 --EXPECT--
 password_needs_rehash() expects at least 2 parameters, 1 given
 bool(false)
-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
+password_needs_rehash(): Argument #1 ($hash) must be of type string, array given
+password_needs_rehash(): Argument #3 ($options) must be of type array, string given
 OK!
index 6b15319c0e0ba870145cf1b39355246afa574eaf..50a57129e5b36837e10656c9b15dc716818d88a9 100644 (file)
Binary files a/ext/standard/tests/strings/addcslashes_001.phpt and b/ext/standard/tests/strings/addcslashes_001.phpt differ
index fd491b2faaacff4dc44c69b940f1e89ebbb5a587..8f12cd80f7f8c6a6262011c8e4b23cff780b8050 100644 (file)
@@ -9,4 +9,4 @@ try {
 }
 ?>
 --EXPECT--
-get_html_translation_table() expects argument #1 ($table) to be of type int, float given
+get_html_translation_table(): Argument #1 ($table) must be of type int, float given
index 85690a234ed998d8eed8289fc0a1147698924549..37af77afd8e1a149d494624f48e1ca17d8a0368a 100644 (file)
Binary files a/ext/standard/tests/strings/chunk_split_variation5.phpt and b/ext/standard/tests/strings/chunk_split_variation5.phpt differ
index fe19f325be136d34a2d09c63601ffd5b80675a87..9a499067a41e435094f6d2f4c4634a60b4ce3817 100644 (file)
@@ -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 argument #2 ($chunklen) to be of type int, float given
+chunk_split(): Argument #2 ($chunklen) must be of type int, float given
 -- Iteration 8 --
 Chunk length should be greater than zero
index 4fdb97b6cd8aa20dc93ebbcdb9c5739a3d1295ab..64c31048c8d7fbd285e5d182a526361cd2cfea53 100644 (file)
Binary files a/ext/standard/tests/strings/implode1.phpt and b/ext/standard/tests/strings/implode1.phpt differ
index 976dd97242e61496e0b03cdc8751c46fe60fa963..e77b20c744292b886166ee8a8c4a9ab621e05d0f 100644 (file)
@@ -26,5 +26,5 @@ echo "Done\n";
 *** Testing join() : error conditions ***
 
 -- Testing join() with less than expected no. of arguments --
-join() expects argument #1 ($pieces) to be of type array, string given
+join(): Argument #1 ($pieces) must be of type array, string given
 Done
index 58cb3d2d11d3316d68cc3ccfad8cd763f4e0cd59..970d5da3305c75dfaa0c985c27b7c82023afcc49 100644 (file)
@@ -125,15 +125,15 @@ string(29) "element11.07654321E-9element2"
 -- Iteration 9 --
 string(19) "element10.5element2"
 -- Iteration 10 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
 -- Iteration 11 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
 -- Iteration 12 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
 -- Iteration 13 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
 -- Iteration 14 --
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must 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 argument #1 ($glue) to be of type string|array, resource given
+join(): Argument #1 ($glue) must be of type string|array, resource given
 -- Iteration 25 --
 string(16) "element1element2"
 -- Iteration 26 --
index fe52aebeb7e130e43b2e4959ae3ac21d5d8dd6a0..37d9b64e1d93c5b516be0e1ad833c22bee935d2c 100644 (file)
@@ -108,49 +108,49 @@ echo "Done\n";
 
 --- Testing join() by supplying different values for 'pieces' argument ---
 -- Iteration 1 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
 -- Iteration 2 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
 -- Iteration 3 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
 -- Iteration 4 --
-join() expects argument #2 ($pieces) to be of type array, int given
+join(): Argument #2 ($pieces) must be of type array, int given
 -- Iteration 5 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
 -- Iteration 6 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
 -- Iteration 7 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
 -- Iteration 8 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
 -- Iteration 9 --
-join() expects argument #2 ($pieces) to be of type array, float given
+join(): Argument #2 ($pieces) must be of type array, float given
 -- Iteration 10 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
 -- Iteration 11 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
 -- Iteration 12 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
 -- Iteration 13 --
-join() expects argument #2 ($pieces) to be of type array, bool given
+join(): Argument #2 ($pieces) must be of type array, bool given
 -- Iteration 14 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 15 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 16 --
-join() expects argument #2 ($pieces) to be of type array, object given
+join(): Argument #2 ($pieces) must be of type array, object given
 -- Iteration 17 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 18 --
-join() expects argument #2 ($pieces) to be of type array, string given
+join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 19 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
 -- Iteration 20 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
 -- Iteration 21 --
-join() expects argument #2 ($pieces) to be of type array, resource given
+join(): Argument #2 ($pieces) must be of type array, resource given
 -- Iteration 22 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
 -- Iteration 23 --
-join() expects argument #2 ($pieces) to be of type array, null given
+join(): Argument #2 ($pieces) must be of type array, null given
 Done
index 25ea7664217dfa055545818b09c9fe19b19c017c..162576bb93b59b0c6b5298594d64fad5b7c1394d 100644 (file)
Binary files a/ext/standard/tests/strings/join_variation4.phpt and b/ext/standard/tests/strings/join_variation4.phpt differ
index 63e884e438ffccf02b34256a841ca52021f7b9b6..60c1d681e1ab5fa125d1c255b5ef2063a25fd6d6 100644 (file)
@@ -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"
-join() expects argument #1 ($glue) to be of type string, array given
+join(): Argument #1 ($glue) must be of type string, array given
 
 Warning: Array to string conversion in %s on line %d
 
index 61dd6b3aa4d1188781a23cf360ab1d61bd4340d5..8fed7737fc37fc15e21ebc7a6412384cf14f1aa3 100644 (file)
@@ -198,29 +198,29 @@ int(3)
 int(3)
 
 -- Iteration 10 --
-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
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 11 --
-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
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 12 --
-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
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 13 --
-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
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 14 --
-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
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
+printf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 15 --
 
@@ -311,6 +311,6 @@ int(0)
 int(0)
 
 -- Iteration 26 --
-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
+printf(): Argument #1 ($format) must be of type string, resource given
+printf(): Argument #1 ($format) must be of type string, resource given
+printf(): Argument #1 ($format) must be of type string, resource given
index b1f2395003145f527144ef0a0b097231155cb872..56ff4f0b4c116491bb7f7e2fe93b83b8e81cb53c 100644 (file)
@@ -166,29 +166,29 @@ string(3) "0.5"
 string(3) "0.5"
 
 -- Iteration 10 --
-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
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 11 --
-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
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 12 --
-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
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 13 --
-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
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 14 --
-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
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
+sprintf(): Argument #1 ($format) must be of type string, array given
 
 -- Iteration 15 --
 string(0) ""
@@ -246,7 +246,7 @@ string(0) ""
 string(0) ""
 
 -- Iteration 26 --
-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
+sprintf(): Argument #1 ($format) must be of type string, resource given
+sprintf(): Argument #1 ($format) must be of type string, resource given
+sprintf(): Argument #1 ($format) must be of type string, resource given
 Done
index b093fb691e2bb0cba1f80d9453dd243498f597f0..25b062d7a17e467ea361951c7829e6f5c915c409 100644 (file)
@@ -36,6 +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 argument #2 ($pad_length) to be of type int, float given
+str_pad(): Argument #2 ($pad_length) must 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
index 1a0b7d5531546ac48622a686e31c29835b9419c8..7de2d498bb5cdda0aa99cbabce0f7547d3909472 100644 (file)
@@ -47,5 +47,5 @@ string(1) "q"
 int(1)
 string(0) ""
 int(0)
-str_replace() expects argument #3 ($subject) to be of type string|array, resource given
+str_replace(): Argument #3 ($subject) must be of type string|array, resource given
 resource(%d) of type (stream)
index d5d56b820846b4156b7b1447ab47fb32993d947c..2245ca422c2c13fdc4621e6518546114951b9ce9 100644 (file)
@@ -200,8 +200,8 @@ array(2) {
 int(1)
 
 -- Testing Resources --
-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
+str_replace(): Argument #3 ($subject) must be of type string|array, resource given
+str_replace(): Argument #3 ($subject) must be of type string|array, resource given
 
 -- Testing a longer and heredoc string --
 string(623) "FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
index f36c23dfbd3f6bd31d7cc0a555247e562a582bb2..92592de0f544df4976e890aad32e6d3bbd513c8c 100644 (file)
@@ -126,19 +126,19 @@ bool(false)
 int(17)
 
 -- Iteration 10 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
 
 -- Iteration 11 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
 
 -- Iteration 12 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
 
 -- Iteration 13 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
 
 -- Iteration 14 --
-stripos() expects argument #2 ($needle) to be of type string, array given
+stripos(): Argument #2 ($needle) must be of type string, array given
 
 -- Iteration 15 --
 int(9)
@@ -168,7 +168,7 @@ int(0)
 int(0)
 
 -- Iteration 24 --
-stripos() expects argument #2 ($needle) to be of type string, resource given
+stripos(): Argument #2 ($needle) must be of type string, resource given
 
 -- Iteration 25 --
 int(0)
index 9746cdb59a2c1f71af8b200595f5d6c5a3cae113..9b7ff243503300be8fbae018a99b148f8e9589b9 100644 (file)
@@ -126,20 +126,20 @@ bool(false)
 int(0)
 bool(false)
 -- Iteration 10 --
-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
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 11 --
-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
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 12 --
-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
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 13 --
-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
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 14 --
-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
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: stripos(): Argument #1 ($haystack) must 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 argument #1 ($haystack) to be of type string, resource given
-TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, resource given
+TypeError: stripos(): Argument #1 ($haystack) must be of type string, resource given
 -- Iteration 25 --
 int(0)
 ValueError: Offset not contained in string
index 7c25c4032d57d4f2077070211d0508663a9a6374..27cecec3c231fa97d3c7cc2c72c1831a0eb60085 100644 (file)
@@ -100,11 +100,11 @@ bool(false)
 -- Iteration 7 --
 bool(false)
 -- Iteration 8 --
-stristr() expects argument #2 ($needle) to be of type string, array given
+stristr(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 9 --
-stristr() expects argument #2 ($needle) to be of type string, array given
+stristr(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 10 --
-stristr() expects argument #2 ($needle) to be of type string, array given
+stristr(): Argument #2 ($needle) must 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 argument #2 ($needle) to be of type string, resource given
+stristr(): Argument #2 ($needle) must be of type string, resource given
 -- Iteration 19 --
 string(11) "Hello World"
 -- Iteration 20 --
index 1929b83f74d80444f72e64b98e0bf3b150488d9e..59162e18222a294f56eef199ddb1a13344cf73c2 100644 (file)
Binary files a/ext/standard/tests/strings/strpos.phpt and b/ext/standard/tests/strings/strpos.phpt differ
index 04e96f971446dabc4a9afc7e450b8433fc8a5734..269c2e09ccfbd054018d8d57b5eeae5797d87313 100644 (file)
@@ -154,15 +154,15 @@ string(2) "10"
 -- Iteration 9 --
 bool(false)
 -- Iteration 10 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 11 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 12 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 13 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 14 --
-strrchr() expects argument #2 ($needle) to be of type string, array given
+strrchr(): Argument #2 ($needle) must 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 argument #2 ($needle) to be of type string, resource given
+strrchr(): Argument #2 ($needle) must be of type string, resource given
 -- Iteration 25 --
 bool(false)
 -- Iteration 26 --
index 33a34e21aba16a0ac8f3bb44321eaac3803c2a2d..7944ff82c6121736d10f6c65a1b8fe681c18a450 100644 (file)
@@ -113,15 +113,15 @@ string(4) "1E-9"
 -- Iteration 9 --
 string(3) "0.5"
 -- Iteration 10 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 11 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 12 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 13 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 14 --
-strrchr() expects argument #1 ($haystack) to be of type string, array given
+strrchr(): Argument #1 ($haystack) must 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 argument #1 ($haystack) to be of type string, resource given
+strrchr(): Argument #1 ($haystack) must be of type string, resource given
 -- Iteration 25 --
 bool(false)
 -- Iteration 26 --
index f2673ded5b64183c2b5621f4355511d694e04983..39d0bf16f813ed2fc070881821fc6158ffb400a3 100644 (file)
@@ -36,7 +36,7 @@ try {
 echo "Done\n";
 ?>
 --EXPECT--
-strripos() expects argument #3 ($offset) to be of type int, float given
+strripos(): Argument #3 ($offset) must be of type int, float given
 Offset not contained in string
 Offset not contained in string
 Offset not contained in string
index 21f0ea7745b7b4adc2d23ab519deac30a74d75fc..13df98e71c8ea75f49334d7552f214358d7ef94a 100644 (file)
@@ -36,7 +36,7 @@ try {
 echo "Done\n";
 ?>
 --EXPECT--
-strrpos() expects argument #3 ($offset) to be of type int, float given
+strrpos(): Argument #3 ($offset) must be of type int, float given
 Offset not contained in string
 Offset not contained in string
 Offset not contained in string
index c14c4643c1d5a4fd50598a2f63742041011c98f0..b16d946f6cf6d53bdaf91eb6146a65073aa0e7e5 100644 (file)
@@ -116,15 +116,15 @@ bool(false)
 -- Iteration 9 --
 int(28)
 -- Iteration 10 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 11 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 12 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 13 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must be of type string, array given
 -- Iteration 14 --
-strrpos() expects argument #2 ($needle) to be of type string, array given
+strrpos(): Argument #2 ($needle) must 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 argument #2 ($needle) to be of type string, resource given
+strrpos(): Argument #2 ($needle) must be of type string, resource given
 -- Iteration 25 --
 int(87)
 -- Iteration 26 --
index 24d98285811790852121ebc4574cea50e5895495..df0aac0153a3fb191e38c957b913bc0c25048488 100644 (file)
@@ -127,20 +127,20 @@ bool(false)
 int(0)
 bool(false)
 -- Iteration 10 --
-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
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 11 --
-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
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 12 --
-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
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 13 --
-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
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
 -- Iteration 14 --
-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
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
+TypeError: strrpos(): Argument #1 ($haystack) must 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 argument #1 ($haystack) to be of type string, resource given
-TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, resource given
+TypeError: strrpos(): Argument #1 ($haystack) must be of type string, resource given
 -- Iteration 25 --
 int(0)
 ValueError: Offset not contained in string
index 0a44abbb80b0681c44525f85be3cce47574b9150..785891e4220f64f39dde633ea16f6299de86c5fc 100644 (file)
@@ -125,7 +125,7 @@ string(6) "012atm"
 -- Iteration 16 --
 string(6) "012ttm"
 -- Iteration 17 --
-strtr() expects argument #2 ($from) to be of type string|array, resource given
+strtr(): Argument #2 ($from) must be of type string|array, resource given
 -- Iteration 18 --
 string(6) "012atm"
 -- Iteration 19 --
index 5dc910e9be929ded2dfefd54398d701c901d63cc..131682b9a87ad173b234e0aacd9fcf59eb9b2468 100644 (file)
@@ -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 argument #2 ($from) to be of type string|array, resource given
+strtr(): Argument #2 ($from) must be of type string|array, resource given
 
 -- Iteration 18 --
 If two arguments are passed, the second argument must be an array
index 72866ef1a84ca5e5ee0f5b526de13eed716e7e7c..16dba223c3a3846302a8fb68cbe6bf6c747861f7 100644 (file)
@@ -43,6 +43,6 @@ unlink( $file );
 ?>
 --EXPECT--
 -- Testing vfprintf() function with wrong variable types as argument --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
 int(9)
 string(9) "Foo  fake"
index 1279ac3904aab0a37a5585decdda5bfce4763c3d..4c5fd92d78c06307566c8e3d1a1f7f0e89c80240 100644 (file)
@@ -40,5 +40,5 @@ unlink( $file );
 ?>
 --EXPECT--
 -- Testing vfprintf() function with other strangeties  --
-vfprintf() expects argument #1 ($handle) to be of type resource, string given
+vfprintf(): Argument #1 ($handle) must be of type resource, string given
 Error found: Argument number must be greater than zero.
index d181e50eac2c8957d23c086916c8cd868fe08a04..f03b6879b151a29bb3760b7f748d4b3b9633d813 100644 (file)
@@ -133,19 +133,19 @@ unlink($data_file);
 -- Iteration 9 --
 0.5
 -- Iteration 10 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
 
 -- Iteration 11 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
 
 -- Iteration 12 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
 
 -- Iteration 13 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
 
 -- Iteration 14 --
-vfprintf() expects argument #2 ($format) to be of type string, array given
+vfprintf(): Argument #2 ($format) must be of type string, array given
 
 -- Iteration 15 --
 
@@ -170,4 +170,4 @@ object
 -- Iteration 25 --
 
 -- Iteration 26 --
-vfprintf() expects argument #2 ($format) to be of type string, resource given
+vfprintf(): Argument #2 ($format) must be of type string, resource given
index 51c3c8985e1e99f6a584cfab8d8df71be1e7b7c5..742c9cfadc3c29dec604df0c27ba9c5f620408b3 100644 (file)
@@ -143,19 +143,19 @@ int(13)
 int(3)
 
  -- Iteration 10 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 11 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 12 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 13 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 14 --
-vprintf() expects argument #1 ($format) to be of type string, array given
+vprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 15 --
 
@@ -202,4 +202,4 @@ int(0)
 int(0)
 
  -- Iteration 26 --
-vprintf() expects argument #1 ($format) to be of type string, resource given
+vprintf(): Argument #1 ($format) must be of type string, resource given
index 15155a0626d9ff68699385f05344c11f871b02aa..5366b403256cc47bef1e5a4c53791864fdc04c04 100644 (file)
@@ -132,19 +132,19 @@ string(13) "1.07654321E-9"
 string(3) "0.5"
 
  -- Iteration 10 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 11 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 12 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 13 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 14 --
-vsprintf() expects argument #1 ($format) to be of type string, array given
+vsprintf(): Argument #1 ($format) must be of type string, array given
 
  -- Iteration 15 --
 string(0) ""
@@ -180,5 +180,5 @@ string(0) ""
 string(0) ""
 
  -- Iteration 26 --
-vsprintf() expects argument #1 ($format) to be of type string, resource given
+vsprintf(): Argument #1 ($format) must be of type string, resource given
 Done
index ad9610138629eeeb727445e0b459d424a8a12c27..cd8c5c7e36278640048084449161ec519b49a6f4 100644 (file)
@@ -29,4 +29,4 @@ try {
 ?>
 --EXPECT--
 test::func()
-call_user_func() expects argument #1 ($function) to be a valid callback, cannot call abstract method test_base::func()
+call_user_func(): Argument #1 ($function) must be a valid callback, cannot call abstract method test_base::func()
index 7932fd4240fcaab1d6fceb7447f92b16e0aa345e..6903d9d8ba57f85d576d0c8ed9a89b05e4a29c00 100644 (file)
@@ -13,7 +13,7 @@ function f(UndefClass $x)
 f(new stdClass);
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: f(): Argument #1 ($x) must 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}
index 7ed944dc4838c4a008beca2b31380aa3fbb347bb..7a168b3275a4a0454f3f99a3665cadee09f06001 100644 (file)
@@ -14,4 +14,4 @@ try {
 ?>
 --EXPECT--
 In autoload: string(6) "UndefC"
-call_user_func() expects argument #1 ($function) to be a valid callback, class 'UndefC' not found
+call_user_func(): Argument #1 ($function) must be a valid callback, class 'UndefC' not found
index a56efde2d96cc8c80ddd529054ed98109e66bc47..74d14c8a408856a3155c47c38cbcb82841a0e487 100644 (file)
@@ -27,5 +27,5 @@ try {
 ?>
 --EXPECT--
 Called function foo:bar(1)
-call_user_func_array() expects argument #1 ($function) to be a valid callback, cannot access private method foo::bar()
+call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method foo::bar()
 Call to private method foo::bar() from context ''
index 02968a9b3bbde5c0e1f8ba386bc7bcd678f98c3c..987298baa5fea93df5b1871d1550c7820e8f7d58 100644 (file)
@@ -53,7 +53,7 @@ try {
 --EXPECT--
 Object with no __toString():
 Try 1:
-printf() expects argument #1 ($format) to be of type string, object given
+printf(): Argument #1 ($format) must be of type string, object given
 
 
 Try 2:
index ca476187f3d6b547d7fbbbe6a8a713c1c5553ae5..f1c1973cf3dcb64777904166e3274326f5a33ce1 100644 (file)
@@ -32,7 +32,7 @@ $a->b($b);
 
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: FooBar::a(): Argument #1 ($foo) must 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}
index a491a26a628b1b530de70a00b91503b2c3653f0d..765de66bab0f52fa7f13e4abb6cd6d35d84a9848 100644 (file)
@@ -11,7 +11,7 @@ $o = new Foo;
 $o->a($o);
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: Foo::a(): Argument #1 ($foo) must 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}
index c43f13dbef8c6f48ff3552eb1844384994b18347..fab088daae8fa49c76327deefba6d37b418e2292 100644 (file)
@@ -57,7 +57,7 @@ array(1) {
   int(25)
 }
 
-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
+Fatal error: Uncaught TypeError: Test::f1(): Argument #1 ($ar) must 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}
index 299ec1dd46e6d30ab06c35cdde493c70d43445bd..2ba8870b0a04737d460f1be6cd2987552265fa7b 100644 (file)
@@ -144,10 +144,10 @@ Ensure type hints are enforced for functions invoked as callbacks.
 ?>
 --EXPECTF--
 ---> Type hints with callback function:
-0: f1() expects argument #1 ($a) to be of type A, int given%s(%d)
+0: f1(): Argument #1 ($a) must be of type A, int given%s(%d)
 
 in f1;
-0: f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
+0: f2(): Argument #1 ($a) must 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: C::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
+0: C::f1(): Argument #1 ($a) must be of type A, int given%s(%d)
 
 in C::f1 (static);
-0: C::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
+0: C::f2(): Argument #1 ($a) must 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: D::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
+0: D::f1(): Argument #1 ($a) must be of type A, int given%s(%d)
 
 in C::f1 (instance);
-0: D::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
+0: D::f2(): Argument #1 ($a) must be of type ?A, int given%s(%d)
 
 in C::f2 (instance);
 in C::f2 (instance);
index 5f35b3a229fb2a5eb8832f33cfa9dea6644005c1..6b2804cfd4c521c6b96f7aae0453f3fcbf29237b 100644 (file)
@@ -53,7 +53,7 @@ int(2)
 object(foo)#%d (0) {
 }
 
-Fatal error: Uncaught TypeError: typehint() expects argument #1 ($a) to be of type foo, int given in %s:%d
+Fatal error: Uncaught TypeError: typehint(): Argument #1 ($a) must be of type foo, int given in %s:%d
 Stack trace:
 #0 [internal function]: typehint(1, 1)
 #1 %s(%d): array_walk(Array, 'typehint')
index 4d785592d84df8f1f85a82ec41c61f66f47c9680..a7481b6ea6c46bbd1d24c14f0eacac7db6d46af4 100644 (file)
@@ -19,7 +19,7 @@ Catchable fatal error [1]
     echo "ALIVE!\n";
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: blah(): Argument #1 ($a) must 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}
index 70e054c6980641ffabb2899bf03cd98f426d362d..50f06051e303b1ac54c7c040d85e1fced679aab9 100644 (file)
@@ -25,5 +25,5 @@ Catchable fatal error [2]
     echo "ALIVE!\n";
 ?>
 --EXPECTF--
-blah() expects argument #1 ($a) to be of type Foo, stdClass given, called in %scatchable_error_002.php on line %d
+blah(): Argument #1 ($a) must be of type Foo, stdClass given, called in %scatchable_error_002.php on line %d
 ALIVE!
index eb17ff5b8d399e3c5ec6339487c8564ec904eb40..293b469cd27e95c51e0348e93dcc9875de8f6890 100644 (file)
@@ -20,7 +20,7 @@ type_hint_foo($bar);
 
 ?>
 --EXPECTF--
-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
+Fatal error: Uncaught TypeError: type_hint_foo(): Argument #1 ($a) must 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}
index 9041461150f9cc79bd0a60b3c50e65e601a330ea..72b80891cd2bea6f5b4e9b971d4817a48244e7b0 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 8e4509370e881062d6739320aaef7b95e2d36da7..45d288f15be1ad190a25f4c582ba6f22c24ce437 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 4ee1fd0cd68bab1b8b658cee1aed96be2c547839..6e42372cb87eb59dbd04dc628104ae1593bd6154 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index f330e124c2f87e962fb5f57ef18f7eb448b006e7..f3e05024601205fd2b976d4b51cd267715c24f65 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 82694ad5860abdb1a2d9f1a3cdcc4c99d922e1d3..bd95ea7cb77d130cd8934db51da1b8a45b5d52ff 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index a46f1767f3728383a90e9f040fac1c79551f89fa..a937bb9ac853afd44f547e4522392a77184a1971 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index eca06f281915670cfa72791e90f6ec191613da13..2cc9b94fa9e0987fe1bbc18ffdf2b3735dd414dd 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 366de4b0fe7abba5cd0fa36667c05536360dde7c..0f1a9f46254c41585ed326d832f1d92af503f9c1 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 9166cc47d029a3c6c877440e8df7d2174e8e1a9c..0355dc4091a04e2f8bdd3cf75ea22719d2090d88 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 526c0dd098f40466160354b77d283134e1e5b5e4..e75187702785deb462f735504bbf733e9c00c48d 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index 826aedb11498aaefb3f9dd2dcc36414b874cc858..ce273f1780d390179a08695efb1700023d16acc8 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :
index b7b4ff34beb6dfe4f356db84a7e9211a6e6adb01..0ca0cde849bd99226291d3e5b5129317fc59aeba 100644 (file)
@@ -78,19 +78,19 @@ STDERR (php://fd/2):
 - current value  : bool(false)
 Not a stream:
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - enabling VT100 :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - disabling VT100:
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 - current value  :
-Warning: sapi_windows_vt100_support() expects argument #1 to be of type resource, string given in %s on line %d
+Warning: sapi_windows_vt100_support(): Argument #1 must be of type resource, string given in %s on line %d
 bool(false)
 Invalid stream (php://temp):
 - current value  :