From 9e4d482f27e56c6b4c2d88d4e3160ebd4c24ebab Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Sun, 20 Feb 2022 14:41:41 +0100 Subject: [PATCH 1/3] Deprecate implicit bool to string coercion --- Zend/tests/017.phpt | 2 + .../call_user_func_strict_arginfo_check.phpt | 3 +- .../tests/type_declarations/scalar_basic.phpt | 2 + .../scalar_return_basic_64bit.phpt | 2 + .../union_types/type_checking_weak.phpt | 4 +- Zend/zend_API.c | 3 + ext/iconv/tests/bug48147.phpt | 4 + ext/iconv/tests/iconv_mime_decode.phpt | 2 + ext/json/tests/bug69187.phpt | 5 +- ext/reflection/tests/005.phpt | 6 +- .../ReflectionClass_constructor_002.phpt | 2 + .../ReflectionClass_getConstant_error.phpt | 4 +- .../tests/ReflectionClass_getMethod_002.phpt | 2 + .../ReflectionClass_getProperty_002.phpt | 2 + .../ReflectionClass_hasConstant_002.phpt | 4 +- .../tests/ReflectionClass_hasMethod_002.phpt | 4 +- .../ReflectionClass_hasProperty_002.phpt | 4 +- .../ReflectionMethod_constructor_error1.phpt | 6 + ext/reflection/tests/bug64936.phpt | 5 +- ext/session/tests/010.phpt | 3 +- .../tests/session_encode_variation8.phpt | 2 + .../tests/session_set_save_handler_basic.phpt | 2 + .../session_set_save_handler_closures.phpt | 2 + .../session_set_save_handler_variation1.phpt | 2 + ext/standard/tests/file/005_variation2.phpt | 8 + .../tests/file/file_exists_variation1.phpt | 4 +- .../file/file_get_contents_variation8.phpt | 4 + .../file/file_put_contents_variation8.phpt | 6 + .../tests/file/filegroup_variation2.phpt | 4 + .../tests/file/fileinode_variation2.phpt | 4 + .../tests/file/fileowner_variation2.phpt | 4 + .../tests/file/fileperms_variation2.phpt | 4 + .../tests/file/filesize_variation5.phpt | 2 + ext/standard/tests/file/fnmatch_basic.phpt | 10 +- .../tests/file/fnmatch_variation.phpt | 146 +++++++++++- ext/standard/tests/file/fread_variation2.phpt | 144 ++++++++++++ ext/standard/tests/file/fread_variation4.phpt | 116 ++++++++- ext/standard/tests/file/glob_variation.phpt | 14 ++ .../tests/file/is_dir_variation3.phpt | 6 +- .../tests/file/is_executable_variation3.phpt | 6 +- .../tests/file/is_readable_variation3.phpt | 6 +- .../tests/file/is_writable_variation3.phpt | 10 +- .../tests/file/lstat_stat_variation22.phpt | 4 + .../tests/file/pathinfo_variaton.phpt | 22 +- ext/standard/tests/file/readfile_error.phpt | 2 + .../tests/file/readfile_variation10.phpt | 4 + .../tests/file/readlink_variation1.phpt | 4 + .../tests/file/rename_variation13.phpt | 14 ++ .../symlink_link_linkinfo_is_link_error1.phpt | 6 + .../symlink_link_linkinfo_is_link_error2.phpt | 6 + .../tests/file/tempnam_variation3.phpt | 4 + .../tests/file/tempnam_variation7.phpt | 4 + ext/standard/tests/file/unlink_error.phpt | 4 + .../escapeshellarg_variation1.phpt | 10 +- .../get_cfg_var_variation2.phpt | 10 +- .../tests/general_functions/uniqid_basic.phpt | 12 + .../tests/math/base_convert_variation1.phpt | 8 + .../tests/math/bindec_basic_64bit.phpt | 4 + .../tests/math/bindec_variation1_64bit.phpt | 8 + .../tests/math/hexdec_basic_64bit.phpt | 4 + .../tests/math/hexdec_variation1_64bit.phpt | 8 + .../tests/math/octdec_basic_64bit.phpt | 4 + .../tests/math/octdec_variation1.phpt | 8 + ext/standard/tests/network/inet_ipv6.phpt | 4 +- .../tests/streams/stream_socket_pair.phpt | 1 + .../tests/strings/chop_variation5.phpt | 4 +- ext/standard/tests/strings/implode1.phpt | 4 + .../tests/strings/join_variation1.phpt | 10 +- .../tests/strings/join_variation4.phpt | 4 + ext/standard/tests/strings/lcfirst.phpt | 4 + ext/standard/tests/strings/ltrim.phpt | 4 +- .../strings/quoted_printable_encode_001.phpt | 4 +- ext/standard/tests/strings/rtrim.phpt | 2 + .../tests/strings/sprintf_variation1.phpt | 26 +- ext/standard/tests/strings/str_pad.phpt | 70 +++++- ext/standard/tests/strings/str_repeat.phpt | 14 +- .../tests/strings/str_replace_variation1.phpt | 4 + .../tests/strings/str_replace_variation2.phpt | 4 + ext/standard/tests/strings/strcasecmp.phpt | 222 ++++++++++++++---- ext/standard/tests/strings/strcmp.phpt | 136 ++++++++--- .../tests/strings/strip_tags_variation2.phpt | 10 +- ext/standard/tests/strings/stripos.phpt | 14 +- .../tests/strings/stripos_variation1.phpt | 10 +- .../tests/strings/stripos_variation2.phpt | 10 +- .../tests/strings/stristr_variation2.phpt | 10 +- ext/standard/tests/strings/strlen.phpt | 8 +- .../strings/strnatcasecmp_variation1.phpt | 4 +- ext/standard/tests/strings/strpos.phpt | 8 +- .../tests/strings/strrchr_variation1.phpt | 4 + .../tests/strings/strrchr_variation2.phpt | 6 +- .../tests/strings/strripos_variation1.phpt | 18 +- .../tests/strings/strripos_variation2.phpt | 18 +- .../tests/strings/strrpos_variation2.phpt | 10 +- .../tests/strings/strrpos_variation7.phpt | 4 +- ext/standard/tests/strings/strstr.phpt | 4 + ext/standard/tests/strings/strtolower.phpt | 4 + ext/standard/tests/strings/strtoupper1.phpt | 4 + .../tests/strings/strtr_variation4.phpt | 10 +- .../tests/strings/strtr_variation6.phpt | 8 + .../tests/strings/strtr_variation8.phpt | 8 + ext/standard/tests/strings/trim1.phpt | 2 + ext/standard/tests/strings/ucfirst.phpt | 4 + 102 files changed, 1286 insertions(+), 134 deletions(-) diff --git a/Zend/tests/017.phpt b/Zend/tests/017.phpt index 619365cbce17f..acf825f37240f 100644 --- a/Zend/tests/017.phpt +++ b/Zend/tests/017.phpt @@ -51,6 +51,8 @@ string(5) "array" int(%d) string(5) "array" int(%d) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) string(5) "array" int(%d) diff --git a/Zend/tests/call_user_func_strict_arginfo_check.phpt b/Zend/tests/call_user_func_strict_arginfo_check.phpt index 1f21ee989dd5a..4f226ed0534a7 100644 --- a/Zend/tests/call_user_func_strict_arginfo_check.phpt +++ b/Zend/tests/call_user_func_strict_arginfo_check.phpt @@ -10,5 +10,6 @@ namespace Foo; var_dump(call_user_func('strlen', false)); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) diff --git a/Zend/tests/type_declarations/scalar_basic.phpt b/Zend/tests/type_declarations/scalar_basic.phpt index c69d17c8c7004..73ebf5c85d2bf 100644 --- a/Zend/tests/type_declarations/scalar_basic.phpt +++ b/Zend/tests/type_declarations/scalar_basic.phpt @@ -197,9 +197,11 @@ string(%d) "%d" string(3) "NAN" *** Trying bool(true) +E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 string(1) "1" *** Trying bool(false) +E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 string(0) "" *** Trying NULL diff --git a/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt b/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt index 644ff58299440..25c953d4380f7 100644 --- a/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt +++ b/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt @@ -158,8 +158,10 @@ string(19) "9223372036854775807" *** Trying float(NAN) string(3) "NAN" *** Trying bool(true) +E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 string(1) "1" *** Trying bool(false) +E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 string(0) "" *** Trying NULL *** Caught {closure}(): Return value must be of type string, null returned in %s on line %d diff --git a/Zend/tests/type_declarations/union_types/type_checking_weak.phpt b/Zend/tests/type_declarations/union_types/type_checking_weak.phpt index 351a3e9e78ede..04444979ab86e 100644 --- a/Zend/tests/type_declarations/union_types/type_checking_weak.phpt +++ b/Zend/tests/type_declarations/union_types/type_checking_weak.phpt @@ -181,8 +181,8 @@ INF => "INF" "42x" => "42x" "x" => "x" "" => "" -true => "1" -false => "" +true => "1" (Implicit bool to string coercion is deprecated) +false => "" (Implicit bool to string coercion is deprecated) null => Argument ... must be of type array|string, null given [] => [] new stdClass => Argument ... must be of type array|string, stdClass given diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 3ef291c315596..b79a85f27e99b 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -652,6 +652,9 @@ ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **des if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("string", arg_num)) { return 0; } + if (UNEXPECTED(Z_TYPE_P(arg) == IS_TRUE || Z_TYPE_P(arg) == IS_FALSE)) { + zend_error(E_DEPRECATED, "Implicit bool to string coercion is deprecated"); + } convert_to_string(arg); *dest = Z_STR_P(arg); } else if (UNEXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) { diff --git a/ext/iconv/tests/bug48147.phpt b/ext/iconv/tests/bug48147.phpt index ce304eecfb3c7..dbde8413a022e 100644 --- a/ext/iconv/tests/bug48147.phpt +++ b/ext/iconv/tests/bug48147.phpt @@ -20,8 +20,12 @@ bool(false) string(10) "aa%C3%B8aa" Notice: iconv(): Detected an incomplete multibyte character in input string in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" string(8) "%C3%B8aa" Notice: iconv(): Detected an incomplete multibyte character in input string in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" diff --git a/ext/iconv/tests/iconv_mime_decode.phpt b/ext/iconv/tests/iconv_mime_decode.phpt index 00d8b2244bf6c..2b0af0d20db38 100644 --- a/ext/iconv/tests/iconv_mime_decode.phpt +++ b/ext/iconv/tests/iconv_mime_decode.phpt @@ -70,12 +70,14 @@ do_regression_test(); (32) "Subject: Prüfung PrüfungkůÔńÓlet" (31) "Subject: PrüfungPrüfungkůÔńÓlet" 2: iconv_mime_decode(): Malformed string +8192: Implicit bool to string coercion is deprecated (0) "" (27) "From: サンプル文字列サンプル文字列日本語テキスト" (31) "Subject: PrüfungPrüfungkůÔńÓlet" (32) "Subject: Prüfung PrüfungkůÔńÓlet" (100) "Subject: =?ISO-8859-1?Q?Pr=FCfung?==?ISO-8859-1*de_DE?Q?Pr=FCfung?==?ISO-8859-2?Q?k=F9=D4=F1=D3let?=" 2: iconv_mime_decode(): Malformed string +8192: Implicit bool to string coercion is deprecated (0) "" (27) "From: サンプル文字列サンプル文字列日本語テキスト" (31) "Subject: PrüfungPrüfungkůÔńÓlet" diff --git a/ext/json/tests/bug69187.phpt b/ext/json/tests/bug69187.phpt index 4d076c4b50b17..ea5f9f2b9a14a 100644 --- a/ext/json/tests/bug69187.phpt +++ b/ext/json/tests/bug69187.phpt @@ -26,7 +26,8 @@ var_dump(json_last_error()); json_decode("\"\x00\""); var_dump(json_last_error()); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d NULL int(4) NULL @@ -35,6 +36,8 @@ int(0) int(0) int(1) int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) int(0) int(5) diff --git a/ext/reflection/tests/005.phpt b/ext/reflection/tests/005.phpt index 58411f98c847c..99341614d106a 100644 --- a/ext/reflection/tests/005.phpt +++ b/ext/reflection/tests/005.phpt @@ -46,9 +46,13 @@ foreach($r->getMethods() as $m) } ?> ---EXPECT-- +--EXPECTF-- string(19) "Comment for class A" string(15) "Method A::bla()" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) string(22) "* Comment for A::baz()" diff --git a/ext/reflection/tests/ReflectionClass_constructor_002.phpt b/ext/reflection/tests/ReflectionClass_constructor_002.phpt index adb3784347374..f6d2c5ad24624 100644 --- a/ext/reflection/tests/ReflectionClass_constructor_002.phpt +++ b/ext/reflection/tests/ReflectionClass_constructor_002.phpt @@ -50,6 +50,8 @@ ReflectionClass::__construct() expects exactly 1 argument, 0 given Deprecated: ReflectionClass::__construct(): Passing null to parameter #1 ($objectOrClass) of type object|string is deprecated in %s on line %d Class "" does not exist + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Class "1" does not exist Class "1" does not exist ReflectionClass::__construct(): Argument #1 ($objectOrClass) must be of type object|string, array given diff --git a/ext/reflection/tests/ReflectionClass_getConstant_error.phpt b/ext/reflection/tests/ReflectionClass_getConstant_error.phpt index d143006af9992..d998dfac80c80 100644 --- a/ext/reflection/tests/ReflectionClass_getConstant_error.phpt +++ b/ext/reflection/tests/ReflectionClass_getConstant_error.phpt @@ -12,8 +12,10 @@ var_dump($rc->getConstant(1)); var_dump($rc->getConstant(1.5)); var_dump($rc->getConstant(true)); ?> ---EXPECT-- +--EXPECTF-- Check invalid params: bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt index 9278b47875448..47e5fb11def0b 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt @@ -63,6 +63,8 @@ Deprecated: ReflectionClass::getMethod(): Passing null to parameter #1 ($name) o Method C::() does not exist Method C::1() does not exist Method C::1.5() does not exist + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Method C::1() does not exist ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, array given ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, C given diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt index c2f8419a1ea7f..0ba737dd32594 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt @@ -61,6 +61,8 @@ Deprecated: ReflectionClass::getProperty(): Passing null to parameter #1 ($name) Property C::$ does not exist Property C::$1 does not exist Property C::$1.5 does not exist + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Property C::$1 does not exist ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, array given ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, C given diff --git a/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt b/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt index 4e4c206ac23ee..927f29345c093 100644 --- a/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt @@ -15,8 +15,10 @@ var_dump($rc->hasConstant(1)); var_dump($rc->hasConstant(1.5)); var_dump($rc->hasConstant(true)); ?> ---EXPECT-- +--EXPECTF-- Check invalid params: bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) diff --git a/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt b/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt index 5e175fbb7e5da..dc8c58e8e1464 100644 --- a/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt @@ -15,8 +15,10 @@ var_dump($rc->hasMethod(1)); var_dump($rc->hasMethod(1.5)); var_dump($rc->hasMethod(true)); ?> ---EXPECT-- +--EXPECTF-- Check invalid params: bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) diff --git a/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt b/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt index 14b4520e07ef0..e752915992a55 100644 --- a/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt @@ -15,8 +15,10 @@ var_dump($rc->hasProperty(1)); var_dump($rc->hasProperty(1.5)); var_dump($rc->hasProperty(true)); ?> ---EXPECT-- +--EXPECTF-- Check invalid params: bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt index 8c5bd7139ceaa..cd068ce940856 100644 --- a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt +++ b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt @@ -65,6 +65,8 @@ try { ?> --EXPECTF-- Wrong type of argument (bool): + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d ReflectionException: ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method name in %s:%d Stack trace: #0 %s ReflectionMethod->__construct('1') @@ -75,11 +77,15 @@ Stack trace: #0 %s ReflectionMethod->__construct('3') #1 {main} Wrong type of argument (bool, string): + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d ReflectionException: Class "1" does not exist in %s:%d Stack trace: #0 %s ReflectionMethod->__construct('1', 'foo') #1 {main} Wrong type of argument (string, bool): + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d ReflectionException: Method TestClass::1() does not exist in %s:%d Stack trace: #0 %s ReflectionMethod->__construct('TestClass', '1') diff --git a/ext/reflection/tests/bug64936.phpt b/ext/reflection/tests/bug64936.phpt index 537876d1c60cb..ac523ed2e7d27 100644 --- a/ext/reflection/tests/bug64936.phpt +++ b/ext/reflection/tests/bug64936.phpt @@ -28,6 +28,9 @@ $rb = new ReflectionClass('B'); var_dump(strip_doc_comment($rb->getDocComment())); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) diff --git a/ext/session/tests/010.phpt b/ext/session/tests/010.phpt index 367edcfa61fd4..326f61b8de8c3 100644 --- a/ext/session/tests/010.phpt +++ b/ext/session/tests/010.phpt @@ -14,5 +14,6 @@ error_reporting(E_ALL); $session_array = explode(";", @session_encode()); print "I live\n"; ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d I live diff --git a/ext/session/tests/session_encode_variation8.phpt b/ext/session/tests/session_encode_variation8.phpt index 3571e8c821691..604d8feac6cba 100644 --- a/ext/session/tests/session_encode_variation8.phpt +++ b/ext/session/tests/session_encode_variation8.phpt @@ -29,6 +29,8 @@ Warning: session_start(): Cannot find session serialization handler "blah" - ses bool(false) Warning: session_encode(): Cannot encode non-existent session in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d diff --git a/ext/session/tests/session_set_save_handler_basic.phpt b/ext/session/tests/session_set_save_handler_basic.phpt index e8756ee81a823..eb0e4d97acb3e 100644 --- a/ext/session/tests/session_set_save_handler_basic.phpt +++ b/ext/session/tests/session_set_save_handler_basic.phpt @@ -64,6 +64,8 @@ rmdir($path); *** Testing session_set_save_handler() : basic functionality *** string(%d) "%s" +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: session_module_name(): Session handler module "" cannot be found in %s on line %d bool(false) diff --git a/ext/session/tests/session_set_save_handler_closures.phpt b/ext/session/tests/session_set_save_handler_closures.phpt index 4f8b21f20d1c7..65616997b035f 100644 --- a/ext/session/tests/session_set_save_handler_closures.phpt +++ b/ext/session/tests/session_set_save_handler_closures.phpt @@ -55,6 +55,8 @@ ob_end_flush(); *** Testing session_set_save_handler() : using closures as callbacks *** string(%d) "%s" +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: session_module_name(): Session handler module "" cannot be found in %s on line %d bool(false) diff --git a/ext/session/tests/session_set_save_handler_variation1.phpt b/ext/session/tests/session_set_save_handler_variation1.phpt index cf30ba7f1e10f..ff632d9449012 100644 --- a/ext/session/tests/session_set_save_handler_variation1.phpt +++ b/ext/session/tests/session_set_save_handler_variation1.phpt @@ -25,6 +25,8 @@ ob_end_flush(); *** Testing session_set_save_handler() : variation *** string(%d) "%s" +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: session_module_name(): Session handler module "" cannot be found in %s on line %d bool(false) string(%d) "%s" diff --git a/ext/standard/tests/file/005_variation2.phpt b/ext/standard/tests/file/005_variation2.phpt index 55d1d6666098c..73ed4fb4451dc 100644 --- a/ext/standard/tests/file/005_variation2.phpt +++ b/ext/standard/tests/file/005_variation2.phpt @@ -55,6 +55,8 @@ echo "Done"; *** testing touch *** +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: Undefined variable $a in %s on line %d NULL bool(false) @@ -65,8 +67,14 @@ bool(true) *** testing file info *** -- File '' -- -- File access time is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + -- File modification time is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + -- inode change time is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + -- File '' -- -- File access time is => diff --git a/ext/standard/tests/file/file_exists_variation1.phpt b/ext/standard/tests/file/file_exists_variation1.phpt index 446e7fac16a06..73a11345cdc7f 100644 --- a/ext/standard/tests/file/file_exists_variation1.phpt +++ b/ext/standard/tests/file/file_exists_variation1.phpt @@ -12,8 +12,10 @@ var_dump(file_exists(' ')); var_dump(file_exists('|')); echo "Done"; ?> ---EXPECT-- +--EXPECTF-- *** Testing file_exists() : usage variations *** + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) diff --git a/ext/standard/tests/file/file_get_contents_variation8.phpt b/ext/standard/tests/file/file_get_contents_variation8.phpt index ad23a13bb6b79..5b9f7a401db1f 100644 --- a/ext/standard/tests/file/file_get_contents_variation8.phpt +++ b/ext/standard/tests/file/file_get_contents_variation8.phpt @@ -49,9 +49,13 @@ Warning: file_get_contents(-1): Failed to open stream: No such file or directory bool(false) -- Iteration 1 -- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: file_get_contents(1): Failed to open stream: No such file or directory in %s on line %d bool(false) -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d ValueError: Path cannot be empty -- Iteration 3 -- ValueError: Path cannot be empty diff --git a/ext/standard/tests/file/file_put_contents_variation8.phpt b/ext/standard/tests/file/file_put_contents_variation8.phpt index 70456fad9ff7d..de60775a7f0bf 100644 --- a/ext/standard/tests/file/file_put_contents_variation8.phpt +++ b/ext/standard/tests/file/file_put_contents_variation8.phpt @@ -57,8 +57,14 @@ echo "\n*** Done ***\n"; -- Iteration 0 -- 9 bytes written to: '-1' -- Iteration 1 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d 9 bytes written to: '1' + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d ValueError: Path cannot be empty -- Iteration 3 -- ValueError: Path cannot be empty diff --git a/ext/standard/tests/file/filegroup_variation2.phpt b/ext/standard/tests/file/filegroup_variation2.phpt index eeff71fa61ba2..d242629c357c3 100644 --- a/ext/standard/tests/file/filegroup_variation2.phpt +++ b/ext/standard/tests/file/filegroup_variation2.phpt @@ -40,8 +40,12 @@ Warning: filegroup(): stat failed for in %s on line %d bool(false) bool(false) +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: filegroup(): stat failed for 1 in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) Warning: filegroup(): stat failed for 1234 in %s on line %d diff --git a/ext/standard/tests/file/fileinode_variation2.phpt b/ext/standard/tests/file/fileinode_variation2.phpt index c6c26eab8b28a..8987d95007e17 100644 --- a/ext/standard/tests/file/fileinode_variation2.phpt +++ b/ext/standard/tests/file/fileinode_variation2.phpt @@ -40,8 +40,12 @@ Warning: fileinode(): stat failed for in %s on line %d bool(false) bool(false) +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: fileinode(): stat failed for 1 in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) Warning: fileinode(): stat failed for 1234 in %s on line %d diff --git a/ext/standard/tests/file/fileowner_variation2.phpt b/ext/standard/tests/file/fileowner_variation2.phpt index c5ab2042cda42..741048279882d 100644 --- a/ext/standard/tests/file/fileowner_variation2.phpt +++ b/ext/standard/tests/file/fileowner_variation2.phpt @@ -41,8 +41,12 @@ Warning: fileowner(): stat failed for in %s on line %d bool(false) bool(false) +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: fileowner(): stat failed for 1 in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) Warning: fileowner(): stat failed for 1234 in %s on line %d diff --git a/ext/standard/tests/file/fileperms_variation2.phpt b/ext/standard/tests/file/fileperms_variation2.phpt index b1c9695d47ea0..2e05fea2f560c 100644 --- a/ext/standard/tests/file/fileperms_variation2.phpt +++ b/ext/standard/tests/file/fileperms_variation2.phpt @@ -40,8 +40,12 @@ Warning: fileperms(): stat failed for in %s on line %d bool(false) bool(false) +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: fileperms(): stat failed for 1 in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) Warning: fileperms(): stat failed for 1234 in %s on line %d diff --git a/ext/standard/tests/file/filesize_variation5.phpt b/ext/standard/tests/file/filesize_variation5.phpt index 7da6e73e06139..cd67e2a667e2d 100644 --- a/ext/standard/tests/file/filesize_variation5.phpt +++ b/ext/standard/tests/file/filesize_variation5.phpt @@ -15,6 +15,8 @@ echo "*** Done ***\n"; ?> --EXPECTF-- *** Testing filesize(): usage variations *** + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) diff --git a/ext/standard/tests/file/fnmatch_basic.phpt b/ext/standard/tests/file/fnmatch_basic.phpt index 8b74bb430b371..b412c8a44cf94 100644 --- a/ext/standard/tests/file/fnmatch_basic.phpt +++ b/ext/standard/tests/file/fnmatch_basic.phpt @@ -26,7 +26,7 @@ var_dump( fnmatch(FALSE, FALSE) ); echo "\n*** Done ***\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing fnmatch() with file *** bool(true) bool(true) @@ -37,7 +37,15 @@ bool(false) *** Testing fnmatch() with other than file *** bool(true) bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) *** Done *** diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt index 3413c3e6f76c6..a05f6e60c7bfe 100644 --- a/ext/standard/tests/file/fnmatch_variation.phpt +++ b/ext/standard/tests/file/fnmatch_variation.phpt @@ -136,7 +136,7 @@ match_($null_arr, $null_arr); echo "\n*** Done ***\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing fnmatch() with file and various patterns *** -- Iteration 0 -- bool(true) @@ -304,91 +304,235 @@ bool(true) --- With booleans --- -- Iteration 0 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 1 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) bool(true) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) bool(false) -- Iteration 3 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) bool(false) -- Iteration 4 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 5 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 6 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(true) bool(false) bool(false) -- Iteration 7 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(true) bool(false) bool(true) bool(false) -- Iteration 8 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) diff --git a/ext/standard/tests/file/fread_variation2.phpt b/ext/standard/tests/file/fread_variation2.phpt index a16c97a745aeb..17e01047e7dd8 100644 --- a/ext/standard/tests/file/fread_variation2.phpt +++ b/ext/standard/tests/file/fread_variation2.phpt @@ -105,6 +105,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -114,6 +116,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -124,6 +128,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -133,6 +139,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -143,6 +151,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -152,6 +162,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -162,6 +174,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -171,6 +185,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -181,6 +197,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -190,6 +208,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -200,6 +220,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -209,6 +231,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -219,6 +243,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -228,6 +254,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -238,6 +266,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -247,6 +277,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -257,6 +289,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -266,6 +300,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -278,6 +314,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -287,6 +325,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -297,6 +337,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -306,6 +348,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -316,6 +360,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -325,6 +371,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -335,6 +383,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -344,6 +394,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -354,6 +406,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -363,6 +417,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -373,6 +429,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -382,6 +440,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -392,6 +452,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -401,6 +463,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -411,6 +475,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -420,6 +486,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -430,6 +498,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -439,6 +509,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -451,6 +523,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -460,6 +534,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -470,6 +546,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -479,6 +557,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -489,6 +569,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -498,6 +580,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -508,6 +592,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -517,6 +603,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -527,6 +615,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -536,6 +626,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -546,6 +638,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -555,6 +649,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -565,6 +661,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -574,6 +672,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -584,6 +684,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -593,6 +695,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -603,6 +707,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -612,6 +718,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -624,6 +732,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -633,6 +743,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -643,6 +755,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -652,6 +766,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -662,6 +778,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -671,6 +789,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -681,6 +801,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -690,6 +812,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -700,6 +824,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -709,6 +835,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -719,6 +847,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -728,6 +858,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -738,6 +870,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -747,6 +881,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -757,6 +893,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -766,6 +904,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -776,6 +916,8 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -785,6 +927,8 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) diff --git a/ext/standard/tests/file/fread_variation4.phpt b/ext/standard/tests/file/fread_variation4.phpt index 97c6c39f9c8cf..8a604c116a582 100644 --- a/ext/standard/tests/file/fread_variation4.phpt +++ b/ext/standard/tests/file/fread_variation4.phpt @@ -103,6 +103,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -111,6 +113,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -120,6 +124,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -128,6 +134,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -137,6 +145,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -145,6 +155,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -154,6 +166,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -162,6 +176,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -171,6 +187,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -179,6 +197,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -188,6 +208,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -196,6 +218,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -205,6 +229,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -213,6 +239,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -222,6 +250,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -230,6 +260,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -239,6 +271,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -247,6 +281,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -258,6 +294,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -266,6 +304,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -275,6 +315,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -283,6 +325,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -292,6 +336,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -300,6 +346,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -309,6 +357,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -317,6 +367,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -326,6 +378,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -334,6 +388,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -343,6 +399,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -351,6 +409,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -360,6 +420,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -368,6 +430,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -377,6 +441,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -385,6 +451,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -394,6 +462,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -402,6 +472,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -413,6 +485,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -421,6 +495,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -430,6 +506,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -438,6 +516,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -447,6 +527,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -455,6 +537,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -464,6 +548,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -472,6 +558,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -481,6 +569,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -489,6 +579,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -498,16 +590,20 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) -- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- -int(%r1024|1137%r) +int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK -int(%r1024|1137%r) +int(1024) bool(false) -- File opened in mode x -- -- Reading beyond filesize, expected : 1024 bytes -- @@ -515,6 +611,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -523,6 +621,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -532,6 +632,8 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -540,6 +642,8 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -549,15 +653,19 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) -- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- -int(%r1024|1137%r) +int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK -int(%r1024|1137%r) +int(1024) bool(false) Done diff --git a/ext/standard/tests/file/glob_variation.phpt b/ext/standard/tests/file/glob_variation.phpt index 4fc1c240b4d40..794978be6d99e 100644 --- a/ext/standard/tests/file/glob_variation.phpt +++ b/ext/standard/tests/file/glob_variation.phpt @@ -383,18 +383,30 @@ array(0) { } -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(0) { } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(0) { } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(0) { } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(1) { [0]=> string(%d) "1" } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(0) { } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(0) { } @@ -448,6 +460,8 @@ array(1) { string(%d) "%s/glob_variation/wonder1" } -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(0) { } Done diff --git a/ext/standard/tests/file/is_dir_variation3.phpt b/ext/standard/tests/file/is_dir_variation3.phpt index 730a2bcfea4d3..7e122b2cfafbb 100644 --- a/ext/standard/tests/file/is_dir_variation3.phpt +++ b/ext/standard/tests/file/is_dir_variation3.phpt @@ -24,10 +24,14 @@ foreach($dirnames as $dirname) { var_dump( is_dir($dirname) ); } ?> ---EXPECT-- +--EXPECTF-- *** Testing is_dir() with Invalid arguments: expected bool(false) *** bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) diff --git a/ext/standard/tests/file/is_executable_variation3.phpt b/ext/standard/tests/file/is_executable_variation3.phpt index b9b3a98e5c626..9e426ec8f6d7d 100644 --- a/ext/standard/tests/file/is_executable_variation3.phpt +++ b/ext/standard/tests/file/is_executable_variation3.phpt @@ -34,14 +34,18 @@ foreach( $invalid_files as $invalid_file ) { echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing is_executable(): usage variations *** *** Testing is_executable() on invalid files *** bool(false) bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) Done diff --git a/ext/standard/tests/file/is_readable_variation3.phpt b/ext/standard/tests/file/is_readable_variation3.phpt index e4a5766762824..3c510b0ebdcc1 100644 --- a/ext/standard/tests/file/is_readable_variation3.phpt +++ b/ext/standard/tests/file/is_readable_variation3.phpt @@ -28,14 +28,18 @@ foreach( $misc_files as $misc_file ) { echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing is_readable(): usage variations *** *** Testing is_readable() on miscellaneous filenames *** bool(false) bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) Done diff --git a/ext/standard/tests/file/is_writable_variation3.phpt b/ext/standard/tests/file/is_writable_variation3.phpt index 021d6e5645414..f55bc782a19cf 100644 --- a/ext/standard/tests/file/is_writable_variation3.phpt +++ b/ext/standard/tests/file/is_writable_variation3.phpt @@ -29,7 +29,7 @@ foreach( $misc_files as $misc_file ) { clearstatcache(); } ?> ---EXPECT-- +--EXPECTF-- *** Testing is_writable(): usage variations *** *** Testing is_writable() with invalid filenames *** @@ -39,9 +39,17 @@ bool(false) bool(false) bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) bool(false) diff --git a/ext/standard/tests/file/lstat_stat_variation22.phpt b/ext/standard/tests/file/lstat_stat_variation22.phpt index 9efb23fc4178b..c16225b00ab37 100644 --- a/ext/standard/tests/file/lstat_stat_variation22.phpt +++ b/ext/standard/tests/file/lstat_stat_variation22.phpt @@ -26,6 +26,8 @@ var_dump(lstat('|')); ?> --EXPECTF-- *** testing stat *** + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) @@ -35,6 +37,8 @@ bool(false) Warning: stat(): stat failed for | in %s on line %d bool(false) *** testing lstat *** + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) diff --git a/ext/standard/tests/file/pathinfo_variaton.phpt b/ext/standard/tests/file/pathinfo_variaton.phpt index 04e1f15c6935a..c9bea7c58c584 100644 --- a/ext/standard/tests/file/pathinfo_variaton.phpt +++ b/ext/standard/tests/file/pathinfo_variaton.phpt @@ -73,7 +73,7 @@ foreach($paths as $path) { echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing pathinfo() with miscellaneous input arguments *** -- Iteration 1 -- array(3) { @@ -130,6 +130,8 @@ string(6) "2.3456" string(4) "3456" string(1) "2" -- Iteration 5 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(3) { ["dirname"]=> string(1) "." @@ -138,20 +140,38 @@ array(3) { ["filename"]=> string(1) "1" } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "." + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 6 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(2) { ["basename"]=> string(0) "" ["filename"]=> string(0) "" } + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 7 -- array(3) { diff --git a/ext/standard/tests/file/readfile_error.phpt b/ext/standard/tests/file/readfile_error.phpt index 9e47e68fac3c9..b43efd708db6b 100644 --- a/ext/standard/tests/file/readfile_error.phpt +++ b/ext/standard/tests/file/readfile_error.phpt @@ -30,6 +30,8 @@ echo "Done\n"; -- Testing readfile() with invalid arguments -- Path cannot be empty + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Path cannot be empty -- Testing readfile() with non-existent file -- diff --git a/ext/standard/tests/file/readfile_variation10.phpt b/ext/standard/tests/file/readfile_variation10.phpt index 5afc5622ed166..2568c23b7f95c 100644 --- a/ext/standard/tests/file/readfile_variation10.phpt +++ b/ext/standard/tests/file/readfile_variation10.phpt @@ -47,8 +47,12 @@ for( $i=0; $i %s/%s File permissions are => 100600 File created in => directory specified -- Iteration 1 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d File name is => %s/%s File permissions are => 100600 File created in => directory specified -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d File name is => %s/%s File permissions are => 100600 File created in => directory specified diff --git a/ext/standard/tests/file/tempnam_variation7.phpt b/ext/standard/tests/file/tempnam_variation7.phpt index 1928da4f89624..d4bc661981483 100644 --- a/ext/standard/tests/file/tempnam_variation7.phpt +++ b/ext/standard/tests/file/tempnam_variation7.phpt @@ -77,11 +77,15 @@ File permissions are => 100600 File created in => temp dir -- Iteration 1 -- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on line %d File name is => %s%etempnam_variation3.tmp%s File permissions are => 100600 File created in => temp dir -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d File name is => %s%etempnam_variation3.tmp%s File permissions are => 100600 File created in => temp dir diff --git a/ext/standard/tests/file/unlink_error.phpt b/ext/standard/tests/file/unlink_error.phpt index 1dd8ef1a25c9e..ec6141311658e 100644 --- a/ext/standard/tests/file/unlink_error.phpt +++ b/ext/standard/tests/file/unlink_error.phpt @@ -55,8 +55,12 @@ Warning: unlink(): %s in %s on line %d bool(false) bool(false) +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: unlink(): %s in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Testing unlink() on non-existent file -- diff --git a/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt b/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt index 028b987eece2a..56b3318cca0af 100644 --- a/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt +++ b/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt @@ -54,7 +54,7 @@ foreach($inputs as $input) { $iterator++; }; ?> ---EXPECT-- +--EXPECTF-- *** Testing escapeshellarg() : usage variations *** -- Iteration 1 -- @@ -88,15 +88,23 @@ string(12) "'0.01234567'" string(5) "'0.5'" -- Iteration 11 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(3) "'1'" -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(2) "''" -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(3) "'1'" -- Iteration 14 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(2) "''" -- Iteration 15 -- diff --git a/ext/standard/tests/general_functions/get_cfg_var_variation2.phpt b/ext/standard/tests/general_functions/get_cfg_var_variation2.phpt index 195affe4fc685..cf44977ac5c64 100644 --- a/ext/standard/tests/general_functions/get_cfg_var_variation2.phpt +++ b/ext/standard/tests/general_functions/get_cfg_var_variation2.phpt @@ -27,9 +27,17 @@ foreach ( $variation_array as $var ) { var_dump(get_cfg_var( $var ) ); } ?> ---EXPECT-- +--EXPECTF-- *** Test substituting argument 1 with boolean values *** + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) diff --git a/ext/standard/tests/general_functions/uniqid_basic.phpt b/ext/standard/tests/general_functions/uniqid_basic.phpt index 408f72bfdbaa3..5ee033591be9c 100644 --- a/ext/standard/tests/general_functions/uniqid_basic.phpt +++ b/ext/standard/tests/general_functions/uniqid_basic.phpt @@ -51,10 +51,22 @@ string(17) "1050%s" string(27) "1050%s.%s" string(17) "1050%s" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(14) "1%s" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(24) "1%s.%s" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(14) "1%s" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(13) "%s" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(23) "%s.%s" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(13) "%s" diff --git a/ext/standard/tests/math/base_convert_variation1.phpt b/ext/standard/tests/math/base_convert_variation1.phpt index fd06465ab574b..23f16fc14423d 100644 --- a/ext/standard/tests/math/base_convert_variation1.phpt +++ b/ext/standard/tests/math/base_convert_variation1.phpt @@ -107,15 +107,23 @@ Deprecated: Invalid characters passed for attempted conversion, these have been string(1) "5" -- Iteration 11 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "0" -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 14 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "0" -- Iteration 15 -- diff --git a/ext/standard/tests/math/bindec_basic_64bit.phpt b/ext/standard/tests/math/bindec_basic_64bit.phpt index 8fece221c0ede..0205966736f1d 100644 --- a/ext/standard/tests/math/bindec_basic_64bit.phpt +++ b/ext/standard/tests/math/bindec_basic_64bit.phpt @@ -72,5 +72,9 @@ int(6) Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) diff --git a/ext/standard/tests/math/bindec_variation1_64bit.phpt b/ext/standard/tests/math/bindec_variation1_64bit.phpt index 56bbbd35649b5..76d53aae51836 100644 --- a/ext/standard/tests/math/bindec_variation1_64bit.phpt +++ b/ext/standard/tests/math/bindec_variation1_64bit.phpt @@ -109,15 +109,23 @@ Deprecated: Invalid characters passed for attempted conversion, these have been int(0) -- Iteration 10 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- Iteration 11 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) -- Iteration 14 -- diff --git a/ext/standard/tests/math/hexdec_basic_64bit.phpt b/ext/standard/tests/math/hexdec_basic_64bit.phpt index fd6d53b601982..a04a22bdd96cb 100644 --- a/ext/standard/tests/math/hexdec_basic_64bit.phpt +++ b/ext/standard/tests/math/hexdec_basic_64bit.phpt @@ -86,7 +86,11 @@ int(18279) int(70199) -- hexdec 1 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- hexdec -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) diff --git a/ext/standard/tests/math/hexdec_variation1_64bit.phpt b/ext/standard/tests/math/hexdec_variation1_64bit.phpt index c892b8049fc9a..1d991277c6a96 100644 --- a/ext/standard/tests/math/hexdec_variation1_64bit.phpt +++ b/ext/standard/tests/math/hexdec_variation1_64bit.phpt @@ -115,15 +115,23 @@ Deprecated: Invalid characters passed for attempted conversion, these have been int(5) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) -- Iteration 14 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- Iteration 15 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) -- Iteration 16 -- diff --git a/ext/standard/tests/math/octdec_basic_64bit.phpt b/ext/standard/tests/math/octdec_basic_64bit.phpt index 4051d9be63230..7272ec557bd72 100644 --- a/ext/standard/tests/math/octdec_basic_64bit.phpt +++ b/ext/standard/tests/math/octdec_basic_64bit.phpt @@ -60,5 +60,9 @@ int(5349) Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d int(102923) int(823384) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) diff --git a/ext/standard/tests/math/octdec_variation1.phpt b/ext/standard/tests/math/octdec_variation1.phpt index c24d2e8e6beae..22930a7d80fc0 100644 --- a/ext/standard/tests/math/octdec_variation1.phpt +++ b/ext/standard/tests/math/octdec_variation1.phpt @@ -118,15 +118,23 @@ Deprecated: Invalid characters passed for attempted conversion, these have been int(5) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) -- Iteration 14 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) -- Iteration 15 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) -- Iteration 16 -- diff --git a/ext/standard/tests/network/inet_ipv6.phpt b/ext/standard/tests/network/inet_ipv6.phpt index 8e9c44431b9b5..af48246a95719 100644 --- a/ext/standard/tests/network/inet_ipv6.phpt +++ b/ext/standard/tests/network/inet_ipv6.phpt @@ -33,12 +33,14 @@ foreach ($a as $address) { echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- string(3) "::1" string(3) "::2" string(4) "::35" string(5) "::255" string(6) "::1024" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) string(36) "2001:db8:85a3:8d3:1319:8a2e:370:7344" string(15) "2001:db8:1234::" diff --git a/ext/standard/tests/streams/stream_socket_pair.phpt b/ext/standard/tests/streams/stream_socket_pair.phpt index b926c9d9f4387..e05caa4b41987 100644 --- a/ext/standard/tests/streams/stream_socket_pair.phpt +++ b/ext/standard/tests/streams/stream_socket_pair.phpt @@ -10,6 +10,7 @@ var_dump(fread($sockets[1], strlen("foo"))); fclose($sockets[0]); ?> --EXPECTF-- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(2) { [0]=> resource(%d) of type (stream) diff --git a/ext/standard/tests/strings/chop_variation5.phpt b/ext/standard/tests/strings/chop_variation5.phpt index 2b86a9713b77f..24b191a1f4174 100644 --- a/ext/standard/tests/strings/chop_variation5.phpt +++ b/ext/standard/tests/strings/chop_variation5.phpt @@ -19,10 +19,12 @@ echo "*** Testing chop() : with miscellaneous arguments ***\n"; echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing chop() : with miscellaneous arguments *** string(9) "chop test" string(12) "chop test " + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(17) "chop test " string(9) "chop test" string(10) "chop test " diff --git a/ext/standard/tests/strings/implode1.phpt b/ext/standard/tests/strings/implode1.phpt index 7092efe94248b..f626f7cde3fba 100644 --- a/ext/standard/tests/strings/implode1.phpt +++ b/ext/standard/tests/strings/implode1.phpt @@ -219,8 +219,12 @@ array(6) { -- Iteration 1 -- string(59) "2TRUE0TRUE-639TRUE1TRUEPHPTRUETRUETRUE TRUEstring%0with%0...%0" -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(35) "2101-639111PHP111 1string%0with%0...%0" -- Iteration 3 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(27) "20-6391PHP string%0with%0...%0" -- Iteration 4 -- implode(): Argument #1 ($separator) must be of type string, array given diff --git a/ext/standard/tests/strings/join_variation1.phpt b/ext/standard/tests/strings/join_variation1.phpt index 256f361460b24..be10d7bb100bc 100644 --- a/ext/standard/tests/strings/join_variation1.phpt +++ b/ext/standard/tests/strings/join_variation1.phpt @@ -82,7 +82,7 @@ for($index = 0; $index < count($values); $index ++) { echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- *** Testing join() : usage variations *** --- Testing join() by supplying different values for 'glue' argument --- @@ -115,12 +115,20 @@ join(): Argument #1 ($separator) must be of type string, array given -- Iteration 14 -- join(): Argument #1 ($separator) must be of type string, array given -- Iteration 15 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(17) "element11element2" -- Iteration 16 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "element1element2" -- Iteration 17 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(17) "element11element2" -- Iteration 18 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "element1element2" -- Iteration 19 -- string(26) "element1testObjectelement2" diff --git a/ext/standard/tests/strings/join_variation4.phpt b/ext/standard/tests/strings/join_variation4.phpt index 21774b4bca2e2..55a978eb00e6c 100644 --- a/ext/standard/tests/strings/join_variation4.phpt +++ b/ext/standard/tests/strings/join_variation4.phpt @@ -53,8 +53,12 @@ echo "Done\n"; -- Iteration 1 -- string(87) "2TRUE0TRUE-639TRUE-1.3444TRUE1TRUEPHPTRUETRUETRUE TRUE6999.99999999TRUEstring%0with%0...%0" -- Iteration 2 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(57) "2101-6391-1.3444111PHP111 16999.999999991string%0with%0...%0" -- Iteration 3 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(47) "20-639-1.34441PHP 6999.99999999string%0with%0...%0" -- Iteration 4 -- join(): Argument #1 ($separator) must be of type string, array given diff --git a/ext/standard/tests/strings/lcfirst.phpt b/ext/standard/tests/strings/lcfirst.phpt index d98b3a9cb0eed..d0b8874e67b12 100644 --- a/ext/standard/tests/strings/lcfirst.phpt +++ b/ext/standard/tests/strings/lcfirst.phpt @@ -147,11 +147,15 @@ string(6) "-3.344" string(4) "nULL" string(1) "0" string(1) "0" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" string(4) "tRUE" string(1) "1" string(1) "1" string(8) "1.234444" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" string(5) "fALSE" string(1) " " diff --git a/ext/standard/tests/strings/ltrim.phpt b/ext/standard/tests/strings/ltrim.phpt index 952ad282c6fe7..bb236f4d0729c 100644 --- a/ext/standard/tests/strings/ltrim.phpt +++ b/ext/standard/tests/strings/ltrim.phpt @@ -37,7 +37,7 @@ var_dump( ltrim( 12345 ) ); /* Scalar argume echo "\nDone\n"; ?> ---EXPECT-- +--EXPECTF-- *** Output for Error Conditions *** *** Using heredoc string *** @@ -46,6 +46,8 @@ string(17) "ng heredoc string" *** Output for Normal Behaviour *** string(10) "ltrim test" string(13) " ltrim test" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(18) " ltrim test" string(10) "ltrim test" string(11) " ltrim test" diff --git a/ext/standard/tests/strings/quoted_printable_encode_001.phpt b/ext/standard/tests/strings/quoted_printable_encode_001.phpt index a1e0ec1338aa2..609bdfdd082b5 100644 --- a/ext/standard/tests/strings/quoted_printable_encode_001.phpt +++ b/ext/standard/tests/strings/quoted_printable_encode_001.phpt @@ -11,9 +11,11 @@ var_dump(quoted_printable_encode(false)); echo "Done\n"; ?> ---EXPECT-- +--EXPECTF-- string(0) "" string(4) "test" string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" Done diff --git a/ext/standard/tests/strings/rtrim.phpt b/ext/standard/tests/strings/rtrim.phpt index 21e91c1ac361c..06a05c6057e2f 100644 --- a/ext/standard/tests/strings/rtrim.phpt +++ b/ext/standard/tests/strings/rtrim.phpt @@ -45,6 +45,8 @@ echo "Done\n"; *** Output for Normal Behaviour *** string(10) "rtrim test" string(13) "rtrim test " + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(18) "rtrim test " string(10) "rtrim test" string(11) "rtrim test " diff --git a/ext/standard/tests/strings/sprintf_variation1.phpt b/ext/standard/tests/strings/sprintf_variation1.phpt index 6b9430e38666f..a09130e480c76 100644 --- a/ext/standard/tests/strings/sprintf_variation1.phpt +++ b/ext/standard/tests/strings/sprintf_variation1.phpt @@ -98,7 +98,7 @@ fclose($file_handle); echo "Done"; ?> ---EXPECT-- +--EXPECTF-- *** Testing sprintf() : with unexpected values for format argument *** -- Iteration 1 -- @@ -172,23 +172,47 @@ sprintf(): Argument #1 ($format) must be of type string, array given sprintf(): Argument #1 ($format) must be of type string, array given -- Iteration 15 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 16 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 17 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 18 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 19 -- diff --git a/ext/standard/tests/strings/str_pad.phpt b/ext/standard/tests/strings/str_pad.phpt index 278db455f8d55..6f46e94333317 100644 --- a/ext/standard/tests/strings/str_pad.phpt +++ b/ext/standard/tests/strings/str_pad.phpt @@ -79,7 +79,7 @@ try { } ?> ---EXPECT-- +--EXPECTF-- #### Basic operations #### string(20) "str_pad() " string(20) "str_pad()-+-+-+-+-+-" @@ -148,35 +148,95 @@ string(16) "================" string(16) "================" string(16) "================" string(16) "================" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(9) "1 " + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(9) "1========" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(9) "========1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(9) "1========" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(9) "====1====" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "1 " + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "1=========" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "=========1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "1=========" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "====1=====" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "1 " + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "1===============" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "===============1" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "1===============" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "=======1========" string(2) "15" string(2) "15" @@ -278,9 +338,17 @@ string(16) "variation1111111" string(16) "1111111variation" string(16) "variation1111111" string(16) "111variation1111" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "variation1111111" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "1111111variation" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "variation1111111" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(16) "111variation1111" string(16) "variationstring_" string(16) "string_variation" diff --git a/ext/standard/tests/strings/str_repeat.phpt b/ext/standard/tests/strings/str_repeat.phpt index 3351e7f871336..17e3655b434ac 100644 --- a/ext/standard/tests/strings/str_repeat.phpt +++ b/ext/standard/tests/strings/str_repeat.phpt @@ -70,9 +70,17 @@ try { --- str_repeat() of '1' --- -- after repeating 0 times is => --- after repeating 1 times is => 1 --- after repeating 2 times is => 11 --- after repeating 3 times is => 111 +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +-- after repeating 1 times is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +1 +-- after repeating 2 times is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +11 +-- after repeating 3 times is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +111 --- str_repeat() of '4' --- -- after repeating 0 times is => diff --git a/ext/standard/tests/strings/str_replace_variation1.phpt b/ext/standard/tests/strings/str_replace_variation1.phpt index 00ed1a8babe35..5facbf514daef 100644 --- a/ext/standard/tests/strings/str_replace_variation1.phpt +++ b/ext/standard/tests/strings/str_replace_variation1.phpt @@ -23,6 +23,8 @@ foreach( $search_arr as $value ) { *** Testing str_replace() with various search values *** -- Iteration 0 -- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: Array to string conversion in %s on line %d array(12) { [0]=> @@ -54,6 +56,8 @@ int(5) -- Iteration 1 -- +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + Warning: Array to string conversion in %s on line %d array(12) { [0]=> diff --git a/ext/standard/tests/strings/str_replace_variation2.phpt b/ext/standard/tests/strings/str_replace_variation2.phpt index 957c990555ea5..e61b585f337c5 100644 --- a/ext/standard/tests/strings/str_replace_variation2.phpt +++ b/ext/standard/tests/strings/str_replace_variation2.phpt @@ -212,6 +212,8 @@ string(198) "Hello, world,0120333FOUND445-1.234567 NULL TRUE FALSE%0 --- Iteration 21 --- -- String after replacing the search value is => -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(207) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE%0 %00ZCD%0abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)" @@ -240,6 +242,8 @@ string(207) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE --- Iteration 25 --- -- String after replacing the search value is => -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(195) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE%0 %00ZCD%0abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index 04452067d488f..fcdf356057767 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -294,9 +294,15 @@ Iteration 0 - strcasecmp of '1' and '-1' is => int(%d) - strcasecmp of '1' and '-1' is => int(%d) - strcasecmp of '1' and '' is => int(%d) -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '' is => int(%d) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) - strcasecmp of '1' and 'string' is => int(-%d) Iteration 1 @@ -306,9 +312,15 @@ Iteration 1 - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '' is => int(%d) -- strcasecmp of '0' and '1' is => int(-%d) -- strcasecmp of '0' and '1' is => int(-%d) -- strcasecmp of '0' and '' is => int(%d) +- strcasecmp of '0' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '0' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '0' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) - strcasecmp of '0' and 'string' is => int(-%d) Iteration 2 @@ -318,9 +330,15 @@ Iteration 2 - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '' is => int(%d) -- strcasecmp of '0' and '1' is => int(-%d) -- strcasecmp of '0' and '1' is => int(-%d) -- strcasecmp of '0' and '' is => int(%d) +- strcasecmp of '0' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '0' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '0' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) - strcasecmp of '0' and 'string' is => int(-%d) Iteration 3 @@ -330,9 +348,15 @@ Iteration 3 - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '' is => int(%d) -- strcasecmp of '-1' and '1' is => int(-%d) -- strcasecmp of '-1' and '1' is => int(-%d) -- strcasecmp of '-1' and '' is => int(%d) +- strcasecmp of '-1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-4) +- strcasecmp of '-1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-4) +- strcasecmp of '-1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(2) - strcasecmp of '-1' and 'string' is => int(-%d) Iteration 4 @@ -342,9 +366,15 @@ Iteration 4 - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '' is => int(%d) -- strcasecmp of '-1' and '1' is => int(-%d) -- strcasecmp of '-1' and '1' is => int(-%d) -- strcasecmp of '-1' and '' is => int(%d) +- strcasecmp of '-1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-4) +- strcasecmp of '-1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-4) +- strcasecmp of '-1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(2) - strcasecmp of '-1' and 'string' is => int(-%d) Iteration 5 @@ -354,46 +384,130 @@ Iteration 5 - strcasecmp of '' and '-1' is => int(-%d) - strcasecmp of '' and '-1' is => int(-%d) - strcasecmp of '' and '' is => int(0) -- strcasecmp of '' and '1' is => int(-%d) -- strcasecmp of '' and '1' is => int(-%d) -- strcasecmp of '' and '' is => int(0) +- strcasecmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) - strcasecmp of '' and 'string' is => int(-%d) Iteration 6 -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '0' is => int(%d) -- strcasecmp of '1' and '0' is => int(%d) -- strcasecmp of '1' and '-1' is => int(%d) -- strcasecmp of '1' and '-1' is => int(%d) -- strcasecmp of '1' and '' is => int(%d) -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '' is => int(%d) -- strcasecmp of '1' and 'string' is => int(-%d) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(4) +- strcasecmp of '1' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(4) +- strcasecmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and 'string' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-66) Iteration 7 -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '0' is => int(%d) -- strcasecmp of '1' and '0' is => int(%d) -- strcasecmp of '1' and '-1' is => int(%d) -- strcasecmp of '1' and '-1' is => int(%d) -- strcasecmp of '1' and '' is => int(%d) -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '1' is => int(0) -- strcasecmp of '1' and '' is => int(%d) -- strcasecmp of '1' and 'string' is => int(-%d) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(4) +- strcasecmp of '1' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(4) +- strcasecmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcasecmp of '1' and 'string' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-66) Iteration 8 -- strcasecmp of '' and '1' is => int(-%d) -- strcasecmp of '' and '0' is => int(-%d) -- strcasecmp of '' and '0' is => int(-%d) -- strcasecmp of '' and '-1' is => int(-%d) -- strcasecmp of '' and '-1' is => int(-%d) -- strcasecmp of '' and '' is => int(0) -- strcasecmp of '' and '1' is => int(-%d) -- strcasecmp of '' and '1' is => int(-%d) -- strcasecmp of '' and '' is => int(0) -- strcasecmp of '' and 'string' is => int(-%d) +- strcasecmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-2) +- strcasecmp of '' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-2) +- strcasecmp of '' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcasecmp of '' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcasecmp of '' and 'string' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-6) Iteration 9 - strcasecmp of 'string' and '1' is => int(%d) @@ -402,9 +516,15 @@ Iteration 9 - strcasecmp of 'string' and '-1' is => int(%d) - strcasecmp of 'string' and '-1' is => int(%d) - strcasecmp of 'string' and '' is => int(%d) -- strcasecmp of 'string' and '1' is => int(%d) -- strcasecmp of 'string' and '1' is => int(%d) -- strcasecmp of 'string' and '' is => int(%d) +- strcasecmp of 'string' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(66) +- strcasecmp of 'string' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(66) +- strcasecmp of 'string' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(6) - strcasecmp of 'string' and 'string' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index a36873830cedd..e32d4a008e78e 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -323,8 +323,12 @@ Iteration 0 - strcmp of '1' and '-1' is => int(%d) - strcmp of '1' and '-1' is => int(%d) - strcmp of '1' and '' is => int(%d) -- strcmp of '1' and '1' is => int(0) -- strcmp of '1' and '' is => int(%d) +- strcmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) - strcmp of '1' and 'string' is => int(-%d) Iteration 1 @@ -334,8 +338,12 @@ Iteration 1 - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '' is => int(%d) -- strcmp of '0' and '1' is => int(-%d) -- strcmp of '0' and '' is => int(%d) +- strcmp of '0' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '0' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) - strcmp of '0' and 'string' is => int(-%d) Iteration 2 @@ -345,8 +353,12 @@ Iteration 2 - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '' is => int(%d) -- strcmp of '0' and '1' is => int(-%d) -- strcmp of '0' and '' is => int(%d) +- strcmp of '0' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '0' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) - strcmp of '0' and 'string' is => int(-%d) Iteration 3 @@ -356,8 +368,12 @@ Iteration 3 - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '' is => int(%d) -- strcmp of '-1' and '1' is => int(-%d) -- strcmp of '-1' and '' is => int(%d) +- strcmp of '-1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-4) +- strcmp of '-1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(2) - strcmp of '-1' and 'string' is => int(-%d) Iteration 4 @@ -367,8 +383,12 @@ Iteration 4 - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '' is => int(%d) -- strcmp of '-1' and '1' is => int(-%d) -- strcmp of '-1' and '' is => int(%d) +- strcmp of '-1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-4) +- strcmp of '-1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(2) - strcmp of '-1' and 'string' is => int(-%d) Iteration 5 @@ -378,31 +398,79 @@ Iteration 5 - strcmp of '' and '-1' is => int(-%d) - strcmp of '' and '-1' is => int(-%d) - strcmp of '' and '' is => int(0) -- strcmp of '' and '1' is => int(-%d) -- strcmp of '' and '' is => int(0) +- strcmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) - strcmp of '' and 'string' is => int(-%d) Iteration 6 -- strcmp of '1' and '1' is => int(0) -- strcmp of '1' and '0' is => int(%d) -- strcmp of '1' and '0' is => int(%d) -- strcmp of '1' and '-1' is => int(%d) -- strcmp of '1' and '-1' is => int(%d) -- strcmp of '1' and '' is => int(%d) -- strcmp of '1' and '1' is => int(0) -- strcmp of '1' and '' is => int(%d) -- strcmp of '1' and 'string' is => int(-%d) +- strcmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcmp of '1' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcmp of '1' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcmp of '1' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(4) +- strcmp of '1' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(4) +- strcmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcmp of '1' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcmp of '1' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +- strcmp of '1' and 'string' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-66) Iteration 7 -- strcmp of '' and '1' is => int(-%d) -- strcmp of '' and '0' is => int(-%d) -- strcmp of '' and '0' is => int(-%d) -- strcmp of '' and '-1' is => int(-%d) -- strcmp of '' and '-1' is => int(-%d) -- strcmp of '' and '' is => int(0) -- strcmp of '' and '1' is => int(-%d) -- strcmp of '' and '' is => int(0) -- strcmp of '' and 'string' is => int(-%d) +- strcmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '' and '0' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-2) +- strcmp of '' and '-1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-2) +- strcmp of '' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcmp of '' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-1) +- strcmp of '' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) +- strcmp of '' and 'string' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(-6) Iteration 8 - strcmp of 'string' and '1' is => int(%d) @@ -411,8 +479,12 @@ Iteration 8 - strcmp of 'string' and '-1' is => int(%d) - strcmp of 'string' and '-1' is => int(%d) - strcmp of 'string' and '' is => int(%d) -- strcmp of 'string' and '1' is => int(%d) -- strcmp of 'string' and '' is => int(%d) +- strcmp of 'string' and '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(66) +- strcmp of 'string' and '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(6) - strcmp of 'string' and 'string' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strip_tags_variation2.phpt b/ext/standard/tests/strings/strip_tags_variation2.phpt index 421f8a62ae4ea..69ac6285b7787 100644 --- a/ext/standard/tests/strings/strip_tags_variation2.phpt +++ b/ext/standard/tests/strings/strip_tags_variation2.phpt @@ -82,7 +82,7 @@ foreach($values as $value) { echo "Done"; ?> ---EXPECT-- +--EXPECTF-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- string(10) "helloworld" @@ -107,12 +107,20 @@ string(10) "helloworld" -- Iteration 11 -- string(10) "helloworld" -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "helloworld" -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "helloworld" -- Iteration 14 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "helloworld" -- Iteration 15 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(10) "helloworld" -- Iteration 16 -- string(10) "helloworld" diff --git a/ext/standard/tests/strings/stripos.phpt b/ext/standard/tests/strings/stripos.phpt index f56d38d3de7bd..4036fa19b6af9 100644 --- a/ext/standard/tests/strings/stripos.phpt +++ b/ext/standard/tests/strings/stripos.phpt @@ -28,7 +28,7 @@ stripos() function test ?> DONE ---EXPECT-- +--EXPECTF-- int(0) int(5) int(5) @@ -43,13 +43,25 @@ bool(false) bool(false) int(0) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) bool(false) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) int(1) diff --git a/ext/standard/tests/strings/stripos_variation1.phpt b/ext/standard/tests/strings/stripos_variation1.phpt index e205913fcfb00..e3c7fd9b295f9 100644 --- a/ext/standard/tests/strings/stripos_variation1.phpt +++ b/ext/standard/tests/strings/stripos_variation1.phpt @@ -74,7 +74,7 @@ for($index=0; $index ---EXPECT-- +--EXPECTF-- *** Testing stripos() function: with double quoted strings *** -- Iteration 1 -- int(2) @@ -110,10 +110,18 @@ int(9) int(8) bool(false) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(11) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(12) -- Iteration 14 -- int(0) diff --git a/ext/standard/tests/strings/stripos_variation2.phpt b/ext/standard/tests/strings/stripos_variation2.phpt index 2f95822645bfa..1562d459debdc 100644 --- a/ext/standard/tests/strings/stripos_variation2.phpt +++ b/ext/standard/tests/strings/stripos_variation2.phpt @@ -76,7 +76,7 @@ for($index=0; $index ---EXPECT-- +--EXPECTF-- *** Testing stripos() function: with single quoted strings *** -- Iteration 1 -- int(2) @@ -112,10 +112,18 @@ bool(false) int(10) int(10) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(11) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(12) -- Iteration 14 -- int(0) diff --git a/ext/standard/tests/strings/stristr_variation2.phpt b/ext/standard/tests/strings/stristr_variation2.phpt index 72d5a93df8a63..bb4a6fc5744d0 100644 --- a/ext/standard/tests/strings/stristr_variation2.phpt +++ b/ext/standard/tests/strings/stristr_variation2.phpt @@ -65,7 +65,7 @@ foreach($inputs as $input) { fclose($file_handle); //closing the file handle ?> ---EXPECT-- +--EXPECTF-- *** Testing stristr() function: with unexpected inputs for 'needle' argument *** -- Iteration 1 -- bool(false) @@ -88,12 +88,20 @@ stristr(): Argument #2 ($needle) must be of type string, array given -- Iteration 10 -- stristr(): Argument #2 ($needle) must be of type string, array given -- Iteration 11 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(11) "Hello World" -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 14 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(11) "Hello World" -- Iteration 15 -- bool(false) diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index 426154504b66b..f73570ead465b 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -142,8 +142,12 @@ String length of '0' is => int(1) String length of '0' is => int(1) String length of ' ' is => int(1) String length of '\t' is => int(2) -String length of '1' is => int(1) -String length of '' is => int(0) +String length of '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(1) +String length of '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) String length of 'Hello, World%0' is => int(13) String length of 'Hello%0World' is => int(11) String length of 'Hello, World\0' is => int(14) diff --git a/ext/standard/tests/strings/strnatcasecmp_variation1.phpt b/ext/standard/tests/strings/strnatcasecmp_variation1.phpt index dff57b3372089..188e40428765f 100644 --- a/ext/standard/tests/strings/strnatcasecmp_variation1.phpt +++ b/ext/standard/tests/strings/strnatcasecmp_variation1.phpt @@ -38,8 +38,10 @@ str_dump("\x0", "\0"); str_dump($a, $b); ?> ---EXPECT-- +--EXPECTF-- *** Testing strnatcasecmp() : variation *** + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(1) int(1) int(-1) diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt index 449601f6e5480..cff500ff26af6 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt @@ -205,11 +205,15 @@ Position of '-3.344' is => int(19) Position of 'NULL' is => int(31) Position of '0' is => int(12) Position of '0' is => int(12) -Position of '1' is => int(13) +Position of '1' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(13) Position of 'TRUE' is => int(36) Position of '1' is => int(13) Position of '1' is => int(13) -Position of '' is => int(0) +Position of '' is => +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +int(0) Position of 'FALSE' is => int(41) Position of ' ' is => int(5) Position of ' ' is => int(26) diff --git a/ext/standard/tests/strings/strrchr_variation1.phpt b/ext/standard/tests/strings/strrchr_variation1.phpt index 3e71728ef880a..c782bdacbba70 100644 --- a/ext/standard/tests/strings/strrchr_variation1.phpt +++ b/ext/standard/tests/strings/strrchr_variation1.phpt @@ -120,10 +120,14 @@ string(45) "%0 $&!#%\o,()*+-./:;<=>?@hello123456he #4 A " -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(45) "%0 $&!#%\o,()*+-./:;<=>?@hello123456he #4 A " -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(45) "%0 $&!#%\o,()*+-./:;<=>?@hello123456he #4 A " diff --git a/ext/standard/tests/strings/strrchr_variation2.phpt b/ext/standard/tests/strings/strrchr_variation2.phpt index 646f13a702e4d..e1448ff83789d 100644 --- a/ext/standard/tests/strings/strrchr_variation2.phpt +++ b/ext/standard/tests/strings/strrchr_variation2.phpt @@ -74,7 +74,7 @@ for($index=0; $index ---EXPECT-- +--EXPECTF-- *** Testing strrchr() function: with various single quoted strings *** -- Iteration 1 -- string(22) "lo123456he \x234 \101 " @@ -110,9 +110,13 @@ bool(false) string(5) "\101 " -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d bool(false) -- Iteration 14 -- diff --git a/ext/standard/tests/strings/strripos_variation1.phpt b/ext/standard/tests/strings/strripos_variation1.phpt index 57ae8dd11a65f..8e0eea0eae1f7 100644 --- a/ext/standard/tests/strings/strripos_variation1.phpt +++ b/ext/standard/tests/strings/strripos_variation1.phpt @@ -66,7 +66,7 @@ foreach ($needles as $needle) { $count++; } ?> ---EXPECT-- +--EXPECTF-- *** Testing strripos() function: with double quoted strings *** -- Iteration 1 -- int(28) @@ -124,14 +124,30 @@ int(8) bool(false) int(8) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(44) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(44) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(44) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(43) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(44) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(44) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(44) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(43) -- Iteration 14 -- int(44) diff --git a/ext/standard/tests/strings/strripos_variation2.phpt b/ext/standard/tests/strings/strripos_variation2.phpt index 12bcc2d22bb69..a6f2d64b22ca4 100644 --- a/ext/standard/tests/strings/strripos_variation2.phpt +++ b/ext/standard/tests/strings/strripos_variation2.phpt @@ -67,7 +67,7 @@ foreach ($needles as $needle) { $count++; } ?> ---EXPECT-- +--EXPECTF-- *** Testing strripos() function: with single quoted strings *** -- Iteration 1 -- int(32) @@ -125,14 +125,30 @@ int(10) bool(false) int(10) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(53) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(53) -- Iteration 14 -- int(54) diff --git a/ext/standard/tests/strings/strrpos_variation2.phpt b/ext/standard/tests/strings/strrpos_variation2.phpt index 0022d0e2c3f38..63114af3abb7a 100644 --- a/ext/standard/tests/strings/strrpos_variation2.phpt +++ b/ext/standard/tests/strings/strrpos_variation2.phpt @@ -66,7 +66,7 @@ for($index=0; $index ---EXPECT-- +--EXPECTF-- *** Testing strrpos() function: with single quoted strings *** -- Iteration 1 -- int(32) @@ -102,10 +102,18 @@ bool(false) int(10) int(10) -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(54) -- Iteration 14 -- int(54) diff --git a/ext/standard/tests/strings/strrpos_variation7.phpt b/ext/standard/tests/strings/strrpos_variation7.phpt index f73d4129d5c4d..303170ca54581 100644 --- a/ext/standard/tests/strings/strrpos_variation7.phpt +++ b/ext/standard/tests/strings/strrpos_variation7.phpt @@ -20,10 +20,12 @@ var_dump( strrpos($empty_string, FALSE) ); echo "*** Done ***"; ?> ---EXPECT-- +--EXPECTF-- *** Testing strrpos() function: with heredoc strings *** -- With empty heredoc string -- int(0) strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d int(0) *** Done *** diff --git a/ext/standard/tests/strings/strstr.phpt b/ext/standard/tests/strings/strstr.phpt index f5a2d80318b74..9ddec15cfffbe 100644 --- a/ext/standard/tests/strings/strstr.phpt +++ b/ext/standard/tests/strings/strstr.phpt @@ -224,6 +224,8 @@ string(73) "012033 -3.3445 NULL TRUE FALSE%0 abcd\xxyz %00 octal abcd$:Hello world" -- Iteration 15 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(72) "12033 -3.3445 NULL TRUE FALSE%0 abcd\xxyz %00 octal abcd$:Hello world" @@ -244,6 +246,8 @@ string(72) "12033 -3.3445 NULL TRUE FALSE%0 abcd\xxyz %00 octal abcd$:Hello world" -- Iteration 19 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(85) "Hello world,012033 -3.3445 NULL TRUE FALSE%0 abcd\xxyz %00 octal abcd$:Hello world" diff --git a/ext/standard/tests/strings/strtolower.phpt b/ext/standard/tests/strings/strtolower.phpt index 6052ccd840d50..45f150349956a 100644 --- a/ext/standard/tests/strings/strtolower.phpt +++ b/ext/standard/tests/strings/strtolower.phpt @@ -330,9 +330,13 @@ string(31) "$$$$$$!!!!@@@@@@@ abcdef !!!***" string(13) "abcd%0abcdabcd" -- Iteration 6 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 7 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 8 -- diff --git a/ext/standard/tests/strings/strtoupper1.phpt b/ext/standard/tests/strings/strtoupper1.phpt index abda0b9d38b28..62efc393e75b0 100644 --- a/ext/standard/tests/strings/strtoupper1.phpt +++ b/ext/standard/tests/strings/strtoupper1.phpt @@ -329,9 +329,13 @@ string(31) "$$$$$$!!!!@@@@@@@ ABCDEF !!!***" string(13) "ABCD%0ABCDABCD" -- Iteration 6 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" -- Iteration 7 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 8 -- diff --git a/ext/standard/tests/strings/strtr_variation4.phpt b/ext/standard/tests/strings/strtr_variation4.phpt index f89ff654a1869..e6b62aa6f31b9 100644 --- a/ext/standard/tests/strings/strtr_variation4.phpt +++ b/ext/standard/tests/strings/strtr_variation4.phpt @@ -45,7 +45,7 @@ for($index = 0; $index < count($str_arr); $index++) { } echo "*** Done ***"; ?> ---EXPECT-- +--EXPECTF-- *** Testing strtr() : empty string & null for 'str' arg *** -- Iteration 1 -- string(0) "" @@ -54,10 +54,18 @@ string(0) "" string(0) "" string(0) "" -- Iteration 3 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 4 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" -- Iteration 5 -- string(0) "" diff --git a/ext/standard/tests/strings/strtr_variation6.phpt b/ext/standard/tests/strings/strtr_variation6.phpt index 438eb168fae55..0e693d5b2cdea 100644 --- a/ext/standard/tests/strings/strtr_variation6.phpt +++ b/ext/standard/tests/strings/strtr_variation6.phpt @@ -95,12 +95,20 @@ strtr(): Argument #2 ($from) must be of type string, array given -- Iteration 9 -- strtr(): Argument #2 ($from) must be of type string, array given -- Iteration 10 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(6) "0a2atm" -- Iteration 11 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(6) "012atm" -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(6) "0a2atm" -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(6) "012atm" -- Iteration 14 -- diff --git a/ext/standard/tests/strings/strtr_variation8.phpt b/ext/standard/tests/strings/strtr_variation8.phpt index d68c6f04e75bb..09cbc78a27fa6 100644 --- a/ext/standard/tests/strings/strtr_variation8.phpt +++ b/ext/standard/tests/strings/strtr_variation8.phpt @@ -105,15 +105,23 @@ string(6) "012atm" string(6) "122atm" -- Iteration 10 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d strtr(): Argument #2 ($from) must be of type array, string given -- Iteration 11 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d strtr(): Argument #2 ($from) must be of type array, string given -- Iteration 12 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d strtr(): Argument #2 ($from) must be of type array, string given -- Iteration 13 -- + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d strtr(): Argument #2 ($from) must be of type array, string given -- Iteration 14 -- diff --git a/ext/standard/tests/strings/trim1.phpt b/ext/standard/tests/strings/trim1.phpt index e0cdbea1c899f..50fa07dd2eeff 100644 --- a/ext/standard/tests/strings/trim1.phpt +++ b/ext/standard/tests/strings/trim1.phpt @@ -46,6 +46,8 @@ string(0) "" string(1) "0" string(1) "0" string(13) " testing trim" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(15) " testing trim " *** Testing with OBJECTS *** diff --git a/ext/standard/tests/strings/ucfirst.phpt b/ext/standard/tests/strings/ucfirst.phpt index 1cae286d98a9a..6bf24b5138851 100644 --- a/ext/standard/tests/strings/ucfirst.phpt +++ b/ext/standard/tests/strings/ucfirst.phpt @@ -118,11 +118,15 @@ string(6) "-3.344" string(4) "NULL" string(1) "0" string(1) "0" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(1) "1" string(4) "TRUE" string(1) "1" string(1) "1" string(8) "1.234444" + +Deprecated: Implicit bool to string coercion is deprecated in %s on line %d string(0) "" string(5) "FALSE" string(1) " " From 03af373b10d284f72a555dff8cc0a043a1978d8e Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Tue, 22 Feb 2022 21:37:53 +0100 Subject: [PATCH 2/3] Changes in tests --- .../tests/type_declarations/scalar_basic.phpt | 4 +- .../scalar_return_basic_64bit.phpt | 4 +- ext/standard/tests/file/fread_variation2.phpt | 146 +----------- ext/standard/tests/file/fread_variation4.phpt | 118 +--------- .../tests/streams/stream_socket_pair.phpt | 3 +- ext/standard/tests/strings/str_repeat.phpt | 17 +- ext/standard/tests/strings/strcasecmp.phpt | 207 +++++++++--------- ext/standard/tests/strings/strcmp.phpt | 131 +++++------ ext/standard/tests/strings/strlen.phpt | 11 +- ext/standard/tests/strings/strpos.phpt | 11 +- 10 files changed, 202 insertions(+), 450 deletions(-) diff --git a/Zend/tests/type_declarations/scalar_basic.phpt b/Zend/tests/type_declarations/scalar_basic.phpt index 73ebf5c85d2bf..a5e271da11a72 100644 --- a/Zend/tests/type_declarations/scalar_basic.phpt +++ b/Zend/tests/type_declarations/scalar_basic.phpt @@ -197,11 +197,11 @@ string(%d) "%d" string(3) "NAN" *** Trying bool(true) -E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 +E_DEPRECATED: Implicit bool to string coercion is deprecated on line %d string(1) "1" *** Trying bool(false) -E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 +E_DEPRECATED: Implicit bool to string coercion is deprecated on line %d string(0) "" *** Trying NULL diff --git a/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt b/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt index 25c953d4380f7..82dd66f8cc4c0 100644 --- a/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt +++ b/Zend/tests/type_declarations/scalar_return_basic_64bit.phpt @@ -158,10 +158,10 @@ string(19) "9223372036854775807" *** Trying float(NAN) string(3) "NAN" *** Trying bool(true) -E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 +E_DEPRECATED: Implicit bool to string coercion is deprecated on line %d string(1) "1" *** Trying bool(false) -E_DEPRECATED: Implicit bool to string coercion is deprecated on line 16 +E_DEPRECATED: Implicit bool to string coercion is deprecated on line %d string(0) "" *** Trying NULL *** Caught {closure}(): Return value must be of type string, null returned in %s on line %d diff --git a/ext/standard/tests/file/fread_variation2.phpt b/ext/standard/tests/file/fread_variation2.phpt index 17e01047e7dd8..a267002cf5540 100644 --- a/ext/standard/tests/file/fread_variation2.phpt +++ b/ext/standard/tests/file/fread_variation2.phpt @@ -25,7 +25,7 @@ function check_read($file_handle, $read_size, $expect_size) { $data_from_file = fread($file_handle, $read_size); // check if data read is of expected size - if ( strlen($data_from_file) == $expect_size) + if ( strlen((string) $data_from_file) == $expect_size) echo "OK\n"; else echo "Error reading file, total number of bytes read = ".strlen($data_from_file)."\n"; @@ -105,8 +105,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -116,8 +114,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -128,8 +124,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -139,8 +133,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -151,8 +143,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -162,8 +152,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -174,8 +162,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -185,8 +171,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -197,8 +181,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -208,8 +190,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -220,8 +200,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -231,8 +209,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -243,8 +219,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -254,8 +228,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -266,8 +238,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -277,8 +247,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -289,8 +257,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -300,8 +266,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -314,8 +278,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -325,8 +287,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -337,8 +297,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -348,8 +306,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -360,8 +316,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -371,8 +325,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -383,8 +335,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -394,8 +344,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -406,8 +354,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -417,8 +363,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -429,8 +373,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -440,8 +382,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -452,8 +392,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -463,8 +401,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -475,8 +411,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -486,8 +420,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -498,8 +430,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -509,8 +439,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -523,8 +451,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -534,8 +460,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -546,8 +470,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -557,8 +479,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -569,8 +489,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -580,8 +498,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -592,8 +508,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -603,8 +517,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -615,8 +527,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -626,8 +536,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -638,8 +546,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -649,8 +555,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -661,8 +565,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -672,8 +574,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -684,8 +584,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -695,8 +593,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -707,8 +603,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -718,8 +612,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -732,8 +624,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -743,8 +633,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -755,8 +643,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -766,8 +652,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -778,8 +662,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -789,8 +671,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -801,8 +681,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -812,8 +690,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -824,8 +700,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -835,8 +709,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -847,8 +719,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -858,8 +728,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -870,8 +738,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -881,8 +747,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -893,8 +757,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -904,8 +766,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -916,8 +776,6 @@ int(0) bool(false) Reading 1024 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -927,8 +785,6 @@ int(0) bool(false) Reading 1000 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) diff --git a/ext/standard/tests/file/fread_variation4.phpt b/ext/standard/tests/file/fread_variation4.phpt index 8a604c116a582..57a8ba73330cb 100644 --- a/ext/standard/tests/file/fread_variation4.phpt +++ b/ext/standard/tests/file/fread_variation4.phpt @@ -23,7 +23,7 @@ function check_read($file_handle, $read_size, $expect_size) { $data_from_file = fread($file_handle, $read_size); // check if data read is of expected size - if ( strlen($data_from_file) == $expect_size) + if ( strlen((string) $data_from_file) == $expect_size) echo "OK\n"; else echo "Error reading file, total number of bytes read = ".strlen($data_from_file)."\n"; @@ -103,8 +103,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -113,8 +111,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -124,8 +120,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -134,8 +128,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -145,8 +137,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -155,8 +145,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -166,8 +154,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -176,8 +162,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -187,8 +171,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -197,8 +179,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -208,8 +188,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -218,8 +196,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -229,8 +205,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -239,8 +213,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -250,8 +222,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -260,8 +230,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -271,8 +239,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -281,8 +247,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -294,8 +258,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -304,8 +266,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -315,8 +275,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -325,8 +283,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -336,8 +292,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -346,8 +300,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -357,8 +309,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -367,8 +317,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -378,8 +326,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -388,8 +334,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -399,8 +343,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -409,8 +351,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -420,8 +360,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -430,8 +368,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -441,8 +377,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -451,8 +385,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -462,8 +394,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -472,8 +402,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -485,8 +413,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -495,8 +421,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -506,8 +430,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -516,8 +438,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -527,8 +447,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -537,8 +455,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -548,8 +464,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -558,8 +472,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -569,8 +481,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -579,8 +489,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -590,20 +498,16 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) -- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- -int(1024) +int(%r1024|1137%r) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK -int(1024) +int(%r1024|1137%r) bool(false) -- File opened in mode x -- -- Reading beyond filesize, expected : 1024 bytes -- @@ -611,8 +515,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -621,8 +523,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -632,8 +532,6 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) @@ -642,8 +540,6 @@ int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(1024) bool(false) @@ -653,19 +549,15 @@ int(0) bool(false) Reading 1030 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK int(0) bool(false) -- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- -int(1024) +int(%r1024|1137%r) bool(false) Reading 10 bytes from file, expecting 0 bytes ... Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d - -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d OK -int(1024) +int(%r1024|1137%r) bool(false) Done diff --git a/ext/standard/tests/streams/stream_socket_pair.phpt b/ext/standard/tests/streams/stream_socket_pair.phpt index e05caa4b41987..09a51b61f41fe 100644 --- a/ext/standard/tests/streams/stream_socket_pair.phpt +++ b/ext/standard/tests/streams/stream_socket_pair.phpt @@ -2,7 +2,7 @@ stream_socket_pair() --FILE-- --EXPECTF-- -Deprecated: Implicit bool to string coercion is deprecated in %s on line %d array(2) { [0]=> resource(%d) of type (stream) diff --git a/ext/standard/tests/strings/str_repeat.phpt b/ext/standard/tests/strings/str_repeat.phpt index 17e3655b434ac..3dff0705bdad9 100644 --- a/ext/standard/tests/strings/str_repeat.phpt +++ b/ext/standard/tests/strings/str_repeat.phpt @@ -22,8 +22,9 @@ $variations = array( foreach($variations as $input) { echo "\n--- str_repeat() of '$input' ---\n" ; for($n=0; $n<4; $n++) { + $result = str_repeat($input, $n); echo "-- after repeating $n times is => "; - echo str_repeat($input, $n)."\n"; + echo $result."\n"; } } @@ -69,18 +70,18 @@ try { -- after repeating 3 times is => \0\0\0 --- str_repeat() of '1' --- --- after repeating 0 times is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d +-- after repeating 0 times is => --- after repeating 1 times is => Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -1 --- after repeating 2 times is => +-- after repeating 1 times is => 1 + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -11 --- after repeating 3 times is => +-- after repeating 2 times is => 11 + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -111 +-- after repeating 3 times is => 111 --- str_repeat() of '4' --- -- after repeating 0 times is => diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index fcdf356057767..ad788f68f3cab 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -23,8 +23,9 @@ foreach($arrays as $str1_arr){ for ($i=0; $i "; - var_dump(strcasecmp($str1_arr[$i], $str1_arr[$j])); + var_dump($result); } } } @@ -294,15 +295,15 @@ Iteration 0 - strcasecmp of '1' and '-1' is => int(%d) - strcasecmp of '1' and '-1' is => int(%d) - strcasecmp of '1' and '' is => int(%d) -- strcasecmp of '1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '1' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) +- strcasecmp of '1' and '' is => int(%d) - strcasecmp of '1' and 'string' is => int(-%d) Iteration 1 @@ -312,15 +313,15 @@ Iteration 1 - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '' is => int(%d) -- strcasecmp of '0' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '0' and '1' is => +- strcasecmp of '0' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '0' and '' is => +- strcasecmp of '0' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) +- strcasecmp of '0' and '' is => int(%d) - strcasecmp of '0' and 'string' is => int(-%d) Iteration 2 @@ -330,15 +331,15 @@ Iteration 2 - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '-1' is => int(%d) - strcasecmp of '0' and '' is => int(%d) -- strcasecmp of '0' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '0' and '1' is => +- strcasecmp of '0' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '0' and '' is => +- strcasecmp of '0' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) +- strcasecmp of '0' and '' is => int(%d) - strcasecmp of '0' and 'string' is => int(-%d) Iteration 3 @@ -348,15 +349,15 @@ Iteration 3 - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '' is => int(%d) -- strcasecmp of '-1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-4) -- strcasecmp of '-1' and '1' is => +- strcasecmp of '-1' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-4) -- strcasecmp of '-1' and '' is => +- strcasecmp of '-1' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(2) +- strcasecmp of '-1' and '' is => int(%d) - strcasecmp of '-1' and 'string' is => int(-%d) Iteration 4 @@ -366,15 +367,15 @@ Iteration 4 - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '-1' is => int(0) - strcasecmp of '-1' and '' is => int(%d) -- strcasecmp of '-1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-4) -- strcasecmp of '-1' and '1' is => +- strcasecmp of '-1' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-4) -- strcasecmp of '-1' and '' is => +- strcasecmp of '-1' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(2) +- strcasecmp of '-1' and '' is => int(%d) - strcasecmp of '-1' and 'string' is => int(-%d) Iteration 5 @@ -384,130 +385,130 @@ Iteration 5 - strcasecmp of '' and '-1' is => int(-%d) - strcasecmp of '' and '-1' is => int(-%d) - strcasecmp of '' and '' is => int(0) -- strcasecmp of '' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '1' is => +- strcasecmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '' is => +- strcasecmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) +- strcasecmp of '' and '' is => int(0) - strcasecmp of '' and 'string' is => int(-%d) Iteration 6 -- strcasecmp of '1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '0' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and '0' is => +- strcasecmp of '1' and '0' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and '-1' is => +- strcasecmp of '1' and '0' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(4) -- strcasecmp of '1' and '-1' is => +- strcasecmp of '1' and '-1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(4) -- strcasecmp of '1' and '' is => +- strcasecmp of '1' and '-1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and '1' is => +- strcasecmp of '1' and '' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '1' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and 'string' is => +- strcasecmp of '1' and '' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-66) +- strcasecmp of '1' and 'string' is => int(-%d) Iteration 7 -- strcasecmp of '1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '0' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and '0' is => +- strcasecmp of '1' and '0' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and '-1' is => +- strcasecmp of '1' and '0' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(4) -- strcasecmp of '1' and '-1' is => +- strcasecmp of '1' and '-1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(4) -- strcasecmp of '1' and '' is => +- strcasecmp of '1' and '-1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and '1' is => +- strcasecmp of '1' and '' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '1' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '1' and '' is => +- strcasecmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcasecmp of '1' and 'string' is => +- strcasecmp of '1' and '' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-66) +- strcasecmp of '1' and 'string' is => int(-%d) Iteration 8 -- strcasecmp of '' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '0' is => +- strcasecmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '0' is => +- strcasecmp of '' and '0' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '-1' is => +- strcasecmp of '' and '0' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-2) -- strcasecmp of '' and '-1' is => +- strcasecmp of '' and '-1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-2) -- strcasecmp of '' and '' is => +- strcasecmp of '' and '-1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '' and '1' is => +- strcasecmp of '' and '' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '1' is => +- strcasecmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcasecmp of '' and '' is => +- strcasecmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcasecmp of '' and 'string' is => +- strcasecmp of '' and '' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-6) +- strcasecmp of '' and 'string' is => int(-%d) Iteration 9 - strcasecmp of 'string' and '1' is => int(%d) @@ -516,15 +517,15 @@ Iteration 9 - strcasecmp of 'string' and '-1' is => int(%d) - strcasecmp of 'string' and '-1' is => int(%d) - strcasecmp of 'string' and '' is => int(%d) -- strcasecmp of 'string' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(66) -- strcasecmp of 'string' and '1' is => +- strcasecmp of 'string' and '1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(66) -- strcasecmp of 'string' and '' is => +- strcasecmp of 'string' and '1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(6) +- strcasecmp of 'string' and '' is => int(%d) - strcasecmp of 'string' and 'string' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index e32d4a008e78e..80d577ac7ba89 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -23,8 +23,9 @@ foreach($arrays as $str1_arr){ for ($i=0; $i "; - var_dump(strcmp($str1_arr[$i], $str1_arr[$j])); + var_dump($result); } } } @@ -323,12 +324,12 @@ Iteration 0 - strcmp of '1' and '-1' is => int(%d) - strcmp of '1' and '-1' is => int(%d) - strcmp of '1' and '' is => int(%d) -- strcmp of '1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcmp of '1' and '' is => +- strcmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) +- strcmp of '1' and '' is => int(%d) - strcmp of '1' and 'string' is => int(-%d) Iteration 1 @@ -338,12 +339,12 @@ Iteration 1 - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '' is => int(%d) -- strcmp of '0' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '0' and '' is => +- strcmp of '0' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) +- strcmp of '0' and '' is => int(%d) - strcmp of '0' and 'string' is => int(-%d) Iteration 2 @@ -353,12 +354,12 @@ Iteration 2 - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '-1' is => int(%d) - strcmp of '0' and '' is => int(%d) -- strcmp of '0' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '0' and '' is => +- strcmp of '0' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) +- strcmp of '0' and '' is => int(%d) - strcmp of '0' and 'string' is => int(-%d) Iteration 3 @@ -368,12 +369,12 @@ Iteration 3 - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '' is => int(%d) -- strcmp of '-1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-4) -- strcmp of '-1' and '' is => +- strcmp of '-1' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(2) +- strcmp of '-1' and '' is => int(%d) - strcmp of '-1' and 'string' is => int(-%d) Iteration 4 @@ -383,12 +384,12 @@ Iteration 4 - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '-1' is => int(0) - strcmp of '-1' and '' is => int(%d) -- strcmp of '-1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-4) -- strcmp of '-1' and '' is => +- strcmp of '-1' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(2) +- strcmp of '-1' and '' is => int(%d) - strcmp of '-1' and 'string' is => int(-%d) Iteration 5 @@ -398,79 +399,79 @@ Iteration 5 - strcmp of '' and '-1' is => int(-%d) - strcmp of '' and '-1' is => int(-%d) - strcmp of '' and '' is => int(0) -- strcmp of '' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '' and '' is => +- strcmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) +- strcmp of '' and '' is => int(0) - strcmp of '' and 'string' is => int(-%d) Iteration 6 -- strcmp of '1' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcmp of '1' and '0' is => +- strcmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcmp of '1' and '0' is => +- strcmp of '1' and '0' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcmp of '1' and '-1' is => +- strcmp of '1' and '0' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(4) -- strcmp of '1' and '-1' is => +- strcmp of '1' and '-1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(4) -- strcmp of '1' and '' is => +- strcmp of '1' and '-1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcmp of '1' and '1' is => +- strcmp of '1' and '' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcmp of '1' and '' is => +- strcmp of '1' and '1' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -- strcmp of '1' and 'string' is => +- strcmp of '1' and '' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-66) +- strcmp of '1' and 'string' is => int(-%d) Iteration 7 -- strcmp of '' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '' and '0' is => +- strcmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '' and '0' is => +- strcmp of '' and '0' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '' and '-1' is => +- strcmp of '' and '0' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-2) -- strcmp of '' and '-1' is => +- strcmp of '' and '-1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-2) -- strcmp of '' and '' is => +- strcmp of '' and '-1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcmp of '' and '1' is => +- strcmp of '' and '' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-1) -- strcmp of '' and '' is => +- strcmp of '' and '1' is => int(-%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) -- strcmp of '' and 'string' is => +- strcmp of '' and '' is => int(0) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(-6) +- strcmp of '' and 'string' is => int(-%d) Iteration 8 - strcmp of 'string' and '1' is => int(%d) @@ -479,12 +480,12 @@ Iteration 8 - strcmp of 'string' and '-1' is => int(%d) - strcmp of 'string' and '-1' is => int(%d) - strcmp of 'string' and '' is => int(%d) -- strcmp of 'string' and '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(66) -- strcmp of 'string' and '' is => +- strcmp of 'string' and '1' is => int(%d) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(6) +- strcmp of 'string' and '' is => int(%d) - strcmp of 'string' and 'string' is => int(0) *** comparing the strings in an diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index f73570ead465b..1dac0925cf2b4 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -49,8 +49,9 @@ $strings = array( "Hello, World", /* loop through to find the length of each string */ for($i=0; $i "; - var_dump( strlen($strings[$i]) ); + var_dump($result); } @@ -142,12 +143,12 @@ String length of '0' is => int(1) String length of '0' is => int(1) String length of ' ' is => int(1) String length of '\t' is => int(2) -String length of '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(1) -String length of '' is => +String length of '1' is => int(1) + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) +String length of '' is => int(0) String length of 'Hello, World%0' is => int(13) String length of 'Hello%0World' is => int(11) String length of 'Hello, World\0' is => int(14) diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt index cff500ff26af6..5b3efe545e5d9 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt @@ -59,8 +59,9 @@ $needles = array( /* loop through to get the "needle" position in $string */ for( $i = 0; $i < count($needles); $i++ ) { + $result = strpos($string, $needles[$i]); echo "Position of '$needles[$i]' is => "; - var_dump( strpos($string, $needles[$i]) ); + var_dump($result); } @@ -205,15 +206,15 @@ Position of '-3.344' is => int(19) Position of 'NULL' is => int(31) Position of '0' is => int(12) Position of '0' is => int(12) -Position of '1' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(13) +Position of '1' is => int(13) Position of 'TRUE' is => int(36) Position of '1' is => int(13) Position of '1' is => int(13) -Position of '' is => + Deprecated: Implicit bool to string coercion is deprecated in %s on line %d -int(0) +Position of '' is => int(0) Position of 'FALSE' is => int(41) Position of ' ' is => int(5) Position of ' ' is => int(26) From c198ae220606ee287d0f3e50b1a5f0ecd9ee33b1 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Fri, 25 Feb 2022 14:34:18 +0100 Subject: [PATCH 3/3] Fix some tests --- ext/pdo/tests/pdo_test.inc | 8 ++++---- sapi/fpm/tests/tester.inc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/pdo/tests/pdo_test.inc b/ext/pdo/tests/pdo_test.inc index ba9f159228fc2..702f8f6604911 100644 --- a/ext/pdo/tests/pdo_test.inc +++ b/ext/pdo/tests/pdo_test.inc @@ -19,10 +19,10 @@ class PDOTest { // create an instance of the PDO driver, based on // the current environment static function factory($classname = 'PDO', $drop_test_tables = true) { - $dsn = getenv('PDOTEST_DSN'); - $user = getenv('PDOTEST_USER'); - $pass = getenv('PDOTEST_PASS'); - $attr = getenv('PDOTEST_ATTR'); + $dsn = getenv('PDOTEST_DSN') ?: ''; + $user = getenv('PDOTEST_USER') ?: ''; + $pass = getenv('PDOTEST_PASS') ?: ''; + $attr = getenv('PDOTEST_ATTR') ?: ''; if (is_string($attr) && strlen($attr)) { $attr = unserialize($attr); } else { diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc index e607035df1b31..1e3e31e6f012e 100644 --- a/sapi/fpm/tests/tester.inc +++ b/sapi/fpm/tests/tester.inc @@ -748,7 +748,7 @@ class Tester $write = null; $except = null; if (stream_select($read, $write, $except, $timeout=3)) { - return fgets($this->outDesc); + return fgets($this->outDesc) ?: null; } else { return null; }