From f9b83dc6afde1dbc238c7b7314479c8b1cfbc03b Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Mon, 22 Apr 2013 18:20:43 -0700 Subject: [PATCH] import zend iconv tests --- hphp/test/zend/bad/ext-iconv/bug48289.php | 10 + .../zend/bad/ext-iconv/bug48289.php.expectf | 6 + hphp/test/zend/bad/ext-iconv/bug51250.php | 13 + .../zend/bad/ext-iconv/bug51250.php.expectf | 9 + hphp/test/zend/bad/ext-iconv/bug52211.php | 7 + .../zend/bad/ext-iconv/bug52211.php.expectf | 2 + hphp/test/zend/bad/ext-iconv/bug52941.php | 25 ++ .../zend/bad/ext-iconv/bug52941.php.expectf | 10 + .../ext-iconv/iconv_get_encoding_error.php | 92 +++++ .../iconv_get_encoding_error.php.expectf | 75 ++++ .../iconv_mime_decode_headers_variation1.php | 110 ++++++ ...mime_decode_headers_variation1.php.expectf | 98 +++++ .../iconv_mime_decode_headers_variation2.php | 110 ++++++ ...mime_decode_headers_variation2.php.expectf | 353 ++++++++++++++++++ .../iconv_mime_decode_headers_variation3.php | 113 ++++++ ...mime_decode_headers_variation3.php.expectf | 353 ++++++++++++++++++ .../iconv_mime_decode_variation1.php | 98 +++++ .../iconv_mime_decode_variation1.php.expectf | 75 ++++ .../iconv_mime_decode_variation2.php | 98 +++++ .../iconv_mime_decode_variation2.php.expectf | 81 ++++ .../iconv_mime_decode_variation3.php | 107 ++++++ .../iconv_mime_decode_variation3.php.expectf | 90 +++++ .../ext-iconv/iconv_set_encoding_error.php | 92 +++++ .../iconv_set_encoding_error.php.expectf | 75 ++++ .../iconv_set_encoding_variation.php | 98 +++++ .../iconv_set_encoding_variation.php.expectf | 197 ++++++++++ .../bad/ext-iconv/iconv_strlen_error1.php | 24 ++ .../ext-iconv/iconv_strlen_error1.php.expectf | 10 + .../bad/ext-iconv/iconv_strlen_error2.php | 20 + .../ext-iconv/iconv_strlen_error2.php.expectf | 4 + .../bad/ext-iconv/iconv_strlen_variation1.php | 105 ++++++ .../iconv_strlen_variation1.php.expectf | 78 ++++ .../bad/ext-iconv/iconv_strlen_variation2.php | 96 +++++ .../iconv_strlen_variation2.php.expectf | 86 +++++ .../bad/ext-iconv/iconv_strpos_error1.php | 29 ++ .../ext-iconv/iconv_strpos_error1.php.expectf | 10 + .../bad/ext-iconv/iconv_strpos_error2.php | 20 + .../ext-iconv/iconv_strpos_error2.php.expectf | 4 + .../bad/ext-iconv/iconv_strpos_variation1.php | 97 +++++ .../iconv_strpos_variation1.php.expectf | 75 ++++ .../bad/ext-iconv/iconv_strpos_variation2.php | 97 +++++ .../iconv_strpos_variation2.php.expectf | 75 ++++ .../bad/ext-iconv/iconv_strpos_variation3.php | 97 +++++ .../iconv_strpos_variation3.php.expectf | 84 +++++ .../iconv_strpos_variation3_64bit.php | 97 +++++ .../iconv_strpos_variation3_64bit.php.expectf | 83 ++++ .../bad/ext-iconv/iconv_strpos_variation4.php | 99 +++++ .../iconv_strpos_variation4.php.expectf | 86 +++++ .../bad/ext-iconv/iconv_strrpos_error1.php | 28 ++ .../iconv_strrpos_error1.php.expectf | 10 + .../bad/ext-iconv/iconv_strrpos_error2.php | 21 ++ .../iconv_strrpos_error2.php.expectf | 4 + .../ext-iconv/iconv_strrpos_variation1.php | 94 +++++ .../iconv_strrpos_variation1.php.expectf | 75 ++++ .../ext-iconv/iconv_strrpos_variation2.php | 96 +++++ .../iconv_strrpos_variation2.php.expectf | 75 ++++ .../ext-iconv/iconv_strrpos_variation3.php | 97 +++++ .../iconv_strrpos_variation3.php.expectf | 86 +++++ .../bad/ext-iconv/iconv_substr_error1.php | 28 ++ .../ext-iconv/iconv_substr_error1.php.expectf | 10 + .../bad/ext-iconv/iconv_substr_error2.php | 21 ++ .../ext-iconv/iconv_substr_error2.php.expectf | 4 + hphp/test/zend/good/ext-iconv/bug37176.php | 4 + .../zend/good/ext-iconv/bug37176.php.expectf | 2 + hphp/test/zend/good/ext-iconv/bug37773.php | 3 + .../zend/good/ext-iconv/bug37773.php.expectf | 1 + hphp/test/zend/good/ext-iconv/bug53304.php | 5 + .../zend/good/ext-iconv/bug53304.php.expectf | 2 + .../iconv-charset-length-cve-2007-4840.php | 5 + ...v-charset-length-cve-2007-4840.php.expectf | 4 + hphp/test/zend/good/ext-iconv/iconv003.php | 8 + .../zend/good/ext-iconv/iconv003.php.expectf | 1 + hphp/test/zend/good/ext-iconv/iconv_basic.php | 40 ++ .../good/ext-iconv/iconv_basic.php.expectf | 23 ++ .../ext-iconv/iconv_get_encoding_basic.php | 27 ++ .../iconv_get_encoding_basic.php.expectf | 40 ++ ...me_decode-charset-length-cve-2007-4840.php | 4 + ...e-charset-length-cve-2007-4840.php.expectf | 2 + ...e_headers-charset-length-cve-2007-4840.php | 4 + ...s-charset-length-cve-2007-4840.php.expectf | 2 + ..._encoding-charset-length-cve-2007-4840.php | 6 + ...g-charset-length-cve-2007-4840.php.expectf | 6 + ...nv_strlen-charset-length-cve-2007-4840.php | 4 + ...n-charset-length-cve-2007-4840.php.expectf | 2 + .../test/zend/good/ext-iconv/iconv_strlen.php | 9 + .../good/ext-iconv/iconv_strlen.php.expectf | 4 + .../good/ext-iconv/iconv_strlen_basic.php | 23 ++ .../ext-iconv/iconv_strlen_basic.php.expectf | 8 + ...nv_strpos-charset-length-cve-2007-4840.php | 4 + ...s-charset-length-cve-2007-4840.php.expectf | 2 + .../good/ext-iconv/iconv_strpos_basic.php | 34 ++ .../ext-iconv/iconv_strpos_basic.php.expectf | 14 + .../ext-iconv/iconv_strpos_variation5.php | 37 ++ .../iconv_strpos_variation5.php.expectf | 52 +++ ...v_strrpos-charset-length-cve-2007-4840.php | 4 + ...s-charset-length-cve-2007-4840.php.expectf | 2 + .../good/ext-iconv/iconv_strrpos_basic.php | 34 ++ .../ext-iconv/iconv_strrpos_basic.php.expectf | 14 + ...nv_substr-charset-length-cve-2007-4783.php | 5 + ...r-charset-length-cve-2007-4783.php.expectf | 2 + hphp/tools/import_zend_test.py | 1 - 101 files changed, 4865 insertions(+), 1 deletion(-) create mode 100644 hphp/test/zend/bad/ext-iconv/bug48289.php create mode 100644 hphp/test/zend/bad/ext-iconv/bug48289.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/bug51250.php create mode 100644 hphp/test/zend/bad/ext-iconv/bug51250.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/bug52211.php create mode 100644 hphp/test/zend/bad/ext-iconv/bug52211.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/bug52941.php create mode 100644 hphp/test/zend/bad/ext-iconv/bug52941.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php.expectf create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php create mode 100644 hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/bug37176.php create mode 100644 hphp/test/zend/good/ext-iconv/bug37176.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/bug37773.php create mode 100644 hphp/test/zend/good/ext-iconv/bug37773.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/bug53304.php create mode 100644 hphp/test/zend/good/ext-iconv/bug53304.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv003.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv003.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_basic.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strlen.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strlen.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php create mode 100644 hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php.expectf diff --git a/hphp/test/zend/bad/ext-iconv/bug48289.php b/hphp/test/zend/bad/ext-iconv/bug48289.php new file mode 100644 index 000000000..abffd1d0e --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug48289.php @@ -0,0 +1,10 @@ + 'Q', + 'input-charset' => 'UTF-8', + 'output-charset' => 'UTF-8', + 'line-length' => 30, +); + +echo iconv_mime_encode('Subject', $text, $options); \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug48289.php.expectf b/hphp/test/zend/bad/ext-iconv/bug48289.php.expectf new file mode 100644 index 000000000..92d7ebafb --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug48289.php.expectf @@ -0,0 +1,6 @@ +Subject: =?UTF-8?Q?=E3=83=86?= + =?UTF-8?Q?=E3=82=B9?= + =?UTF-8?Q?=E3=83=88?= + =?UTF-8?Q?=E3=83=86?= + =?UTF-8?Q?=E3=82=B9?= + =?UTF-8?Q?=E3=83=88?= \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug51250.php b/hphp/test/zend/bad/ext-iconv/bug51250.php new file mode 100644 index 000000000..eac284a86 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug51250.php @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug51250.php.expectf b/hphp/test/zend/bad/ext-iconv/bug51250.php.expectf new file mode 100644 index 000000000..a427de0f4 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug51250.php.expectf @@ -0,0 +1,9 @@ +string(23) "Legal encoded-word: * ." +string(23) "Legal encoded-word: * ." +string(24) "Illegal encoded-word: ." +string(23) "Illegal encoded-word: ." +string(23) "Legal encoded-word: * ." +string(23) "Legal encoded-word: * ." +string(24) "Illegal encoded-word: ." +HipHop Notice: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug52211.php b/hphp/test/zend/bad/ext-iconv/bug52211.php new file mode 100644 index 000000000..bdb6fb57a --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug52211.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug52211.php.expectf b/hphp/test/zend/bad/ext-iconv/bug52211.php.expectf new file mode 100644 index 000000000..2a3b009e2 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug52211.php.expectf @@ -0,0 +1,2 @@ +HipHop Notice: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug52941.php b/hphp/test/zend/bad/ext-iconv/bug52941.php new file mode 100644 index 000000000..cdde7127e --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug52941.php @@ -0,0 +1,25 @@ + +HEADERS; + +$decoded = iconv_mime_decode_headers($headers, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8'); + +var_dump($decoded['From']); +var_dump($decoded['Subject']); +var_dump($decoded['X-Foo']); +var_dump($decoded['X-Bar']); +var_dump($decoded['To']); + +$decoded = iconv_mime_decode_headers($headers, ICONV_MIME_DECODE_CONTINUE_ON_ERROR | ICONV_MIME_DECODE_STRICT, 'UTF-8'); + +var_dump($decoded['From']); +var_dump($decoded['Subject']); +var_dump($decoded['X-Foo']); +var_dump($decoded['X-Bar']); +var_dump($decoded['To']); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/bug52941.php.expectf b/hphp/test/zend/bad/ext-iconv/bug52941.php.expectf new file mode 100644 index 000000000..66e74f0bc --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/bug52941.php.expectf @@ -0,0 +1,10 @@ +string(17) "" +string(%d) "%s" +string(%d) "%sFoo" +string(%d) "%sFoo" +string(18) "" +string(17) "" +string(%d) "%s" +string(%d) "%sFoo" +string(%d) "%sFoo" +string(18) "" \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php b/hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php new file mode 100644 index 000000000..9259749f9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php @@ -0,0 +1,92 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php.expectf new file mode 100644 index 000000000..260eaadd9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_get_encoding_error.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +NULL +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php new file mode 100644 index 000000000..9c407b267 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php @@ -0,0 +1,110 @@ + +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 = << \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php.expectf new file mode 100644 index 000000000..5a8967ca9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation1.php.expectf @@ -0,0 +1,98 @@ +*** 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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php new file mode 100644 index 000000000..5fcfc354c --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php @@ -0,0 +1,110 @@ + +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 = << \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php.expectf new file mode 100644 index 000000000..250765f58 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation2.php.expectf @@ -0,0 +1,353 @@ +*** 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 -- +HipHop Warning: %a +bool(false) + +-- Iteration 17 -- +HipHop Warning: %a +bool(false) + +-- Iteration 18 -- +HipHop Warning: %a +bool(false) + +-- Iteration 19 -- +HipHop Warning: %a +bool(false) + +-- Iteration 20 -- +HipHop Warning: %a +bool(false) + +-- Iteration 21 -- +HipHop Warning: %a +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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php new file mode 100644 index 000000000..740ee398f --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php @@ -0,0 +1,113 @@ + +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 = << \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php.expectf new file mode 100644 index 000000000..250765f58 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_headers_variation3.php.expectf @@ -0,0 +1,353 @@ +*** 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 -- +HipHop Warning: %a +bool(false) + +-- Iteration 17 -- +HipHop Warning: %a +bool(false) + +-- Iteration 18 -- +HipHop Warning: %a +bool(false) + +-- Iteration 19 -- +HipHop Warning: %a +bool(false) + +-- Iteration 20 -- +HipHop Warning: %a +bool(false) + +-- Iteration 21 -- +HipHop Warning: %a +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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php new file mode 100644 index 000000000..be6eeea3b --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php @@ -0,0 +1,98 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php.expectf new file mode 100644 index 000000000..f54fb75ae --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation1.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php new file mode 100644 index 000000000..7729de310 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php @@ -0,0 +1,98 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php.expectf new file mode 100644 index 000000000..ccb1420e3 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation2.php.expectf @@ -0,0 +1,81 @@ +*** 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 -- +HipHop Warning: %a +string(0) "" + +-- Iteration 17 -- +HipHop Warning: %a +string(0) "" + +-- Iteration 18 -- +HipHop Warning: %a +string(0) "" + +-- Iteration 19 -- +HipHop Warning: %a +string(0) "" + +-- Iteration 20 -- +HipHop Warning: %a +string(0) "" + +-- Iteration 21 -- +HipHop Warning: %a +string(0) "" + +-- Iteration 22 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 23 -- +string(52) "5375626a6563743a205072c3bc66756e67205072c3bc66756e67" + +-- Iteration 24 -- +HipHop Warning: %a +string(0) "" +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php new file mode 100644 index 000000000..dce8f883f --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php @@ -0,0 +1,107 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php.expectf new file mode 100644 index 000000000..b600261d5 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_mime_decode_variation3.php.expectf @@ -0,0 +1,90 @@ +*** Testing iconv_mime_decode() : usage variations *** + +-- Iteration 1 -- +HipHop Notice: %a +bool(false) + +-- Iteration 2 -- +HipHop Notice: %a +bool(false) + +-- Iteration 3 -- +HipHop Notice: %a +bool(false) + +-- Iteration 4 -- +HipHop Notice: %a +bool(false) + +-- Iteration 5 -- +HipHop Notice: %a +bool(false) + +-- Iteration 6 -- +HipHop Notice: %a +bool(false) + +-- Iteration 7 -- +HipHop Notice: %a +bool(false) + +-- Iteration 8 -- +HipHop Notice: %a +bool(false) + +-- Iteration 9 -- +HipHop Notice: %a +bool(false) + +-- Iteration 10 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 11 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 12 -- +HipHop Notice: %a +bool(false) + +-- Iteration 13 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 14 -- +HipHop Notice: %a +bool(false) + +-- Iteration 15 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 16 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 17 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 18 -- +HipHop Notice: %a +bool(false) + +-- Iteration 19 -- +HipHop Notice: %a +bool(false) + +-- Iteration 20 -- +HipHop Notice: %a +bool(false) + +-- Iteration 21 -- +HipHop Notice: %a +bool(false) + +-- Iteration 22 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 23 -- +string(44) "5375626a6563743a20412053616d706c652054657374" + +-- Iteration 24 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php new file mode 100644 index 000000000..b01a727e7 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php @@ -0,0 +1,92 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php.expectf new file mode 100644 index 000000000..d25c761b9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_error.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +NULL +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php new file mode 100644 index 000000000..45db8d8a0 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php @@ -0,0 +1,98 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php.expectf new file mode 100644 index 000000000..e4f8011be --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_set_encoding_variation.php.expectf @@ -0,0 +1,197 @@ +*** 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 -- +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +string(0) "" +string(0) "" +string(0) "" +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php new file mode 100644 index 000000000..3b9cb8228 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php @@ -0,0 +1,24 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php.expectf new file mode 100644 index 000000000..c1a3bd7f4 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error1.php.expectf @@ -0,0 +1,10 @@ +*** Testing iconv_strlen() : error conditions *** + +-- Testing iconv_strlen() function with Zero arguments -- +HipHop Warning: %a +bool(false) + +-- Testing iconv_strlen() function with more than expected no. of arguments -- +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php new file mode 100644 index 000000000..ec2ddcd72 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php @@ -0,0 +1,20 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php.expectf new file mode 100644 index 000000000..b52e9783e --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_error2.php.expectf @@ -0,0 +1,4 @@ +*** Testing iconv_strlen() : error *** +HipHop Notice: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php new file mode 100644 index 000000000..8860326c9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php @@ -0,0 +1,105 @@ + 0, + 'int 1' => 1, + 'int 12345' => 12345, + 'int -12345' => -12345, + + // float data +/*5*/ + 'float 10.5' => 10.5, + 'float -10.5' => -10.5, + 'float 12.3456789000e10' => 12.3456789000e10, + 'float 12.3456789000e-10' => 12.3456789000e-10, + 'float .5' => .5, + + // null data +/*10*/ + 'uppercase NULL' => NULL, + 'lowercase null' => null, + + // boolean data +/*12*/ + 'lowercase true' => true, + 'lowercase false' =>false, + 'uppercase TRUE' =>TRUE, + 'uppercase FALSE' =>FALSE, + + // empty data +/*16*/ + 'empty string DQ' => "", + 'empty string SQ' => '', + + // string data +/*18*/ + 'string DQ' => "string", + 'string SQ' => 'string', + 'mixed case string' => "sTrInG", + 'heredoc' => $heredoc, + + // object data +/*21*/ + 'instance of class' => new classA(), + + // undefined data +/*22*/ + 'undefined var' => @$undefined_var, + + // unset data +/*23*/ + 'unset var' => @$unset_var, + + // resource variable +/*24*/ + 'resource' => $fp +); + +// loop through each element of $inputs to check the behavior of iconv_strlen() +$iterator = 1; +foreach($inputs as $key =>$value) { + echo "\n--$key--\n"; + var_dump( iconv_strlen($value, $encoding)); + $iterator++; +}; + +fclose($fp); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php.expectf new file mode 100644 index 000000000..0e1871708 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation1.php.expectf @@ -0,0 +1,78 @@ +*** Testing iconv_strlen() : usage variations *** + +--int 0-- +int(1) + +--int 1-- +int(1) + +--int 12345-- +int(5) + +--int -12345-- +int(6) + +--float 10.5-- +int(4) + +--float -10.5-- +int(5) + +--float 12.3456789000e10-- +int(12) + +--float 12.3456789000e-10-- +int(13) + +--float .5-- +int(3) + +--uppercase NULL-- +int(0) + +--lowercase null-- +int(0) + +--lowercase true-- +int(1) + +--lowercase false-- +int(0) + +--uppercase TRUE-- +int(1) + +--uppercase FALSE-- +int(0) + +--empty string DQ-- +int(0) + +--empty string SQ-- +int(0) + +--string DQ-- +int(6) + +--string SQ-- +int(6) + +--mixed case string-- +int(6) + +--heredoc-- +int(11) + +--instance of class-- +int(14) + +--undefined var-- +int(0) + +--unset var-- +int(0) + +--resource-- +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php new file mode 100644 index 000000000..ddeff40c4 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php @@ -0,0 +1,96 @@ + diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php.expectf new file mode 100644 index 000000000..2e44032fc --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strlen_variation2.php.expectf @@ -0,0 +1,86 @@ +*** Testing iconv_strlen() : usage variations *** + +-- Iteration 1 -- +HipHop Notice: %a +bool(false) + +-- Iteration 2 -- +HipHop Notice: %a +bool(false) + +-- Iteration 3 -- +HipHop Notice: %a +bool(false) + +-- Iteration 4 -- +HipHop Notice: %a +bool(false) + +-- Iteration 5 -- +HipHop Notice: %a +bool(false) + +-- Iteration 6 -- +HipHop Notice: %a +bool(false) + +-- Iteration 7 -- +HipHop Notice: %a +bool(false) + +-- Iteration 8 -- +HipHop Notice: %a +bool(false) + +-- Iteration 9 -- +HipHop Notice: %a +bool(false) + +-- Iteration 10 -- +int(12) + +-- Iteration 11 -- +int(12) + +-- Iteration 12 -- +HipHop Notice: %a +bool(false) + +-- Iteration 13 -- +int(12) + +-- Iteration 14 -- +HipHop Notice: %a +bool(false) + +-- Iteration 15 -- +int(12) + +-- Iteration 16 -- +int(12) + +-- Iteration 17 -- +int(12) + +-- Iteration 18 -- +int(12) + +-- Iteration 19 -- +int(12) + +-- Iteration 20 -- +int(12) + +-- Iteration 21 -- +int(12) + +-- Iteration 22 -- +int(12) + +-- Iteration 23 -- +int(12) + +-- Iteration 24 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php new file mode 100644 index 000000000..cdef43ef0 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php @@ -0,0 +1,29 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php.expectf new file mode 100644 index 000000000..a0f29ae6e --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error1.php.expectf @@ -0,0 +1,10 @@ +*** Testing iconv_strpos() : error conditions *** + +-- Testing iconv_strpos() function with more than expected no. of arguments -- +HipHop Warning: %a +bool(false) + +-- Testing iconv_strpos() function with less than expected no. of arguments -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php new file mode 100644 index 000000000..af307fa11 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php.expectf new file mode 100644 index 000000000..a2d692502 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_error2.php.expectf @@ -0,0 +1,4 @@ +*** Testing iconv_strpos() : error conditions *** +HipHop Notice: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php new file mode 100644 index 000000000..807c538d3 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php @@ -0,0 +1,97 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php.expectf new file mode 100644 index 000000000..5e6ecad92 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation1.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php new file mode 100644 index 000000000..29eeb39e7 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php @@ -0,0 +1,97 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php.expectf new file mode 100644 index 000000000..57f33a449 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation2.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php new file mode 100644 index 000000000..5d818497c --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php @@ -0,0 +1,97 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php.expectf new file mode 100644 index 000000000..ad346ff94 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3.php.expectf @@ -0,0 +1,84 @@ +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +int(8) + +-- Iteration 2 -- +int(8) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +HipHop Warning: %a +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +HipHop Warning: %a +bool(false) + +-- Iteration 7 -- +HipHop Warning: %a +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 -- +HipHop Warning: %a +bool(false) + +-- Iteration 17 -- +HipHop Warning: %a +bool(false) + +-- Iteration 18 -- +HipHop Warning: %a +bool(false) + +-- Iteration 19 -- +HipHop Warning: %a +bool(false) + +-- Iteration 20 -- +HipHop Warning: %a +bool(false) + +-- Iteration 21 -- +HipHop Warning: %a +bool(false) + +-- Iteration 22 -- +int(8) + +-- Iteration 23 -- +int(8) + +-- Iteration 24 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php new file mode 100644 index 000000000..5d818497c --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php @@ -0,0 +1,97 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php.expectf new file mode 100644 index 000000000..ad3df0ca3 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation3_64bit.php.expectf @@ -0,0 +1,83 @@ +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +int(8) + +-- Iteration 2 -- +int(8) + +-- Iteration 3 -- +bool(false) + +-- Iteration 4 -- +HipHop Warning: %a +bool(false) + +-- Iteration 5 -- +bool(false) + +-- Iteration 6 -- +HipHop Warning: %a +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 -- +HipHop Warning: %a +bool(false) + +-- Iteration 17 -- +HipHop Warning: %a +bool(false) + +-- Iteration 18 -- +HipHop Warning: %a +bool(false) + +-- Iteration 19 -- +HipHop Warning: %a +bool(false) + +-- Iteration 20 -- +HipHop Warning: %a +bool(false) + +-- Iteration 21 -- +HipHop Warning: %a +bool(false) + +-- Iteration 22 -- +int(8) + +-- Iteration 23 -- +int(8) + +-- Iteration 24 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php new file mode 100644 index 000000000..1351a828b --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php @@ -0,0 +1,99 @@ + diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php.expectf new file mode 100644 index 000000000..d658dd2d7 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strpos_variation4.php.expectf @@ -0,0 +1,86 @@ +*** Testing iconv_strpos() : usage variations *** + +-- Iteration 1 -- +HipHop Notice: %a +bool(false) + +-- Iteration 2 -- +HipHop Notice: %a +bool(false) + +-- Iteration 3 -- +HipHop Notice: %a +bool(false) + +-- Iteration 4 -- +HipHop Notice: %a +bool(false) + +-- Iteration 5 -- +HipHop Notice: %a +bool(false) + +-- Iteration 6 -- +HipHop Notice: %a +bool(false) + +-- Iteration 7 -- +HipHop Notice: %a +bool(false) + +-- Iteration 8 -- +HipHop Notice: %a +bool(false) + +-- Iteration 9 -- +HipHop Notice: %a +bool(false) + +-- Iteration 10 -- +int(7) + +-- Iteration 11 -- +int(7) + +-- Iteration 12 -- +HipHop Notice: %a +bool(false) + +-- Iteration 13 -- +int(7) + +-- Iteration 14 -- +HipHop Notice: %a +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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php new file mode 100644 index 000000000..020d854f2 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php.expectf new file mode 100644 index 000000000..a089fed9a --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error1.php.expectf @@ -0,0 +1,10 @@ +*** Testing iconv_strrpos() : error conditions *** + +-- Testing iconv_strrpos() function with more than expected no. of arguments -- +HipHop Warning: %a +bool(false) + +-- Testing iconv_strrpos() function with less than expected no. of arguments -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php new file mode 100644 index 000000000..e97605298 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php.expectf new file mode 100644 index 000000000..1032974c0 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_error2.php.expectf @@ -0,0 +1,4 @@ +*** Testing iconv_strrpos() : error conditions *** +HipHop Notice: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php new file mode 100644 index 000000000..4398d6b01 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php @@ -0,0 +1,94 @@ + diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php.expectf new file mode 100644 index 000000000..f2b6d769f --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation1.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php new file mode 100644 index 000000000..e546edebf --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php @@ -0,0 +1,96 @@ + diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php.expectf new file mode 100644 index 000000000..f2b6d769f --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation2.php.expectf @@ -0,0 +1,75 @@ +*** 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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php new file mode 100644 index 000000000..475329cb9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php @@ -0,0 +1,97 @@ + diff --git a/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php.expectf new file mode 100644 index 000000000..81118908d --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_strrpos_variation3.php.expectf @@ -0,0 +1,86 @@ +*** Testing iconv_strrpos() : usage variations *** + +-- Iteration 1 -- +HipHop Notice: %a +bool(false) + +-- Iteration 2 -- +HipHop Notice: %a +bool(false) + +-- Iteration 3 -- +HipHop Notice: %a +bool(false) + +-- Iteration 4 -- +HipHop Notice: %a +bool(false) + +-- Iteration 5 -- +HipHop Notice: %a +bool(false) + +-- Iteration 6 -- +HipHop Notice: %a +bool(false) + +-- Iteration 7 -- +HipHop Notice: %a +bool(false) + +-- Iteration 8 -- +HipHop Notice: %a +bool(false) + +-- Iteration 9 -- +HipHop Notice: %a +bool(false) + +-- Iteration 10 -- +int(7) + +-- Iteration 11 -- +int(7) + +-- Iteration 12 -- +HipHop Notice: %a +bool(false) + +-- Iteration 13 -- +int(7) + +-- Iteration 14 -- +HipHop Notice: %a +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 -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php b/hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php new file mode 100644 index 000000000..1fc9924b9 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php.expectf new file mode 100644 index 000000000..afee92997 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_substr_error1.php.expectf @@ -0,0 +1,10 @@ +*** Testing iconv_substr() : error conditions *** + +-- Testing iconv_substr() function with more than expected no. of arguments -- +HipHop Warning: %a +bool(false) + +-- Testing iconv_substr() function with less than expected no. of arguments -- +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php b/hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php new file mode 100644 index 000000000..18e5215a5 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php.expectf b/hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php.expectf new file mode 100644 index 000000000..3f953fe14 --- /dev/null +++ b/hphp/test/zend/bad/ext-iconv/iconv_substr_error2.php.expectf @@ -0,0 +1,4 @@ +*** Testing iconv_substr() : error conditions *** +HipHop Notice: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/bug37176.php b/hphp/test/zend/good/ext-iconv/bug37176.php new file mode 100644 index 000000000..790fd9ecc --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/bug37176.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/bug37176.php.expectf b/hphp/test/zend/good/ext-iconv/bug37176.php.expectf new file mode 100644 index 000000000..e06a4a809 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/bug37176.php.expectf @@ -0,0 +1,2 @@ +int(1) +int(2) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/bug37773.php b/hphp/test/zend/good/ext-iconv/bug37773.php new file mode 100644 index 000000000..08be91c62 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/bug37773.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/bug37773.php.expectf b/hphp/test/zend/good/ext-iconv/bug37773.php.expectf new file mode 100644 index 000000000..b76cd2c2c --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/bug37773.php.expectf @@ -0,0 +1 @@ +string(1) "x" \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/bug53304.php b/hphp/test/zend/good/ext-iconv/bug53304.php new file mode 100644 index 000000000..23ad6311f --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/bug53304.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/bug53304.php.expectf b/hphp/test/zend/good/ext-iconv/bug53304.php.expectf new file mode 100644 index 000000000..b7d0fa03d --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/bug53304.php.expectf @@ -0,0 +1,2 @@ +Nachricht über Kontaktformular www.inexio.net +Nachricht über Kontaktformular www.inexio.net \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..4982486b3 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..d4531bf89 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,4 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv003.php b/hphp/test/zend/good/ext-iconv/iconv003.php new file mode 100644 index 000000000..7cdb20e5f --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv003.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv003.php.expectf b/hphp/test/zend/good/ext-iconv/iconv003.php.expectf new file mode 100644 index 000000000..0f0c913d5 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv003.php.expectf @@ -0,0 +1 @@ +success \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_basic.php b/hphp/test/zend/good/ext-iconv/iconv_basic.php new file mode 100644 index 000000000..2577b973c --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_basic.php @@ -0,0 +1,40 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_basic.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_basic.php.expectf new file mode 100644 index 000000000..c1a51f9fa --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_basic.php.expectf @@ -0,0 +1,23 @@ +*** 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/hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php b/hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php new file mode 100644 index 000000000..b35570b0b --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php.expectf new file mode 100644 index 000000000..53e645d8b --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_get_encoding_basic.php.expectf @@ -0,0 +1,40 @@ +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" +} +bool(false) +array(3) { + ["input_encoding"]=> + string(5) "UTF-8" + ["output_encoding"]=> + string(5) "UTF-8" + ["internal_encoding"]=> + string(5) "UTF-8" +} +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" +} +bool(false) +array(3) { + ["input_encoding"]=> + string(10) "ISO-8859-1" + ["output_encoding"]=> + string(10) "ISO-8859-1" + ["internal_encoding"]=> + string(10) "ISO-8859-1" +} \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..53c147286 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..32195d571 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_mime_decode-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,2 @@ +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..5e278b62a --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..32195d571 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_mime_decode_headers-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,2 @@ +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..247319eec --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..b9f09a619 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_set_encoding-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,6 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..09af98bda --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..32195d571 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strlen-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,2 @@ +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strlen.php b/hphp/test/zend/good/ext-iconv/iconv_strlen.php new file mode 100644 index 000000000..a75e1b039 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strlen.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strlen.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strlen.php.expectf new file mode 100644 index 000000000..76544feb7 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strlen.php.expectf @@ -0,0 +1,4 @@ +int(3) +int(3) +int(13) +int(10) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php b/hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php new file mode 100644 index 000000000..fb9a5fcf8 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php @@ -0,0 +1,23 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php.expectf new file mode 100644 index 000000000..dadfa5932 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strlen_basic.php.expectf @@ -0,0 +1,8 @@ +*** Testing iconv_strlen() : basic functionality*** + +-- ASCII String -- +int(7) + +-- Multibyte String -- +int(21) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..3840ffa57 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..32195d571 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strpos-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,2 @@ +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php b/hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php new file mode 100644 index 000000000..81fe8a43f --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php.expectf new file mode 100644 index 000000000..60dc89e64 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strpos_basic.php.expectf @@ -0,0 +1,14 @@ +*** 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/hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php b/hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php new file mode 100644 index 000000000..149bd730c --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php @@ -0,0 +1,37 @@ + diff --git a/hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php.expectf new file mode 100644 index 000000000..9e1fad78f --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strpos_variation5.php.expectf @@ -0,0 +1,52 @@ +*** Testing iconv_strpos() : usage variations *** + +**-- Offset is: -10 --** +-- ASCII String -- +HipHop Warning: %a +bool(false) +--Multibyte String -- +HipHop Warning: %a +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/hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php b/hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php new file mode 100644 index 000000000..dee13955a --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php.expectf new file mode 100644 index 000000000..32195d571 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strrpos-charset-length-cve-2007-4840.php.expectf @@ -0,0 +1,2 @@ +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php b/hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php new file mode 100644 index 000000000..ceb5fd208 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php.expectf new file mode 100644 index 000000000..6928a6956 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_strrpos_basic.php.expectf @@ -0,0 +1,14 @@ +*** 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 \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php b/hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php new file mode 100644 index 000000000..c8edf46cc --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php.expectf b/hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php.expectf new file mode 100644 index 000000000..32195d571 --- /dev/null +++ b/hphp/test/zend/good/ext-iconv/iconv_substr-charset-length-cve-2007-4783.php.expectf @@ -0,0 +1,2 @@ +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/tools/import_zend_test.py b/hphp/tools/import_zend_test.py index 9ff94618d..de26df034 100755 --- a/hphp/tools/import_zend_test.py +++ b/hphp/tools/import_zend_test.py @@ -103,7 +103,6 @@ no_import = ( # not imported yet, but will be '/ext/exif', '/ext/gd', - '/ext/iconv', '/ext/imap', '/ext/intl', '/ext/json',