From bd6292a700cbb85cf44ff49fe1d88b704e081c3c Mon Sep 17 00:00:00 2001 From: Steve Seear Date: Fri, 11 Apr 2008 09:29:08 +0000 Subject: [PATCH] POSIX extension variation tests (failing due to spurious array to string conversion notices). --- ext/posix/tests/posix_getgrgid_variation.phpt | 267 ++++++++++++++++++ ext/posix/tests/posix_getpgid_variation.phpt | 267 ++++++++++++++++++ ext/posix/tests/posix_getpwuid_variation.phpt | 267 ++++++++++++++++++ ext/posix/tests/posix_kill_variation1.phpt | 265 +++++++++++++++++ ext/posix/tests/posix_kill_variation2.phpt | 265 +++++++++++++++++ .../tests/posix_strerror_variation1.phpt | 264 +++++++++++++++++ 6 files changed, 1595 insertions(+) create mode 100644 ext/posix/tests/posix_getgrgid_variation.phpt create mode 100644 ext/posix/tests/posix_getpgid_variation.phpt create mode 100644 ext/posix/tests/posix_getpwuid_variation.phpt create mode 100644 ext/posix/tests/posix_kill_variation1.phpt create mode 100644 ext/posix/tests/posix_kill_variation2.phpt create mode 100644 ext/posix/tests/posix_strerror_variation1.phpt diff --git a/ext/posix/tests/posix_getgrgid_variation.phpt b/ext/posix/tests/posix_getgrgid_variation.phpt new file mode 100644 index 0000000000..14aa0bbcb3 --- /dev/null +++ b/ext/posix/tests/posix_getgrgid_variation.phpt @@ -0,0 +1,267 @@ +--TEST-- +Test posix_getgrgid() function : usage variations - parameter types +--SKIPIF-- + +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'string', + + // undefined data + $undefined_var, + + // unset data + $unset_var, + + // object data + new stdclass(), +); + +// loop through each element of the array for gid + +foreach($values as $value) { + echo "\nArg value $value \n"; + $result = posix_getgrgid($value); + if ((is_array($result) && (count($result) == 4)) + || + ($result === false)) { + echo "valid output\n"; + } else { + var_dump($result); + } +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing posix_getgrgid() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +valid output + +Arg value -10.5 +valid output + +Arg value 101234567000 +valid output + +Arg value 1.07654321E-9 +valid output + +Arg value 0.5 +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value + +Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value + +Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d +--UEXPECTF-- +*** Testing posix_getgrgid() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +valid output + +Arg value -10.5 +valid output + +Arg value 101234567000 +valid output + +Arg value 1.07654321E-9 +valid output + +Arg value 0.5 +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value + +Warning: posix_getgrgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value + +Warning: posix_getgrgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getgrgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getgrgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d diff --git a/ext/posix/tests/posix_getpgid_variation.phpt b/ext/posix/tests/posix_getpgid_variation.phpt new file mode 100644 index 0000000000..0c90c1c97c --- /dev/null +++ b/ext/posix/tests/posix_getpgid_variation.phpt @@ -0,0 +1,267 @@ +--TEST-- +Test posix_getpgid() function : variation +--SKIPIF-- + +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'string', + + // undefined data + $undefined_var, + + // unset data + $unset_var, + + // object data + new stdclass(), +); + +// loop through each element of the array for gid + +foreach($values as $value) { + echo "\nArg value $value \n"; + $result = posix_getpgid($value); + if (is_int($result) || $result === false) { + echo "valid output\n"; + } else { + var_dump($result); + } +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing posix_getpgid() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +valid output + +Arg value -10.5 +valid output + +Arg value 101234567000 +valid output + +Arg value 1.07654321E-9 +valid output + +Arg value 0.5 +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value + +Warning: posix_getpgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value + +Warning: posix_getpgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpgid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d +--UEXPECTF-- +*** Testing posix_getpgid() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +valid output + +Arg value -10.5 +valid output + +Arg value 101234567000 +valid output + +Arg value 1.07654321E-9 +valid output + +Arg value 0.5 +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value + +Warning: posix_getpgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value + +Warning: posix_getpgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpgid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d diff --git a/ext/posix/tests/posix_getpwuid_variation.phpt b/ext/posix/tests/posix_getpwuid_variation.phpt new file mode 100644 index 0000000000..4e9449287c --- /dev/null +++ b/ext/posix/tests/posix_getpwuid_variation.phpt @@ -0,0 +1,267 @@ +--TEST-- +Test posix_getpwuid() function : usage variations - parameter types +--SKIPIF-- + +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'string', + + // undefined data + $undefined_var, + + // unset data + $unset_var, + + // object data + new stdclass(), +); + +// loop through each element of the array for uid + +foreach($values as $value) { + echo "\nArg value $value \n"; + $result = posix_getpwuid($value); + if ((is_array($result) && (count($result) == 7)) + || + ($result === false)) { + echo "valid output\n"; + } else { + var_dump($result); + } +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing posix_getpwuid() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +valid output + +Arg value -10.5 +valid output + +Arg value 101234567000 +valid output + +Arg value 1.07654321E-9 +valid output + +Arg value 0.5 +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value + +Warning: posix_getpwuid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value + +Warning: posix_getpwuid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpwuid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpwuid() expects parameter 1 to be long, string given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d +--UEXPECTF-- +*** Testing posix_getpwuid() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +valid output + +Arg value -10.5 +valid output + +Arg value 101234567000 +valid output + +Arg value 1.07654321E-9 +valid output + +Arg value 0.5 +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value 1 +valid output + +Arg value +valid output + +Arg value + +Warning: posix_getpwuid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value + +Warning: posix_getpwuid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpwuid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value string + +Warning: posix_getpwuid() expects parameter 1 to be long, Unicode string given in %s on line %d +valid output + +Arg value +valid output + +Arg value +valid output + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d diff --git a/ext/posix/tests/posix_kill_variation1.phpt b/ext/posix/tests/posix_kill_variation1.phpt new file mode 100644 index 0000000000..12c755de40 --- /dev/null +++ b/ext/posix/tests/posix_kill_variation1.phpt @@ -0,0 +1,265 @@ +--TEST-- +Test posix_kill() function : usage variations - first parameter type +--SKIPIF-- + +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'string', + + // undefined data + $undefined_var, + + // unset data + $unset_var, + + // object data + new stdclass(), +); + +// loop through each element of the array for pid + +foreach($values as $value) { + echo "\nArg value $value \n"; + var_dump( posix_kill($value, $sig) ); +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing posix_kill() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +bool(false) + +Arg value -10.5 +bool(false) + +Arg value 101234567000 +bool(false) + +Arg value 1.07654321E-9 +bool(false) + +Arg value 0.5 +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d +--UEXPECTF-- +*** Testing posix_kill() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +bool(false) + +Arg value -10.5 +bool(false) + +Arg value 101234567000 +bool(false) + +Arg value 1.07654321E-9 +bool(false) + +Arg value 0.5 +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d diff --git a/ext/posix/tests/posix_kill_variation2.phpt b/ext/posix/tests/posix_kill_variation2.phpt new file mode 100644 index 0000000000..eebb3e42a9 --- /dev/null +++ b/ext/posix/tests/posix_kill_variation2.phpt @@ -0,0 +1,265 @@ +--TEST-- +Test posix_kill() function : usage variations - second parameter type +--SKIPIF-- + +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'string', + + // undefined data + $undefined_var, + + // unset data + $unset_var, + + // object data + new stdclass(), +); + +// loop through each element of the array for sig + +foreach($values as $value) { + echo "\nArg value $value \n"; + var_dump( posix_kill($pid, $value) ); +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing posix_kill() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +bool(false) + +Arg value -10.5 +bool(false) + +Arg value 101234567000 +bool(false) + +Arg value 1.07654321E-9 +bool(false) + +Arg value 0.5 +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d +--UEXPECTF-- +*** Testing posix_kill() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +bool(false) + +Arg value -10.5 +bool(false) + +Arg value 101234567000 +bool(false) + +Arg value 1.07654321E-9 +bool(false) + +Arg value 0.5 +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 2 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value + +Warning: posix_kill() expects parameter 2 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 2 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_kill() expects parameter 2 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d diff --git a/ext/posix/tests/posix_strerror_variation1.phpt b/ext/posix/tests/posix_strerror_variation1.phpt new file mode 100644 index 0000000000..9a8b66bf19 --- /dev/null +++ b/ext/posix/tests/posix_strerror_variation1.phpt @@ -0,0 +1,264 @@ +--TEST-- +Test posix_strerror() function : usage variations - +--SKIPIF-- + +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'string', + + // undefined data + $undefined_var, + + // unset data + $unset_var, + + // object data + new stdclass(), +); + +// loop through each element of the array for errno + +foreach($values as $value) { + echo "\nArg value $value \n"; + var_dump( posix_strerror($value) ); +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing posix_strerror() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +string(18) "No child processes" + +Arg value -10.5 +string(24) "Unknown error 4294967286" + +Arg value 101234567000 +string(24) "Unknown error 2147483647" + +Arg value 1.07654321E-9 +string(7) "Success" + +Arg value 0.5 +string(7) "Success" + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value +string(7) "Success" + +Arg value +string(7) "Success" + +Arg value 1 +string(23) "Operation not permitted" + +Arg value +string(7) "Success" + +Arg value 1 +string(23) "Operation not permitted" + +Arg value +string(7) "Success" + +Arg value + +Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value + +Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_strerror() expects parameter 1 to be long, string given in %s on line %d +bool(false) + +Arg value +string(7) "Success" + +Arg value +string(7) "Success" + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d +--UEXPECTF-- +*** Testing posix_strerror() : usage variations *** + +Notice: Undefined variable: undefined_var in %s on line %d + +Notice: Undefined variable: unset_var in %s on line %d + +Arg value 10.5 +string(18) "No child processes" + +Arg value -10.5 +string(24) "Unknown error 4294967286" + +Arg value 101234567000 +string(24) "Unknown error 2147483647" + +Arg value 1.07654321E-9 +string(7) "Success" + +Arg value 0.5 +string(7) "Success" + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Arg value +string(7) "Success" + +Arg value +string(7) "Success" + +Arg value 1 +string(23) "Operation not permitted" + +Arg value +string(7) "Success" + +Arg value 1 +string(23) "Operation not permitted" + +Arg value +string(7) "Success" + +Arg value + +Warning: posix_strerror() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value + +Warning: posix_strerror() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_strerror() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value string + +Warning: posix_strerror() expects parameter 1 to be long, Unicode string given in %s on line %d +bool(false) + +Arg value +string(7) "Success" + +Arg value +string(7) "Success" + +Catchable fatal error: Object of class stdClass could not be converted to string in %s on line %d -- 2.40.0