From: andy wharmby Date: Fri, 12 Jun 2009 17:16:11 +0000 (+0000) Subject: New iconv extension tests. Tested on Windows, Linux and Linux 64 bit X-Git-Tag: php-5.2.10~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e2850fe3c6d09eea3303da8ad925c8c8563226a;p=php New iconv extension tests. Tested on Windows, Linux and Linux 64 bit --- diff --git a/ext/iconv/tests/iconv_basic.phpt b/ext/iconv/tests/iconv_basic.phpt new file mode 100644 index 0000000000..e0e2cb2061 --- /dev/null +++ b/ext/iconv/tests/iconv_basic.phpt @@ -0,0 +1,72 @@ +--TEST-- +Test iconv() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECT-- +*** Testing iconv() : basic functionality *** + +-- Convert to EUC-JP -- +Expected EUC-JP encoded string in base64: +string(74) "c6fccbdcb8eca5c6a5ada5b9a5c8a4c7a4b9a1a33031323334a3b5a3b6a3b7a3b8a3b9a1a3" +Converted Strings: +string(74) "c6fccbdcb8eca5c6a5ada5b9a5c8a4c7a4b9a1a33031323334a3b5a3b6a3b7a3b8a3b9a1a3" +string(74) "c6fccbdcb8eca5c6a5ada5b9a5c8a4c7a4b9a1a33031323334a3b5a3b6a3b7a3b8a3b9a1a3" + +-- Convert to SJIS -- +Expected SJIS encoded string in base64: +string(74) "93fa967b8cea8365834c8358836782c582b781423031323334825482558256825782588142" +Converted Strings: +string(74) "93fa967b8cea8365834c8358836782c582b781423031323334825482558256825782588142" +string(74) "93fa967b8cea8365834c8358836782c582b781423031323334825482558256825782588142" + +-- Convert to UTF-8 -- +Expected UTF-8 encoded string in base64: +string(106) "e697a5e69cace8aa9ee38386e382ade382b9e38388e381a7e38199e380823031323334efbc95efbc96efbc97efbc98efbc99e38082" +Converted Strings: +string(106) "e697a5e69cace8aa9ee38386e382ade382b9e38388e381a7e38199e380823031323334efbc95efbc96efbc97efbc98efbc99e38082" +string(106) "e697a5e69cace8aa9ee38386e382ade382b9e38388e381a7e38199e380823031323334efbc95efbc96efbc97efbc98efbc99e38082" +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_encoding_basic.phpt b/ext/iconv/tests/iconv_encoding_basic.phpt new file mode 100644 index 0000000000..150f49b590 --- /dev/null +++ b/ext/iconv/tests/iconv_encoding_basic.phpt @@ -0,0 +1,94 @@ +--TEST-- +Test iconv_get_encoding()/iconv_set_encoding() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_get_encoding()/iconv_set_encoding() : basic functionality *** +--- Default get_encoding --- +array(3) { + ["input_encoding"]=> + string(10) "ISO-8859-1" + ["output_encoding"]=> + string(10) "ISO-8859-1" + ["internal_encoding"]=> + string(10) "ISO-8859-1" +} +string(10) "ISO-8859-1" +string(10) "ISO-8859-1" +string(10) "ISO-8859-1" +array(3) { + ["input_encoding"]=> + string(10) "ISO-8859-1" + ["output_encoding"]=> + string(10) "ISO-8859-1" + ["internal_encoding"]=> + string(10) "ISO-8859-1" +} + +--- Altering encodings --- +bool(true) +bool(true) +bool(true) + +--- results of alterations --- +array(3) { + ["input_encoding"]=> + string(5) "UTF-8" + ["output_encoding"]=> + string(5) "UTF-8" + ["internal_encoding"]=> + string(5) "UTF-8" +} +string(5) "UTF-8" +string(5) "UTF-8" +string(5) "UTF-8" +array(3) { + ["input_encoding"]=> + string(5) "UTF-8" + ["output_encoding"]=> + string(5) "UTF-8" + ["internal_encoding"]=> + string(5) "UTF-8" +} +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_get_encoding_error.phpt b/ext/iconv/tests/iconv_get_encoding_error.phpt new file mode 100644 index 0000000000..b0c3e0724d --- /dev/null +++ b/ext/iconv/tests/iconv_get_encoding_error.phpt @@ -0,0 +1,177 @@ +--TEST-- +Test iconv_get_encoding() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_get_encoding() : error functionality *** + +-- Iteration 1 -- +bool(false) + +-- Iteration 2 -- +bool(false) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- +bool(false) + +-- Iteration 11 -- +bool(false) + +-- Iteration 12 -- +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- +bool(false) + +-- Iteration 15 -- +bool(false) + +-- Iteration 16 -- +bool(false) + +-- Iteration 17 -- +bool(false) + +-- Iteration 18 -- +bool(false) + +-- Iteration 19 -- +bool(false) + +-- Iteration 20 -- +bool(false) + +-- Iteration 21 -- +bool(false) + +-- Iteration 22 -- +bool(false) + +-- Iteration 23 -- +bool(false) + +-- Iteration 24 -- + +Warning: iconv_get_encoding() expects parameter 1 to be string, resource given in %s on line %d +NULL +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_mime_decode_headers_variation1.phpt b/ext/iconv/tests/iconv_mime_decode_headers_variation1.phpt new file mode 100644 index 0000000000..7cc32c7e70 --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_headers_variation1.phpt @@ -0,0 +1,218 @@ +--TEST-- +Test iconv_mime_encode() function : usage variations - Pass different data types to headers arg +--SKIPIF-- + +--FILE-- + +Received: from localhost (localhost [127.0.0.1]) by localhost + with SMTP id example for ; + Thu, 1 Jan 1970 00:00:00 +0000 (UTC) + (envelope-from example-return-0000-example=example.com@example.com) +Received: (qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000 + +EOF; + +$mode = ICONV_MIME_DECODE_CONTINUE_ON_ERROR; +$charset = 'ISO-8859-1'; + + +//get an unset variable +$unset_var = 10; +unset ($unset_var); + +// get a class +class classA +{ + public function __toString() { + return "Class A object"; + } +} + +// heredoc string +$heredoc = << +--EXPECTF-- +*** Testing iconv_mime_decode_headers() : usage variations *** + +-- Iteration 1 -- +array(0) { +} + +-- Iteration 2 -- +array(0) { +} + +-- Iteration 3 -- +array(0) { +} + +-- Iteration 4 -- +array(0) { +} + +-- Iteration 5 -- +array(0) { +} + +-- Iteration 6 -- +array(0) { +} + +-- Iteration 7 -- +array(0) { +} + +-- Iteration 8 -- +array(0) { +} + +-- Iteration 9 -- +array(0) { +} + +-- Iteration 10 -- +array(0) { +} + +-- Iteration 11 -- +array(0) { +} + +-- Iteration 12 -- +array(0) { +} + +-- Iteration 13 -- +array(0) { +} + +-- Iteration 14 -- +array(0) { +} + +-- Iteration 15 -- +array(0) { +} + +-- Iteration 16 -- +array(0) { +} + +-- Iteration 17 -- +array(0) { +} + +-- Iteration 18 -- +array(0) { +} + +-- Iteration 19 -- +array(0) { +} + +-- Iteration 20 -- +array(0) { +} + +-- Iteration 21 -- +array(0) { +} + +-- Iteration 22 -- +array(0) { +} + +-- Iteration 23 -- +array(0) { +} + +-- Iteration 24 -- + +Warning: iconv_mime_decode_headers() expects parameter 1 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_mime_decode_headers_variation2.phpt b/ext/iconv/tests/iconv_mime_decode_headers_variation2.phpt new file mode 100644 index 0000000000..5ceb801bed --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_headers_variation2.phpt @@ -0,0 +1,479 @@ +--TEST-- +Test iconv_mime_encode() function : usage variations - Pass different data types to mode arg +--SKIPIF-- + +--FILE-- + +Received: from localhost (localhost [127.0.0.1]) by localhost + with SMTP id example for ; + Thu, 1 Jan 1970 00:00:00 +0000 (UTC) + (envelope-from example-return-0000-example=example.com@example.com) +Received: (qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000 + +EOF; + +$mode = ICONV_MIME_DECODE_CONTINUE_ON_ERROR; +$charset = 'UTF-8'; + + +//get an unset variable +$unset_var = 10; +unset ($unset_var); + +// get a class +class classA +{ + public function __toString() { + return "Class A object"; + } +} + +// heredoc string +$heredoc = << +--EXPECTF-- +*** Testing iconv_mime_decode_headers() : usage variations *** + +-- Iteration 1 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 2 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 3 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 4 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 5 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 6 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 7 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 8 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 9 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 10 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 11 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 12 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 13 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 14 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 15 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 16 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 17 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 18 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 19 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 20 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 21 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, object given in %s on line %d +bool(false) + +-- Iteration 22 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 23 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 24 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_mime_decode_headers_variation3.phpt b/ext/iconv/tests/iconv_mime_decode_headers_variation3.phpt new file mode 100644 index 0000000000..c4a9cc434a --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_headers_variation3.phpt @@ -0,0 +1,482 @@ +--TEST-- +Test iconv_mime_encode() function : usage variations - Pass different data types to charset arg +--SKIPIF-- + +--FILE-- + +Received: from localhost (localhost [127.0.0.1]) by localhost + with SMTP id example for ; + Thu, 1 Jan 1970 00:00:00 +0000 (UTC) + (envelope-from example-return-0000-example=example.com@example.com) +Received: (qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000 + +EOF; + +$mode = ICONV_MIME_DECODE_CONTINUE_ON_ERROR; +$charset = 'UTF-8'; + + +//get an unset variable +$unset_var = 10; +unset ($unset_var); + +// get a class +class classA +{ + public function __toString() { + return "Class A object"; + } +} + +// heredoc string +$heredoc = << +--EXPECTF-- +*** Testing iconv_mime_decode_headers() : usage variations *** + +-- Iteration 1 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 2 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 3 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 4 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 5 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 6 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 7 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 8 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 9 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 10 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 11 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 12 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 13 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 14 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 15 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 16 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 17 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 18 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 19 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 20 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, string given in %s on line %d +bool(false) + +-- Iteration 21 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, object given in %s on line %d +bool(false) + +-- Iteration 22 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 23 -- +array(5) { + ["Subject"]=> + string(13) "A Sample Test" + ["To"]=> + string(19) "example@example.com" + ["Date"]=> + string(30) "Thu, 1 Jan 1970 00:00:00 +0000" + ["Message-Id"]=> + string(21) "" + ["Received"]=> + array(2) { + [0]=> + string(204) "from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for ; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)" + [1]=> + string(57) "(qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000" + } +} + +-- Iteration 24 -- + +Warning: iconv_mime_decode_headers() expects parameter 2 to be long, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_mime_decode_variation1.phpt b/ext/iconv/tests/iconv_mime_decode_variation1.phpt new file mode 100644 index 0000000000..a42b0de234 --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_variation1.phpt @@ -0,0 +1,183 @@ +--TEST-- +Test iconv_mime_decode() function : usage variations - Pass different data types to header arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_mime_decode() : usage variations *** + +-- Iteration 1 -- +string(1) "0" + +-- Iteration 2 -- +string(1) "1" + +-- Iteration 3 -- +string(5) "12345" + +-- Iteration 4 -- +string(5) "-2345" + +-- Iteration 5 -- +string(4) "10.5" + +-- Iteration 6 -- +string(5) "-10.5" + +-- Iteration 7 -- +string(12) "123456789000" + +-- Iteration 8 -- +string(13) "1.23456789E-9" + +-- Iteration 9 -- +string(3) "0.5" + +-- Iteration 10 -- +string(0) "" + +-- Iteration 11 -- +string(0) "" + +-- Iteration 12 -- +string(1) "1" + +-- Iteration 13 -- +string(0) "" + +-- Iteration 14 -- +string(1) "1" + +-- Iteration 15 -- +string(0) "" + +-- Iteration 16 -- +string(0) "" + +-- Iteration 17 -- +string(0) "" + +-- Iteration 18 -- +string(6) "string" + +-- Iteration 19 -- +string(6) "string" + +-- Iteration 20 -- +string(11) "hello world" + +-- Iteration 21 -- +string(14) "Class A object" + +-- Iteration 22 -- +string(0) "" + +-- Iteration 23 -- +string(0) "" + +-- Iteration 24 -- + +Warning: iconv_mime_decode() expects parameter 1 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_mime_decode_variation2.phpt b/ext/iconv/tests/iconv_mime_decode_variation2.phpt new file mode 100644 index 0000000000..1d828227ae --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_variation2.phpt @@ -0,0 +1,195 @@ +--TEST-- +Test iconv_mime_decode() function : usage variations - Pass different data types to mode arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_mime_decode() : usage variations *** + +-- Iteration 1 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 2 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 3 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 4 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 5 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 6 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 7 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 8 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 9 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 10 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 11 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 12 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 13 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 14 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 15 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 16 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, string given in %s on line %d +string(0) "" + +-- Iteration 17 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, string given in %s on line %d +string(0) "" + +-- Iteration 18 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, string given in %s on line %d +string(0) "" + +-- Iteration 19 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, string given in %s on line %d +string(0) "" + +-- Iteration 20 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, string given in %s on line %d +string(0) "" + +-- Iteration 21 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, object given in %s on line %d +string(0) "" + +-- Iteration 22 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 23 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 24 -- + +Warning: iconv_mime_decode() expects parameter 2 to be long, resource given in %s on line %d +string(0) "" +Done diff --git a/ext/iconv/tests/iconv_mime_decode_variation3.phpt b/ext/iconv/tests/iconv_mime_decode_variation3.phpt new file mode 100644 index 0000000000..cd5c719cbb --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_variation3.phpt @@ -0,0 +1,222 @@ +--TEST-- +Test iconv_mime_decode() function : usage variations - Pass different data types to charset arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_mime_decode() : usage variations *** + +-- Iteration 1 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `0' is not allowed in %s on line %d +bool(false) + +-- Iteration 2 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `1' is not allowed in %s on line %d +bool(false) + +-- Iteration 3 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `12345' is not allowed in %s on line %d +bool(false) + +-- Iteration 4 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `-2345' is not allowed in %s on line %d +bool(false) + +-- Iteration 5 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `10.5' is not allowed in %s on line %d +bool(false) + +-- Iteration 6 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `-10.5' is not allowed in %s on line %d +bool(false) + +-- Iteration 7 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `123456789000' is not allowed in %s on line %d +bool(false) + +-- Iteration 8 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `1.23456789E-9' is not allowed in %s on line %d +bool(false) + +-- Iteration 9 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `0.5' is not allowed in %s on line %d +bool(false) + +-- Iteration 10 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 11 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 12 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `1' is not allowed in %s on line %d +bool(false) + +-- Iteration 13 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 14 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `1' is not allowed in %s on line %d +bool(false) + +-- Iteration 15 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 16 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 17 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 18 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `string' is not allowed in %s on line %d +bool(false) + +-- Iteration 19 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `string' is not allowed in %s on line %d +bool(false) + +-- Iteration 20 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `hello world' is not allowed in %s on line %d +bool(false) + +-- Iteration 21 -- + +Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `Class A object' is not allowed in %s on line %d +bool(false) + +-- Iteration 22 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 23 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 24 -- + +Warning: iconv_mime_decode() expects parameter 3 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_set_encoding_error.phpt b/ext/iconv/tests/iconv_set_encoding_error.phpt new file mode 100644 index 0000000000..4ba840067d --- /dev/null +++ b/ext/iconv/tests/iconv_set_encoding_error.phpt @@ -0,0 +1,177 @@ +--TEST-- +Test iconv_set_encoding() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_set_encoding() : error functionality *** + +-- Iteration 1 -- +bool(false) + +-- Iteration 2 -- +bool(false) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- +bool(false) + +-- Iteration 11 -- +bool(false) + +-- Iteration 12 -- +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- +bool(false) + +-- Iteration 15 -- +bool(false) + +-- Iteration 16 -- +bool(false) + +-- Iteration 17 -- +bool(false) + +-- Iteration 18 -- +bool(false) + +-- Iteration 19 -- +bool(false) + +-- Iteration 20 -- +bool(false) + +-- Iteration 21 -- +bool(false) + +-- Iteration 22 -- +bool(false) + +-- Iteration 23 -- +bool(false) + +-- Iteration 24 -- + +Warning: iconv_set_encoding() expects parameter 1 to be string, resource given in %s on line %d +NULL +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_set_encoding_variation.phpt b/ext/iconv/tests/iconv_set_encoding_variation.phpt new file mode 100644 index 0000000000..311a9f93f2 --- /dev/null +++ b/ext/iconv/tests/iconv_set_encoding_variation.phpt @@ -0,0 +1,307 @@ +--TEST-- +Test iconv_set_encoding() function : error functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_set_encoding() : error functionality *** + +-- Iteration 1 -- +bool(true) +bool(true) +bool(true) +string(1) "0" +string(1) "0" +string(1) "0" + +-- Iteration 2 -- +bool(true) +bool(true) +bool(true) +string(1) "1" +string(1) "1" +string(1) "1" + +-- Iteration 3 -- +bool(true) +bool(true) +bool(true) +string(5) "12345" +string(5) "12345" +string(5) "12345" + +-- Iteration 4 -- +bool(true) +bool(true) +bool(true) +string(5) "-2345" +string(5) "-2345" +string(5) "-2345" + +-- Iteration 5 -- +bool(true) +bool(true) +bool(true) +string(4) "10.5" +string(4) "10.5" +string(4) "10.5" + +-- Iteration 6 -- +bool(true) +bool(true) +bool(true) +string(5) "-10.5" +string(5) "-10.5" +string(5) "-10.5" + +-- Iteration 7 -- +bool(true) +bool(true) +bool(true) +string(12) "123456789000" +string(12) "123456789000" +string(12) "123456789000" + +-- Iteration 8 -- +bool(true) +bool(true) +bool(true) +string(13) "1.23456789E-9" +string(13) "1.23456789E-9" +string(13) "1.23456789E-9" + +-- Iteration 9 -- +bool(true) +bool(true) +bool(true) +string(3) "0.5" +string(3) "0.5" +string(3) "0.5" + +-- Iteration 10 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 11 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 12 -- +bool(true) +bool(true) +bool(true) +string(1) "1" +string(1) "1" +string(1) "1" + +-- Iteration 13 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 14 -- +bool(true) +bool(true) +bool(true) +string(1) "1" +string(1) "1" +string(1) "1" + +-- Iteration 15 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 16 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 17 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 18 -- +bool(true) +bool(true) +bool(true) +string(7) "Nothing" +string(7) "Nothing" +string(7) "Nothing" + +-- Iteration 19 -- +bool(true) +bool(true) +bool(true) +string(7) "Nothing" +string(7) "Nothing" +string(7) "Nothing" + +-- Iteration 20 -- +bool(true) +bool(true) +bool(true) +string(7) "Nothing" +string(7) "Nothing" +string(7) "Nothing" + +-- Iteration 21 -- +bool(true) +bool(true) +bool(true) +string(5) "UTF-8" +string(5) "UTF-8" +string(5) "UTF-8" + +-- Iteration 22 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 23 -- +bool(true) +bool(true) +bool(true) +string(0) "" +string(0) "" +string(0) "" + +-- Iteration 24 -- + +Warning: iconv_set_encoding() expects parameter 2 to be string, resource given in %s on line %d +NULL + +Warning: iconv_set_encoding() expects parameter 2 to be string, resource given in %s on line %d +NULL + +Warning: iconv_set_encoding() expects parameter 2 to be string, resource given in %s on line %d +NULL +string(0) "" +string(0) "" +string(0) "" +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strpos_basic.phpt b/ext/iconv/tests/iconv_strpos_basic.phpt new file mode 100644 index 0000000000..1604465f1d --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_basic.phpt @@ -0,0 +1,57 @@ +--TEST-- +Test iconv_strpos() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strpos() : basic functionality*** + +-- ASCII string 1 -- +int(4) + +-- ASCII string 2 -- +bool(false) + +-- Multibyte string 1 -- +int(0) + +-- Multibyte string 2 -- +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strpos_error1.phpt b/ext/iconv/tests/iconv_strpos_error1.phpt new file mode 100644 index 0000000000..232466562c --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_error1.phpt @@ -0,0 +1,50 @@ +--TEST-- +Test iconv_strpos() function : error conditions - Pass incorrect number of args +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strpos() : error conditions *** + +-- Testing iconv_strpos() function with more than expected no. of arguments -- + +Warning: iconv_strpos() expects at most 4 parameters, 5 given in %s on line %d +bool(false) + +-- Testing iconv_strpos() function with less than expected no. of arguments -- + +Warning: iconv_strpos() expects at least 2 parameters, 1 given in %s on line %d +bool(false) +Done diff --git a/ext/iconv/tests/iconv_strpos_variation1.phpt b/ext/iconv/tests/iconv_strpos_variation1.phpt new file mode 100644 index 0000000000..38dc353383 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_variation1.phpt @@ -0,0 +1,182 @@ +--TEST-- +Test iconv_strpos() function : usage variations - pass different data types to $haystack arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +bool(false) + +-- Iteration 2 -- +bool(false) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- +bool(false) + +-- Iteration 11 -- +bool(false) + +-- Iteration 12 -- +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- +bool(false) + +-- Iteration 15 -- +bool(false) + +-- Iteration 16 -- +bool(false) + +-- Iteration 17 -- +bool(false) + +-- Iteration 18 -- +bool(false) + +-- Iteration 19 -- +bool(false) + +-- Iteration 20 -- +bool(false) + +-- Iteration 21 -- +bool(false) + +-- Iteration 22 -- +bool(false) + +-- Iteration 23 -- +bool(false) + +-- Iteration 24 -- + +Warning: iconv_strpos() expects parameter 1 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strpos_variation2.phpt b/ext/iconv/tests/iconv_strpos_variation2.phpt new file mode 100644 index 0000000000..e702ca9869 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_variation2.phpt @@ -0,0 +1,182 @@ +--TEST-- +Test iconv_strpos() function : usage variations - pass different data types as $needle arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +bool(false) + +-- Iteration 2 -- +bool(false) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- +bool(false) + +-- Iteration 11 -- +bool(false) + +-- Iteration 12 -- +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- +bool(false) + +-- Iteration 15 -- +bool(false) + +-- Iteration 16 -- +bool(false) + +-- Iteration 17 -- +bool(false) + +-- Iteration 18 -- +int(0) + +-- Iteration 19 -- +int(0) + +-- Iteration 20 -- +bool(false) + +-- Iteration 21 -- +bool(false) + +-- Iteration 22 -- +bool(false) + +-- Iteration 23 -- +bool(false) + +-- Iteration 24 -- + +Warning: iconv_strpos() expects parameter 2 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strpos_variation3.phpt b/ext/iconv/tests/iconv_strpos_variation3.phpt new file mode 100644 index 0000000000..3c333bfa57 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_variation3.phpt @@ -0,0 +1,201 @@ +--TEST-- +Test iconv_strpos() function : usage variations - pass different data types as $offset arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +int(8) + +-- Iteration 2 -- +int(8) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) + +-- Iteration 7 -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) + +-- Iteration 8 -- +int(8) + +-- Iteration 9 -- +int(8) + +-- Iteration 10 -- +int(8) + +-- Iteration 11 -- +int(8) + +-- Iteration 12 -- +int(8) + +-- Iteration 13 -- +int(8) + +-- Iteration 14 -- +int(8) + +-- Iteration 15 -- +int(8) + +-- Iteration 16 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 17 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 18 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 19 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 20 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 21 -- + +Warning: iconv_strpos() expects parameter 3 to be long, object given in %s on line %d +bool(false) + +-- Iteration 22 -- +int(8) + +-- Iteration 23 -- +int(8) + +-- Iteration 24 -- + +Warning: iconv_strpos() expects parameter 3 to be long, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strpos_variation3_64bit.phpt b/ext/iconv/tests/iconv_strpos_variation3_64bit.phpt new file mode 100644 index 0000000000..1cc8a84f73 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_variation3_64bit.phpt @@ -0,0 +1,199 @@ +--TEST-- +Test iconv_strpos() function : usage variations - pass different data types as $offset arg +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +int(8) + +-- Iteration 2 -- +int(8) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) + +-- Iteration 7 -- +int(8) + +-- Iteration 8 -- +int(8) + +-- Iteration 9 -- +int(8) + +-- Iteration 10 -- +int(8) + +-- Iteration 11 -- +int(8) + +-- Iteration 12 -- +int(8) + +-- Iteration 13 -- +int(8) + +-- Iteration 14 -- +int(8) + +-- Iteration 15 -- +int(8) + +-- Iteration 16 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 17 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 18 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 19 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 20 -- + +Warning: iconv_strpos() expects parameter 3 to be long, string given in %s on line %d +bool(false) + +-- Iteration 21 -- + +Warning: iconv_strpos() expects parameter 3 to be long, object given in %s on line %d +bool(false) + +-- Iteration 22 -- +int(8) + +-- Iteration 23 -- +int(8) + +-- Iteration 24 -- + +Warning: iconv_strpos() expects parameter 3 to be long, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strpos_variation4.phpt b/ext/iconv/tests/iconv_strpos_variation4.phpt new file mode 100644 index 0000000000..43ab3e5781 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_variation4.phpt @@ -0,0 +1,207 @@ +--TEST-- +Test iconv_strpos() function : usage variations - pass different data types as $charset arg +--SKIPIF-- + +--FILE-- + + +--EXPECTF-- +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 2 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 3 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `12345' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 4 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `-2345' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 5 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `10.5' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 6 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `-10.5' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 7 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `123456789000' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 8 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `1.23456789E-9' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 9 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `0.5' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 10 -- +int(7) + +-- Iteration 11 -- +int(7) + +-- Iteration 12 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 13 -- +int(7) + +-- Iteration 14 -- + +Notice: iconv_strpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 15 -- +int(7) + +-- Iteration 16 -- +int(7) + +-- Iteration 17 -- +int(7) + +-- Iteration 18 -- +int(7) + +-- Iteration 19 -- +int(7) + +-- Iteration 20 -- +int(7) + +-- Iteration 21 -- +int(7) + +-- Iteration 22 -- +int(7) + +-- Iteration 23 -- +int(7) + +-- Iteration 24 -- + +Warning: iconv_strpos() expects parameter 4 to be string, resource given in %s on line %d +bool(false) +Done diff --git a/ext/iconv/tests/iconv_strpos_variation5.phpt b/ext/iconv/tests/iconv_strpos_variation5.phpt new file mode 100644 index 0000000000..57a7a90ee4 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos_variation5.phpt @@ -0,0 +1,101 @@ +--TEST-- +Test iconv_strpos() function : usage variations - Pass different integers as $offset argument +--SKIPIF-- + +--FILE-- + + +--EXPECTF-- +*** Testing iconv_strpos() : usage variations *** + +**-- Offset is: -10 --** +-- ASCII String -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) +--Multibyte String -- + +Warning: iconv_strpos(): Offset not contained in string. in %s on line %d +bool(false) + +**-- Offset is: 0 --** +-- ASCII String -- +int(9) +--Multibyte String -- +int(9) + +**-- Offset is: 10 --** +-- ASCII String -- +int(20) +--Multibyte String -- +int(20) + +**-- Offset is: 20 --** +-- ASCII String -- +int(20) +--Multibyte String -- +int(20) + +**-- Offset is: 30 --** +-- ASCII String -- +bool(false) +--Multibyte String -- +bool(false) + +**-- Offset is: 40 --** +-- ASCII String -- +bool(false) +--Multibyte String -- +bool(false) + +**-- Offset is: 50 --** +-- ASCII String -- +bool(false) +--Multibyte String -- +bool(false) + +**-- Offset is: 60 --** +-- ASCII String -- +bool(false) +--Multibyte String -- +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strrpos_basic.phpt b/ext/iconv/tests/iconv_strrpos_basic.phpt new file mode 100644 index 0000000000..e275681057 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos_basic.phpt @@ -0,0 +1,58 @@ +--TEST-- +Test iconv_strrpos() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strrpos() : basic *** + +-- ASCII string 1 -- +int(15) + +-- ASCII string 2 -- +bool(false) + +-- Multibyte string 1 -- +int(20) + +-- Multibyte string 2 -- +bool(false) +Done + diff --git a/ext/iconv/tests/iconv_strrpos_error1.phpt b/ext/iconv/tests/iconv_strrpos_error1.phpt new file mode 100644 index 0000000000..9d185c744d --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos_error1.phpt @@ -0,0 +1,49 @@ +--TEST-- +Test iconv_strrpos() function : error conditions - pass incorrect number of args +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strrpos() : error conditions *** + +-- Testing iconv_strrpos() function with more than expected no. of arguments -- + +Warning: iconv_strrpos() expects at most 3 parameters, 4 given in %s on line %d +bool(false) + +-- Testing iconv_strrpos() function with less than expected no. of arguments -- + +Warning: iconv_strrpos() expects at least 2 parameters, 1 given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strrpos_error2.phpt b/ext/iconv/tests/iconv_strrpos_error2.phpt new file mode 100644 index 0000000000..ea72322807 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos_error2.phpt @@ -0,0 +1,35 @@ +--TEST-- +Test iconv_strrpos() function : error conditions - pass an unknown encoding +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing iconv_strrpos() : error conditions *** + +Notice: iconv_strrpos(): Wrong charset, conversion from `unknown-encoding' to `UCS-4LE' is not allowed in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strrpos_variation1.phpt b/ext/iconv/tests/iconv_strrpos_variation1.phpt new file mode 100644 index 0000000000..e4ed011339 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos_variation1.phpt @@ -0,0 +1,180 @@ +--TEST-- +Test iconv_strrpos() function : usage variations - pass different data types to $haystack arg +--SKIPIF-- + +--FILE-- + + +--EXPECTF-- +*** Testing iconv_strrpos() : usage variations *** + +-- Iteration 1 -- +bool(false) + +-- Iteration 2 -- +bool(false) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- +bool(false) + +-- Iteration 11 -- +bool(false) + +-- Iteration 12 -- +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- +bool(false) + +-- Iteration 15 -- +bool(false) + +-- Iteration 16 -- +bool(false) + +-- Iteration 17 -- +bool(false) + +-- Iteration 18 -- +int(7) + +-- Iteration 19 -- +int(7) + +-- Iteration 20 -- +int(7) + +-- Iteration 21 -- +int(7) + +-- Iteration 22 -- +bool(false) + +-- Iteration 23 -- +bool(false) + +-- Iteration 24 -- + +Warning: iconv_strrpos() expects parameter 1 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strrpos_variation2.phpt b/ext/iconv/tests/iconv_strrpos_variation2.phpt new file mode 100644 index 0000000000..a0001f5269 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos_variation2.phpt @@ -0,0 +1,182 @@ +--TEST-- +Test iconv_strrpos() function : usage variations - Pass different data types to $needle arg +--SKIPIF-- + +--FILE-- + + +--EXPECTF-- +*** Testing iconv_strrpos() : usage variations *** + +-- Iteration 1 -- +bool(false) + +-- Iteration 2 -- +bool(false) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- +bool(false) + +-- Iteration 11 -- +bool(false) + +-- Iteration 12 -- +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- +bool(false) + +-- Iteration 15 -- +bool(false) + +-- Iteration 16 -- +bool(false) + +-- Iteration 17 -- +bool(false) + +-- Iteration 18 -- +int(7) + +-- Iteration 19 -- +int(7) + +-- Iteration 20 -- +int(7) + +-- Iteration 21 -- +int(7) + +-- Iteration 22 -- +bool(false) + +-- Iteration 23 -- +bool(false) + +-- Iteration 24 -- + +Warning: iconv_strrpos() expects parameter 2 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file diff --git a/ext/iconv/tests/iconv_strrpos_variation3.phpt b/ext/iconv/tests/iconv_strrpos_variation3.phpt new file mode 100644 index 0000000000..87a21bd7a4 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos_variation3.phpt @@ -0,0 +1,205 @@ +--TEST-- +Test iconv_strrpos() function : usage variations - pass different data types as $encoding arg +--SKIPIF-- + +--FILE-- + + +--EXPECTF-- +*** Testing iconv_strrpos() : usage variations *** + +-- Iteration 1 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 2 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 3 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `12345' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 4 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `-2345' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 5 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `10.5' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 6 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `-10.5' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 7 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `123456789000' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 8 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `1.23456789E-9' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 9 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `0.5' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 10 -- +int(7) + +-- Iteration 11 -- +int(7) + +-- Iteration 12 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 13 -- +int(7) + +-- Iteration 14 -- + +Notice: iconv_strrpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on line %d +bool(false) + +-- Iteration 15 -- +int(7) + +-- Iteration 16 -- +int(7) + +-- Iteration 17 -- +int(7) + +-- Iteration 18 -- +int(7) + +-- Iteration 19 -- +int(7) + +-- Iteration 20 -- +int(7) + +-- Iteration 21 -- +int(7) + +-- Iteration 22 -- +int(7) + +-- Iteration 23 -- +int(7) + +-- Iteration 24 -- + +Warning: iconv_strrpos() expects parameter 3 to be string, resource given in %s on line %d +bool(false) +Done \ No newline at end of file