diff --git a/hphp/test/zend/bad/ext-imap/bug31142_1.php b/hphp/test/zend/bad/ext-imap/bug31142_1.php new file mode 100644 index 000000000..c8f09d0bf --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug31142_1.php @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug31142_1.php.expectf b/hphp/test/zend/bad/ext-imap/bug31142_1.php.expectf new file mode 100644 index 000000000..31dee1a61 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug31142_1.php.expectf @@ -0,0 +1,22 @@ +From: joe@example.com +To: foo@example.com +cc: bar@example.com +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +--%s +Content-Type: APPLICATION/octet-stream +Content-Transfer-Encoding: BASE64 +Content-Description: some file + +QUJD + +--%s +Content-Type: TEXT/plain; CHARSET=US-ASCII +Content-Description: description3 + +contents.data3 + + + +--%s-- \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug31142_2.php b/hphp/test/zend/bad/ext-imap/bug31142_2.php new file mode 100644 index 000000000..d0e1d63e8 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug31142_2.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug31142_2.php.expectf b/hphp/test/zend/bad/ext-imap/bug31142_2.php.expectf new file mode 100644 index 000000000..c5402e7a7 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug31142_2.php.expectf @@ -0,0 +1,6 @@ +From: host@domain.com +MIME-Version: 1.0 +Content-Type: TEXT/plain; CHARSET=iso-8859-2 +Content-Transfer-Encoding: QUOTED-PRINTABLE + +asn =C5=99kl \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug32589.php b/hphp/test/zend/bad/ext-imap/bug32589.php new file mode 100644 index 000000000..7072637dd --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug32589.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug32589.php.expectf b/hphp/test/zend/bad/ext-imap/bug32589.php.expectf new file mode 100644 index 000000000..b8052a062 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug32589.php.expectf @@ -0,0 +1,9 @@ +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +%s +Content-Type: TEXT/plain; CHARSET=ISO-8859-2 +Content-Description: text_message + +hello +%s \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug35669.php b/hphp/test/zend/bad/ext-imap/bug35669.php new file mode 100644 index 000000000..ffcbc1667 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug35669.php @@ -0,0 +1,35 @@ +'; + $envelope["to"] = 'The bad smurf '; + $envelope['date'] = 'Wed, 04 Jan 2006 19:24:43 -0500'; + + $multipart["type"] = TYPEMULTIPART; + $multipart["subtype"] = "MIXED"; + $body[] = $multipart; //add multipart stuff + + $textpart["type"] = TYPEMULTIPART; + $textpart["subtype"] = "ALTERNATIVE"; + $body[] = $textpart; //add body part + + $plain["type"] = TYPETEXT; + $plain["subtype"] = "PLAIN"; + $plain["charset"] = "iso-8859-1"; + $plain["encoding"] = ENCQUOTEDPRINTABLE; + $plain["description"] = "Plaintype part of message"; + $plain['disposition'] = "inline"; + $plain["contents.data"] = 'See mom, it will crash'; + + $body[] = $plain; //next add plain text part + + $html["type"] = TYPETEXT; + $html["subtype"] = "HTML"; + $html["charset"] = "iso-8859-1"; + $html["encoding"] = ENCQUOTEDPRINTABLE; + $html["description"] = "HTML part of message"; + $html['disposition'] = "inline"; + $html["contents.data"] = 'See mom, it will crash'; + + $body[] = $html; + + echo imap_mail_compose($envelope, $body); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug35669.php.expectf b/hphp/test/zend/bad/ext-imap/bug35669.php.expectf new file mode 100644 index 000000000..0c66ade60 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug35669.php.expectf @@ -0,0 +1,23 @@ +Date: Wed, 04 Jan 2006 19:24:43 -0500 +From: Santa +To: The bad smurf +MIME-Version: 1.0 +Content-Type: MULTIPART/MIXED; BOUNDARY="%s" + +--%s +Content-Type: TEXT/ALTERNATIVE; CHARSET=US-ASCII + + +--%s +Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1 +Content-Transfer-Encoding: QUOTED-PRINTABLE +Content-Description: Plaintype part of message + +See mom, it will crash +--%s +Content-Type: TEXT/HTML; CHARSET=iso-8859-1 +Content-Transfer-Encoding: QUOTED-PRINTABLE +Content-Description: HTML part of message + +See mom, it will crash +--%s-- \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug40854.php b/hphp/test/zend/bad/ext-imap/bug40854.php new file mode 100644 index 000000000..28b85f6c7 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug40854.php @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug40854.php.expectf b/hphp/test/zend/bad/ext-imap/bug40854.php.expectf new file mode 100644 index 000000000..e02a5813c --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug40854.php.expectf @@ -0,0 +1,22 @@ +From: joe@example.com +To: foo@example.com +cc: bar@example.com +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +--%s +Content-Type: APPLICATION/octet-stream +Content-Transfer-Encoding: BASE64 +Content-Description: a.txt + + + +--%s +Content-Type: TEXT/plain; CHARSET=US-ASCII +Content-Description: description3 + +contents.data3 + + + +--%s-- \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug45705_1.php b/hphp/test/zend/bad/ext-imap/bug45705_1.php new file mode 100644 index 000000000..42ab40431 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug45705_1.php @@ -0,0 +1,8 @@ +'; +var_dump($address); +imap_rfc822_parse_adrlist($address, null); +var_dump($address); + +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug45705_1.php.expectf b/hphp/test/zend/bad/ext-imap/bug45705_1.php.expectf new file mode 100644 index 000000000..6ce4fcb0b --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug45705_1.php.expectf @@ -0,0 +1,2 @@ +string(27) "John Doe " +string(27) "John Doe " \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug45705_2.php b/hphp/test/zend/bad/ext-imap/bug45705_2.php new file mode 100644 index 000000000..9140d1ba1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug45705_2.php @@ -0,0 +1,15 @@ + 'John Doe ', + 'from' => 'John Doe ', + 'reply_to' => 'John Doe ', + 'to' => 'John Doe ', + 'cc' => 'John Doe ', + 'bcc' => 'John Doe ', +); + +var_dump($envelope); +imap_mail_compose($envelope, array(1 => array())); +var_dump($envelope); + +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug45705_2.php.expectf b/hphp/test/zend/bad/ext-imap/bug45705_2.php.expectf new file mode 100644 index 000000000..f7de56860 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug45705_2.php.expectf @@ -0,0 +1,28 @@ +array(6) { + ["return_path"]=> + string(27) "John Doe " + ["from"]=> + string(27) "John Doe " + ["reply_to"]=> + string(27) "John Doe " + ["to"]=> + string(27) "John Doe " + ["cc"]=> + string(27) "John Doe " + ["bcc"]=> + string(27) "John Doe " +} +array(6) { + ["return_path"]=> + string(27) "John Doe " + ["from"]=> + string(27) "John Doe " + ["reply_to"]=> + string(27) "John Doe " + ["to"]=> + string(27) "John Doe " + ["cc"]=> + string(27) "John Doe " + ["bcc"]=> + string(27) "John Doe " +} \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug46918.php b/hphp/test/zend/bad/ext-imap/bug46918.php new file mode 100644 index 000000000..a99425ca3 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug46918.php @@ -0,0 +1,14 @@ +, + shuf6@example.ac.uk, + blobby, + "ian,eiloart", + <@example.com:foo@example.ac.uk>, + foo@#, + ian@-example.com, + ian@one@two'; +$add_arr = imap_rfc822_parse_adrlist($adds, 'example.com'); +var_export($add_arr); + +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug46918.php.expectf b/hphp/test/zend/bad/ext-imap/bug46918.php.expectf new file mode 100644 index 000000000..808d98bf5 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug46918.php.expectf @@ -0,0 +1,51 @@ +array ( + 0 => + stdClass::__set_state(array( + 'mailbox' => 'iane', + 'host' => 'example.ac.uk', + 'personal' => 'ian eiloart', + )), + 1 => + stdClass::__set_state(array( + 'mailbox' => 'shuf6', + 'host' => 'example.ac.uk', + )), + 2 => + stdClass::__set_state(array( + 'mailbox' => 'blobby', + 'host' => 'example.com', + )), + 3 => + stdClass::__set_state(array( + 'mailbox' => 'ian', + 'host' => 'example.ac.uk', + 'personal' => 'ian,eiloart', + )), + 4 => + stdClass::__set_state(array( + 'mailbox' => 'foo', + 'host' => 'example.ac.uk', + 'adl' => '@example.com', + )), + 5 => + stdClass::__set_state(array( + 'mailbox' => 'foo', + 'host' => '#', + )), + 6 => + stdClass::__set_state(array( + 'mailbox' => 'ian', + 'host' => '-example.com', + )), + 7 => + stdClass::__set_state(array( + 'mailbox' => 'ian', + 'host' => 'one', + )), + 8 => + stdClass::__set_state(array( + 'mailbox' => 'UNEXPECTED_DATA_AFTER_ADDRESS', + 'host' => '.SYNTAX-ERROR.', + )), +) +HipHop Notice: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug53377.php b/hphp/test/zend/bad/ext-imap/bug53377.php new file mode 100644 index 000000000..0b14bf5bf --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug53377.php @@ -0,0 +1,5 @@ + + object(stdClass)#1 (2) { + ["charset"]=> + string(5) "UTF-8" + ["text"]=> + string(3) "€" + } + [1]=> + object(stdClass)#2 (2) { + ["charset"]=> + string(5) "UTF-8" + ["text"]=> + string(3) "€" + } + [2]=> + object(stdClass)#3 (2) { + ["charset"]=> + string(5) "UTF-8" + ["text"]=> + string(3) "€" + } +} \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug63126.php b/hphp/test/zend/bad/ext-imap/bug63126.php new file mode 100644 index 000000000..b919254e9 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug63126.php @@ -0,0 +1,23 @@ + array('DISABLE_AUTHENTICATOR' => array('GSSAPI','NTLM')), + 'String' => array('DISABLE_AUTHENTICATOR' => 'GSSAPI'), +); +require_once(dirname(__FILE__).'/imap_include.inc'); +foreach ($tests as $name => $testparams) { + echo "Test for $name\n"; + $in = imap_open($default_mailbox, $username, $password, OP_HALFOPEN, 1, $testparams); + if ($in) { + if (is_array($errors = imap_errors())) { + foreach ($errors as $err) { + if (strstr($err, 'GSSAPI') || strstr($err, 'Kerberos')) { + echo "$err\n"; + } + } + } + } else { + echo "Can't connect\n"; + } +} +echo "Done\n"; +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/bug63126.php.expectf b/hphp/test/zend/bad/ext-imap/bug63126.php.expectf new file mode 100644 index 000000000..6750184fa --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/bug63126.php.expectf @@ -0,0 +1,3 @@ +Test for Array +Test for String +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_8bit_basic.php b/hphp/test/zend/bad/ext-imap/imap_8bit_basic.php new file mode 100644 index 000000000..306449c9e --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_8bit_basic.php @@ -0,0 +1,17 @@ + +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_8bit_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_8bit_basic.php.expectf new file mode 100644 index 000000000..520e5c526 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_8bit_basic.php.expectf @@ -0,0 +1,8 @@ +*** Testing imap_8bit() : basic functionality *** +string(28) "String with CRLF at end=20 +" +string(25) "String with space at end " +string(33) "String with tabs =09=09 in middle" +string(26) "String with tab at end =09" +string(27) "=00=01=02=03=04=FE=FF=0A=0D" +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_append_basic.php b/hphp/test/zend/bad/ext-imap/imap_append_basic.php new file mode 100644 index 000000000..d8b98c6a3 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_append_basic.php @@ -0,0 +1,45 @@ +Mailbox . "\n"; +var_dump(imap_append($imap_stream, $mb_details->Mailbox + , "From: webmaster@something.com\r\n" + . "To: info@something.com\r\n" + . "Subject: Test message\r\n" + . "\r\n" + . "this is a test message, please ignore\r\n" + )); + +var_dump(imap_append($imap_stream, $mb_details->Mailbox + , "From: webmaster@something.com\r\n" + . "To: info@something.com\r\n" + . "Subject: Another test\r\n" + . "\r\n" + . "this is another test message, please ignore it too!!\r\n" + )); + +$check = imap_check($imap_stream); +echo "Msg Count after append : ". $check->Nmsgs . "\n"; + +echo "List the msg headers\n"; +var_dump(imap_headers($imap_stream)); + +imap_close($imap_stream); +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_append_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_append_basic.php.expectf new file mode 100644 index 000000000..8c95870e7 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_append_basic.php.expectf @@ -0,0 +1,16 @@ +*** Testing imap_append() : basic functionality *** +Create a new mailbox for test +Create a temporary mailbox and add 0 msgs +.. mailbox '%s' created +Add a couple of msgs to new mailbox {%s}INBOX.%s +bool(true) +bool(true) +Msg Count after append : 2 +List the msg headers +array(2) { + [0]=> + string(%d) "%w%s 1)%s webmaster@something. Test message (%d chars)" + [1]=> + string(%d) "%w%s 2)%s webmaster@something. Another test (%d chars)" +} +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_body.php b/hphp/test/zend/bad/ext-imap/imap_body.php new file mode 100644 index 000000000..3dca01371 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_body.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_body.php.expectf b/hphp/test/zend/bad/ext-imap/imap_body.php.expectf new file mode 100644 index 000000000..9cf6d2873 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_body.php.expectf @@ -0,0 +1,10 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +bool(false) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_body_basic.php b/hphp/test/zend/bad/ext-imap/imap_body_basic.php new file mode 100644 index 000000000..8d23d4389 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_body_basic.php @@ -0,0 +1,30 @@ +Nmsgs . "\n"; + +// show body for msg 1 +var_dump(imap_body($imap_stream, 1)); + +//Access via FT_UID +var_dump(imap_body($imap_stream, 1, FT_UID)); + +imap_close($imap_stream); +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_body_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_body_basic.php.expectf new file mode 100644 index 000000000..4b6e185f0 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_body_basic.php.expectf @@ -0,0 +1,8 @@ +*** Testing imap_body() : basic functionality *** +Create a new mailbox for test +Create a temporary mailbox and add 1 msgs +.. mailbox '%s' created +Msg Count in new mailbox: 1 +%unicode|string%(%d) "1: this is a test message, please ignore%a" +%unicode|string%(%d) "1: this is a test message, please ignore%a" +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_bodystruct_basic.php b/hphp/test/zend/bad/ext-imap/imap_bodystruct_basic.php new file mode 100644 index 000000000..a82f7c5d1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_bodystruct_basic.php @@ -0,0 +1,66 @@ +$mf)) + { + echo "$mf is 0 or 1\n"; + } + else + { + echo "$mf FAIL\n"; + } +} + +if(is_array($m->parameters)) +{ + echo "parameters is an array\n"; +} + +echo "\nTry to get part 4!\n"; +var_dump(imap_bodystruct($imap_stream, 1, "4")); + +imap_close($imap_stream); + +function isValid($param) +{ + if(($param == 0) || ($param == 1)) + { + $result=true; + } + else + { + $result=false; + } +return $result; +} +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_bodystruct_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_bodystruct_basic.php.expectf new file mode 100644 index 000000000..8fdb09798 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_bodystruct_basic.php.expectf @@ -0,0 +1,17 @@ +*** Testing string imap_bodystruct : basic functionality *** +Create a new mailbox for test and add a multipart msgs +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +Get and validate structure of body part 1 +ifsubtype is 0 or 1 +ifdescription is 0 or 1 +ifid is 0 or 1 +ifdisposition is 0 or 1 +ifdparameters is 0 or 1 +ifparameters is 0 or 1 +parameters is an array + +Try to get part 4! +bool(false) +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_clearflag_full_basic.php b/hphp/test/zend/bad/ext-imap/imap_clearflag_full_basic.php new file mode 100644 index 000000000..d2b0dc259 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_clearflag_full_basic.php @@ -0,0 +1,45 @@ +Nmsgs . "\n"; + +echo "Set some flags\n"; +var_dump(imap_setflag_full($imap_stream, "1,3", "\\Seen \\Answered")); +var_dump(imap_setflag_full($imap_stream, "2,4", "\\Answered")); +var_dump(imap_setflag_full($imap_stream, "5,7", "\\Flagged \\Deleted")); +var_dump(imap_setflag_full($imap_stream, "6,8", "\\Deleted")); +var_dump(imap_setflag_full($imap_stream, "9,10", "\\Draft \\Flagged")); + +var_dump(imap_search($imap_stream, "SEEN")); +var_dump(imap_search($imap_stream, "ANSWERED")); +var_dump(imap_search($imap_stream, "FLAGGED")); +var_dump(imap_search($imap_stream, "DELETED")); + +var_dump(imap_clearflag_full($imap_stream, "1,4", "\\Answered")); +var_dump(imap_clearflag_full($imap_stream, "5,6,7,8", "\\Deleted")); +var_dump(imap_clearflag_full($imap_stream, "9", "\\Flagged")); + +var_dump(imap_search($imap_stream, "SEEN")); +var_dump(imap_search($imap_stream, "ANSWERED")); +var_dump(imap_search($imap_stream, "FLAGGED")); +var_dump(imap_search($imap_stream, "DELETED")); + +imap_close($imap_stream); +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_clearflag_full_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_clearflag_full_basic.php.expectf new file mode 100644 index 000000000..85795e433 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_clearflag_full_basic.php.expectf @@ -0,0 +1,72 @@ +*** Testing imap_clearflag_full() : basic functionality *** +Create a new mailbox for test +Create a temporary mailbox and add 10 msgs +.. mailbox '{%s}%s' created +Initial msg count in new_mailbox : 10 +Set some flags +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +array(2) { + [0]=> + int(1) + [1]=> + int(3) +} +array(4) { + [0]=> + int(1) + [1]=> + int(2) + [2]=> + int(3) + [3]=> + int(4) +} +array(4) { + [0]=> + int(5) + [1]=> + int(7) + [2]=> + int(9) + [3]=> + int(10) +} +array(4) { + [0]=> + int(5) + [1]=> + int(6) + [2]=> + int(7) + [3]=> + int(8) +} +bool(true) +bool(true) +bool(true) +array(2) { + [0]=> + int(1) + [1]=> + int(3) +} +array(2) { + [0]=> + int(2) + [1]=> + int(3) +} +array(3) { + [0]=> + int(5) + [1]=> + int(7) + [2]=> + int(10) +} +bool(false) +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_basic.php b/hphp/test/zend/bad/ext-imap/imap_close_basic.php new file mode 100644 index 000000000..139603b2c --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_basic.php @@ -0,0 +1,35 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_close_basic.php.expectf new file mode 100644 index 000000000..e5fca9a9e --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_basic.php.expectf @@ -0,0 +1,11 @@ +*** Testing imap_close() : basic functionality *** +Create a temporary mailbox and add 3 msgs +.. mailbox '%sINBOX.phpttest' created + +-- Call to imap_close() with all possible arguments -- +bool(true) +There are now 0 msgs in mailbox '%sINBOX.phpttest' + +-- Call to imap_close() with mandatory arguments -- +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_error.php b/hphp/test/zend/bad/ext-imap/imap_close_error.php new file mode 100644 index 000000000..f14f08f3d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_error.php @@ -0,0 +1,25 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_close_error.php.expectf new file mode 100644 index 000000000..617b7f406 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_error.php.expectf @@ -0,0 +1,10 @@ +*** Testing imap_close() : error conditions *** + +-- Testing imap_close() function with Zero arguments -- +HipHop Warning: %a +NULL + +-- Testing imap_close() function with more than expected no. of arguments -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation1.php b/hphp/test/zend/bad/ext-imap/imap_close_variation1.php new file mode 100644 index 000000000..12ce66be8 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation1.php @@ -0,0 +1,84 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation1.php.expectf b/hphp/test/zend/bad/ext-imap/imap_close_variation1.php.expectf new file mode 100644 index 000000000..15acf2a7a --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation1.php.expectf @@ -0,0 +1,98 @@ +*** Testing imap_close() : usage variations *** + +-- Iteration 1 -- +HipHop Warning: %a +NULL + +-- Iteration 2 -- +HipHop Warning: %a +NULL + +-- Iteration 3 -- +HipHop Warning: %a +NULL + +-- Iteration 4 -- +HipHop Warning: %a +NULL + +-- Iteration 5 -- +HipHop Warning: %a +NULL + +-- Iteration 6 -- +HipHop Warning: %a +NULL + +-- Iteration 7 -- +HipHop Warning: %a +NULL + +-- Iteration 8 -- +HipHop Warning: %a +NULL + +-- Iteration 9 -- +HipHop Warning: %a +NULL + +-- Iteration 10 -- +HipHop Warning: %a +NULL + +-- Iteration 11 -- +HipHop Warning: %a +NULL + +-- Iteration 12 -- +HipHop Warning: %a +NULL + +-- Iteration 13 -- +HipHop Warning: %a +NULL + +-- Iteration 14 -- +HipHop Warning: %a +NULL + +-- Iteration 15 -- +HipHop Warning: %a +NULL + +-- Iteration 16 -- +HipHop Warning: %a +NULL + +-- Iteration 17 -- +HipHop Warning: %a +NULL + +-- Iteration 18 -- +HipHop Warning: %a +NULL + +-- Iteration 19 -- +HipHop Warning: %a +NULL + +-- Iteration 20 -- +HipHop Warning: %a +NULL + +-- Iteration 21 -- +HipHop Warning: %a +NULL + +-- Iteration 22 -- +HipHop Warning: %a +NULL + +-- Iteration 23 -- +HipHop Warning: %a +NULL + +-- Iteration 24 -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation2.php b/hphp/test/zend/bad/ext-imap/imap_close_variation2.php new file mode 100644 index 000000000..62d55f9e8 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation2.php @@ -0,0 +1,108 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation2.php.expectf b/hphp/test/zend/bad/ext-imap/imap_close_variation2.php.expectf new file mode 100644 index 000000000..27895ead0 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation2.php.expectf @@ -0,0 +1,99 @@ +*** Testing imap_close() : usage variations *** +Create a temporary mailbox and add 3 msgs +.. mailbox '{%s}%s' created + +-- Iteration 1 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 2 -- +HipHop Warning: %a +bool(false) + +-- Iteration 3 -- +bool(true) +CL_EXPUNGE was set + +-- Iteration 4 -- +HipHop Warning: %a +bool(false) + +-- Iteration 5 -- +HipHop Warning: %a +bool(false) + +-- Iteration 6 -- +HipHop Warning: %a +bool(false) + +-- Iteration 7 -- +HipHop Warning: %a +bool(false) + +-- Iteration 8 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 9 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 10 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 11 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 12 -- +HipHop Warning: %a +bool(false) + +-- Iteration 13 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 14 -- +HipHop Warning: %a +bool(false) + +-- Iteration 15 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 16 -- +HipHop Warning: %a +NULL +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 17 -- +HipHop Warning: %a +NULL +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 18 -- +HipHop Warning: %a +NULL +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 19 -- +bool(true) +CL_EXPUNGE was set + +-- Iteration 20 -- +bool(true) +CL_EXPUNGE was set + +-- Iteration 21 -- +bool(true) +CL_EXPUNGE was set + +-- Iteration 22 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 23 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation3.php b/hphp/test/zend/bad/ext-imap/imap_close_variation3.php new file mode 100644 index 000000000..3488554f3 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation3.php @@ -0,0 +1,23 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation3.php.expectf b/hphp/test/zend/bad/ext-imap/imap_close_variation3.php.expectf new file mode 100644 index 000000000..daa853544 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation3.php.expectf @@ -0,0 +1,14 @@ +*** Testing imap_close() : usage variations *** + +-- File Resource opened with fopen() -- +resource(%d) of type (stream) +HipHop Warning: %a +bool(false) +resource(%d) of type (stream) + +-- Directory Resource opened with opendir() -- +resource(%d) of type (stream) +HipHop Warning: %a +bool(false) +resource(%d) of type (stream) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation4.php b/hphp/test/zend/bad/ext-imap/imap_close_variation4.php new file mode 100644 index 000000000..59b504fc3 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation4.php @@ -0,0 +1,56 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_close_variation4.php.expectf b/hphp/test/zend/bad/ext-imap/imap_close_variation4.php.expectf new file mode 100644 index 000000000..fdb912e95 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_close_variation4.php.expectf @@ -0,0 +1,24 @@ +*** Testing imap_close() : usage variations *** +Create a temporary mailbox and add 3 msgs +.. mailbox '{%s}%s' created + +-- Iteration 1 -- +bool(true) +CL_EXPUNGE was not set, 3 msgs in mailbox + +-- Iteration 2 -- +bool(true) +CL_EXPUNGE was set + +-- Iteration 3 -- +HipHop Warning: %a +bool(false) + +-- Iteration 4 -- +HipHop Warning: %a +bool(false) + +-- Iteration 5 -- +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_createmailbox_basic.php b/hphp/test/zend/bad/ext-imap/imap_createmailbox_basic.php new file mode 100644 index 000000000..8e3dc56da --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_createmailbox_basic.php @@ -0,0 +1,50 @@ +messages . "\n"; + echo "Recent: " . $status->recent . "\n"; + echo "Unseen: " . $status->unseen . "\n"; + echo "UIDnext: " . $status->uidnext . "\n"; + echo "UIDvalidity: " . $status->uidvalidity . "\n"; + + } else { + echo "imap_status on new mailbox failed: " . imap_last_error() . "\n"; + } + + if (imap_deletemailbox($imap_stream, $newbox)) { + echo "Mailbox '$newname' removed to restore initial state\n"; + } else { + echo "imap_deletemailbox on new mailbox failed: " . implode("\n", imap_errors()) . "\n"; + } + +} else { + echo "could not create new mailbox: " . implode("\n", imap_errors()) . "\n"; +} + +imap_close($imap_stream); + +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_createmailbox_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_createmailbox_basic.php.expectf new file mode 100644 index 000000000..7d111eaa9 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_createmailbox_basic.php.expectf @@ -0,0 +1,11 @@ +*** Testing imap_createmailbox() : basic functionality *** +Newname will be 'phpnewbox' +Add a couple of msgs to 'phpnewbox' mailbox +Your new mailbox 'phpnewbox' has the following status: +Messages: 2 +Recent: 2 +Unseen: 2 +UIDnext: %d +UIDvalidity: %d +Mailbox 'phpnewbox' removed to restore initial state +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_errors_basic.php b/hphp/test/zend/bad/ext-imap/imap_errors_basic.php new file mode 100644 index 000000000..8773b3582 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_errors_basic.php @@ -0,0 +1,23 @@ + +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_errors_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_errors_basic.php.expectf new file mode 100644 index 000000000..7fddf8ea1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_errors_basic.php.expectf @@ -0,0 +1,22 @@ +*** Testing imap_errors() : basic functionality *** +Issue open with invalid password with normal default number of retries, i.e 3 +HipHop Warning: %a +List any errors +array(%d) { + [0]=> + string(%d) "%s" + [1]=> + string(%d) "%s" + [2]=> + string(%d) "%a +} + + +Issue open with invalid password with retries == 1 +HipHop Warning: %a +List any errors +array(%d) { + [0]=> + string(%d) "%a +} +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_expunge_error.php b/hphp/test/zend/bad/ext-imap/imap_expunge_error.php new file mode 100644 index 000000000..1a0f053a4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_expunge_error.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_expunge_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_expunge_error.php.expectf new file mode 100644 index 000000000..cd23c8186 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_expunge_error.php.expectf @@ -0,0 +1,5 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_basic.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_basic.php new file mode 100644 index 000000000..c58e0e24f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_basic.php @@ -0,0 +1,42 @@ + Object #1\n"; +displayOverviewFields($a[0]); + +// Calling imap_fetch_overview() with mandatory arguments +echo "\n-- Mandatory arguments --\n"; +$a = imap_fetch_overview($stream_id, '1:2') ; + +//first object in array +echo "\n--> Object #1\n"; +displayOverviewFields($a[0]); + +//Second object in array +echo "\n--> Object #2\n"; +displayOverviewFields($a[1]); + +imap_close($stream_id); + +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_basic.php.expectf new file mode 100644 index 000000000..d061ffae1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_basic.php.expectf @@ -0,0 +1,44 @@ +*** Testing imap_fetch_overview() : basic functionality *** +Create a temporary mailbox and add 2 msgs +.. mailbox '{%s}%s' created + +-- All possible arguments -- + +--> Object #1 +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +-- Mandatory arguments -- + +--> Object #1 +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +--> Object #2 +size is %d +uid is %d +msgno is 2 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_error.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_error.php new file mode 100644 index 000000000..55615a3d4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_error.php @@ -0,0 +1,30 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_error.php.expectf new file mode 100644 index 000000000..7a8253b3f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_error.php.expectf @@ -0,0 +1,12 @@ +*** Testing imap_fetch_overview() : error conditions *** + +-- Testing imap_fetch_overview() function with more than expected no. of arguments -- +Create a temporary mailbox and add 2 msgs +.. mailbox '{%s}%s' created +HipHop Warning: %a +NULL + +-- Testing imap_fetch_overview() function with less than expected no. of arguments -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation1.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation1.php new file mode 100644 index 000000000..537105e32 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation1.php @@ -0,0 +1,89 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation1.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation1.php.expectf new file mode 100644 index 000000000..60e838daf --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation1.php.expectf @@ -0,0 +1,100 @@ +*** Testing imap_fetch_overview() : usage variations *** + +-- Testing with first argument value: int(0) +HipHop Warning: %a +NULL + +-- Testing with first argument value: int(1) +HipHop Warning: %a +NULL + +-- Testing with first argument value: int(12345) +HipHop Warning: %a +NULL + +-- Testing with first argument value: int(-2345) +HipHop Warning: %a +NULL + +-- Testing with first argument value: float(10.5) +HipHop Warning: %a +NULL + +-- Testing with first argument value: float(-10.5) +HipHop Warning: %a +NULL + +-- Testing with first argument value: float(123456789000) +HipHop Warning: %a +NULL + +-- Testing with first argument value: float(1.23456789E-9) +HipHop Warning: %a +NULL + +-- Testing with first argument value: float(0.5) +HipHop Warning: %a +NULL + +-- Testing with first argument value: NULL +HipHop Warning: %a +NULL + +-- Testing with first argument value: NULL +HipHop Warning: %a +NULL + +-- Testing with first argument value: bool(true) +HipHop Warning: %a +NULL + +-- Testing with first argument value: bool(false) +HipHop Warning: %a +NULL + +-- Testing with first argument value: bool(true) +HipHop Warning: %a +NULL + +-- Testing with first argument value: bool(false) +HipHop Warning: %a +NULL + +-- Testing with first argument value: %string|unicode%(0) "" +HipHop Warning: %a +NULL + +-- Testing with first argument value: %string|unicode%(0) "" +HipHop Warning: %a +NULL + +-- Testing with first argument value: array(0) { +} +HipHop Warning: %a +NULL + +-- Testing with first argument value: %string|unicode%(6) "string" +HipHop Warning: %a +NULL + +-- Testing with first argument value: %string|unicode%(6) "string" +HipHop Warning: %a +NULL + +-- Testing with first argument value: %string|unicode%(11) "hello world" +HipHop Warning: %a +NULL + +-- Testing with first argument value: object(classA)#1 (0) { +} +HipHop Warning: %a +NULL + +-- Testing with first argument value: NULL +HipHop Warning: %a +NULL + +-- Testing with first argument value: NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation2.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation2.php new file mode 100644 index 000000000..92bd70c4f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation2.php @@ -0,0 +1,108 @@ +>> argument +$inputs = array( + + // int data +/*1*/ 0, + 1, + 12345, + -2345, + + // float data +/*5*/ 10.5, + -10.5, + 12.3456789000e10, + 12.3456789000E-10, + .5, + + // null data +/*10*/ NULL, + null, + + // boolean data +/*12*/ true, + false, + TRUE, + FALSE, + + // empty data +/*16*/ "", + '', + array(), + + // string data +/*19*/ "string", + 'string', + $heredoc, + + // object data +/*22*/ new classA(), + + // undefined data +/*23*/ @$undefined_var, + + // unset data +/*24*/ @$unset_var, + + // resource variable +/*25*/ $fp +); + +// loop through each element of $inputs to check the behavior of imap_fetch_overview() +$iterator = 1; +foreach($inputs as $input) { + echo "\n-- Testing with second argument value: "; + var_dump($input); + $overview = imap_fetch_overview($stream_id, $input); + if (!$overview) { + echo imap_last_error() . "\n"; + } else { + displayOverviewFields($overview[0]); + } + $iterator++; +}; + +fclose($fp); + +// clear the error stack +imap_errors(); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation2.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation2.php.expectf new file mode 100644 index 000000000..5f7efbd5d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation2.php.expectf @@ -0,0 +1,110 @@ +*** Testing imap_fetch_overview() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +-- Testing with second argument value: int(0) +Sequence out of range + +-- Testing with second argument value: int(1) +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +-- Testing with second argument value: int(12345) +Sequence out of range + +-- Testing with second argument value: int(-2345) +Syntax error in sequence + +-- Testing with second argument value: float(10.5) +Sequence out of range + +-- Testing with second argument value: float(-10.5) +Syntax error in sequence + +-- Testing with second argument value: float(123456789000) +Sequence out of range + +-- Testing with second argument value: float(1.23456789E-9) +Sequence syntax error + +-- Testing with second argument value: float(0.5) +Sequence out of range + +-- Testing with second argument value: NULL +Sequence out of range + +-- Testing with second argument value: NULL +Sequence out of range + +-- Testing with second argument value: bool(true) +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +-- Testing with second argument value: bool(false) +Sequence out of range + +-- Testing with second argument value: bool(true) +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +-- Testing with second argument value: bool(false) +Sequence out of range + +-- Testing with second argument value: %string|unicode%(0) "" +Sequence out of range + +-- Testing with second argument value: %string|unicode%(0) "" +Sequence out of range + +-- Testing with second argument value: array(0) { +} +HipHop Warning: %a +Sequence out of range + +-- Testing with second argument value: %string|unicode%(6) "string" +Syntax error in sequence + +-- Testing with second argument value: %string|unicode%(6) "string" +Syntax error in sequence + +-- Testing with second argument value: %string|unicode%(11) "hello world" +Syntax error in sequence + +-- Testing with second argument value: object(classA)#1 (0) { +} +Syntax error in sequence + +-- Testing with second argument value: NULL +Syntax error in sequence + +-- Testing with second argument value: NULL +Syntax error in sequence + +-- Testing with second argument value: resource(%d) of type (stream) +HipHop Warning: %a +Syntax error in sequence +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation3.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation3.php new file mode 100644 index 000000000..6285e0a7f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation3.php @@ -0,0 +1,46 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation3.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation3.php.expectf new file mode 100644 index 000000000..13422f576 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation3.php.expectf @@ -0,0 +1,22 @@ +*** Testing imap_fetch_overview() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +Testing with option value:%string|unicode%(1) "1" +imap_fetch_overview() returns an object + +Testing with option value:bool(true) +imap_fetch_overview() returns an object + +Testing with option value:float(1) +imap_fetch_overview() returns an object + +Testing with option value:float(1) +imap_fetch_overview() returns an object + +Testing with option value:int(%d) +HipHop Warning: %a + +Testing with option value:int(-%d) +HipHop Warning: %a +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation4.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation4.php new file mode 100644 index 000000000..018a2068c --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation4.php @@ -0,0 +1,24 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation4.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation4.php.expectf new file mode 100644 index 000000000..41937b25f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation4.php.expectf @@ -0,0 +1,12 @@ +*** Testing imap_fetch_overview() : usage variations *** + +-- File Resource opened with fopen() -- +resource(%d) of type (stream) +HipHop Warning: %a +bool(false) + +-- Directory Resource opened with opendir() -- +resource(%d) of type (stream) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation5.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation5.php new file mode 100644 index 000000000..82af73bb4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation5.php @@ -0,0 +1,40 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation5.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation5.php.expectf new file mode 100644 index 000000000..ec4ca5a55 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation5.php.expectf @@ -0,0 +1,88 @@ +*** Testing imap_fetch_overview() : usage variations *** +Create a temporary mailbox and add 3 msgs +.. mailbox '{%s}%s' created + +-- $msg_no is 0 -- +Sequence out of range + +-- $msg_no is 4 -- +Sequence out of range + +-- $msg_no is 4 -- +Sequence out of range + +-- $msg_no is 2 -- + +size is %d +uid is %d +msgno is 2 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +-- $msg_no is 1,3 -- + +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +size is %d +uid is %d +msgno is 3 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +-- $msg_no is 1, 2 -- +Syntax error in sequence + +-- $msg_no is 1:3 -- + +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +size is %d +uid is %d +msgno is 2 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK + +size is %d +uid is %d +msgno is 3 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation6.php b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation6.php new file mode 100644 index 000000000..5211535d4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation6.php @@ -0,0 +1,83 @@ + Object #1\n"; +displayOverviewFields($a[0]); + + + + +/** + * Create a multipart message with subparts + * + * @param resource $imap_stream + * @param string $mailbox + */ +function create_multipart_message($imap_stream, $mailbox) { + global $users, $domain; + $envelope["from"]= "foo@anywhere.com"; + $envelope["to"] = "$users[0]@$domain"; + $envelope["subject"] = "Test msg 1"; + + $part1["type"] = TYPEMULTIPART; + $part1["subtype"] = "mixed"; + + $part2["type"] = TYPETEXT; + $part2["subtype"] = "plain"; + $part2["description"] = "imap_mail_compose() function"; + $part2["contents.data"] = "message 1:xxxxxxxxxxxxxxxxxxxxxxxxxx"; + + $part3["type"] = TYPETEXT; + $part3["subtype"] = "plain"; + $part3["description"] = "Example"; + $part3["contents.data"] = "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy"; + + $file_handle = fopen(__FILE__, 'r+'); + $file_size = 1; + + $part4["type"] = TYPEAPPLICATION; + $part4["encoding"] = ENCBASE64; + $part4["subtype"] = "octet-stream"; + $part4["description"] = 'Test'; + $part4['disposition.type'] = 'attachment'; + $part4['disposition'] = array ('filename' => 'Test'); + $part4['type.parameters'] = array('name' => 'Test'); + $part4["contents.data"] = base64_encode(fread($file_handle, 1)); + + $body[1] = $part1; + $body[2] = $part2; + $body[3] = $part3; + $body[4] = $part4; + + $msg = imap_mail_compose($envelope, $body); + + if (imap_append($imap_stream, $mailbox, $msg) === false) { + echo imap_last_error() . "\n"; + echo "TEST FAILED : could not append new message to mailbox '$mailbox'\n"; + exit; + } +} + +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation6.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation6.php.expectf new file mode 100644 index 000000000..83834f3c9 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetch_overview_variation6.php.expectf @@ -0,0 +1,16 @@ +*** Testing imap_fetch_overview() : usage variations *** +Create a temporary mailbox and add 0 msgs +.. mailbox '{%s}%s' created + +--> Object #1 +size is %d +uid is %d +msgno is 1 +recent is %d +flagged is 0 +answered is 0 +deleted is 0 +seen is 0 +draft is 0 +udate is OK +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_basic.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_basic.php new file mode 100644 index 000000000..9f7b635a3 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_basic.php @@ -0,0 +1,54 @@ + FT_UID, 'FT_PEEK' => FT_PEEK, 'FT_INTERNAL' => FT_INTERNAL); + +// Calling imap_fetchbody() with all possible arguments +echo "\n-- All possible arguments --\n"; +foreach ($options as $key => $option) { + echo "-- Option is $key --\n"; + switch ($key) { + + case 'FT_UID'; + $msg_uid = imap_uid($stream_id, $msg_no); + var_dump( imap_fetchbody($stream_id, $msg_uid, $section, $option) ); + break; + + case 'FT_PEEK'; + var_dump( imap_fetchbody($stream_id, $msg_no, $section, $option) ); + $overview = imap_fetch_overview($stream_id, 1); + echo "Seen Flag: "; + var_dump( $overview[0]->seen ); + break; + + case 'FT_INTERNAL'; + var_dump( imap_fetchbody($stream_id, $msg_no, $section, $option) ); + break; + + } +} + +// Calling imap_fetchbody() with mandatory arguments +echo "\n-- Mandatory arguments --\n"; +var_dump( imap_fetchbody($stream_id, $msg_no, $section) ); +$overview = imap_fetch_overview($stream_id, 1); +echo "Seen Flag: "; +var_dump( $overview[0]->seen ); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_basic.php.expectf new file mode 100644 index 000000000..36554e2f4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_basic.php.expectf @@ -0,0 +1,17 @@ +*** Testing imap_fetchbody() : basic functionality *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +-- All possible arguments -- +-- Option is FT_UID -- +%unicode|string%(36) "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy" +-- Option is FT_PEEK -- +%unicode|string%(36) "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy" +Seen Flag: int(%d) +-- Option is FT_INTERNAL -- +%unicode|string%(36) "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy" + +-- Mandatory arguments -- +%unicode|string%(36) "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy" +Seen Flag: int(%d) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_error.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_error.php new file mode 100644 index 000000000..0399e50c2 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_error.php @@ -0,0 +1,33 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_error.php.expectf new file mode 100644 index 000000000..666bfdb79 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_error.php.expectf @@ -0,0 +1,12 @@ +*** Testing imap_fetchbody() : error conditions *** + +-- Testing imap_fetchbody() function with more than expected no. of arguments -- +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +HipHop Warning: %a +NULL + +-- Testing imap_fetchbody() function with less than expected no. of arguments -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation1.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation1.php new file mode 100644 index 000000000..a2247e6a0 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation1.php @@ -0,0 +1,89 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation1.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation1.php.expectf new file mode 100644 index 000000000..b0c2eff73 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation1.php.expectf @@ -0,0 +1,98 @@ +*** Testing imap_fetchbody() : usage variations *** + +-- Iteration 1 -- +HipHop Warning: %a +NULL + +-- Iteration 2 -- +HipHop Warning: %a +NULL + +-- Iteration 3 -- +HipHop Warning: %a +NULL + +-- Iteration 4 -- +HipHop Warning: %a +NULL + +-- Iteration 5 -- +HipHop Warning: %a +NULL + +-- Iteration 6 -- +HipHop Warning: %a +NULL + +-- Iteration 7 -- +HipHop Warning: %a +NULL + +-- Iteration 8 -- +HipHop Warning: %a +NULL + +-- Iteration 9 -- +HipHop Warning: %a +NULL + +-- Iteration 10 -- +HipHop Warning: %a +NULL + +-- Iteration 11 -- +HipHop Warning: %a +NULL + +-- Iteration 12 -- +HipHop Warning: %a +NULL + +-- Iteration 13 -- +HipHop Warning: %a +NULL + +-- Iteration 14 -- +HipHop Warning: %a +NULL + +-- Iteration 15 -- +HipHop Warning: %a +NULL + +-- Iteration 16 -- +HipHop Warning: %a +NULL + +-- Iteration 17 -- +HipHop Warning: %a +NULL + +-- Iteration 18 -- +HipHop Warning: %a +NULL + +-- Iteration 19 -- +HipHop Warning: %a +NULL + +-- Iteration 20 -- +HipHop Warning: %a +NULL + +-- Iteration 21 -- +HipHop Warning: %a +NULL + +-- Iteration 22 -- +HipHop Warning: %a +NULL + +-- Iteration 23 -- +HipHop Warning: %a +NULL + +-- Iteration 24 -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation2.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation2.php new file mode 100644 index 000000000..aeb078161 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation2.php @@ -0,0 +1,93 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation2.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation2.php.expectf new file mode 100644 index 000000000..24faa2fd0 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation2.php.expectf @@ -0,0 +1,97 @@ +*** Testing imap_fetchbody() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +-- Iteration 1 -- +HipHop Warning: %a +bool(false) + +-- Iteration 2 -- +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- Iteration 3 -- +HipHop Warning: %a +bool(false) + +-- Iteration 4 -- +HipHop Warning: %a +bool(false) + +-- Iteration 5 -- +HipHop Warning: %a +bool(false) + +-- Iteration 6 -- +HipHop Warning: %a +bool(false) + +-- Iteration 7 -- +HipHop Warning: %a +bool(false) + +-- Iteration 8 -- +HipHop Warning: %a +bool(false) + +-- Iteration 9 -- +HipHop Warning: %a +bool(false) + +-- Iteration 10 -- +HipHop Warning: %a +bool(false) + +-- Iteration 11 -- +HipHop Warning: %a +bool(false) + +-- Iteration 12 -- +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- Iteration 13 -- +HipHop Warning: %a +bool(false) + +-- Iteration 14 -- +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- Iteration 15 -- +HipHop Warning: %a +bool(false) + +-- Iteration 16 -- +HipHop Warning: %a +NULL + +-- Iteration 17 -- +HipHop Warning: %a +NULL + +-- Iteration 18 -- +HipHop Warning: %a +NULL + +-- Iteration 19 -- +HipHop Warning: %a +NULL + +-- Iteration 20 -- +HipHop Warning: %a +NULL + +-- Iteration 21 -- +HipHop Warning: %a +NULL + +-- Iteration 22 -- +HipHop Warning: %a +NULL + +-- Iteration 23 -- +HipHop Warning: %a +bool(false) + +-- Iteration 24 -- +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation3.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation3.php new file mode 100644 index 000000000..443f22b78 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation3.php @@ -0,0 +1,93 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation3.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation3.php.expectf new file mode 100644 index 000000000..58d0dc9e2 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation3.php.expectf @@ -0,0 +1,113 @@ +*** Testing imap_fetchbody() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '%s.phpttest' created + +-- Iteration 1 -- +string(71) "From: %s +To: %s +Subject: test1 + +" + +-- Iteration 2 -- +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- Iteration 3 -- +%unicode|string%(0) "" + +-- Iteration 4 -- +%unicode|string%(0) "" + +-- Iteration 5 -- +%unicode|string%(0) "" + +-- Iteration 6 -- +%unicode|string%(0) "" + +-- Iteration 7 -- +%unicode|string%(0) "" + +-- Iteration 8 -- +%unicode|string%(0) "" + +-- Iteration 9 -- +%unicode|string%(0) "" + +-- Iteration 10 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 11 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 12 -- +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- Iteration 13 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 14 -- +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- Iteration 15 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 16 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 17 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 18 -- +HipHop Warning: %a +NULL + +-- Iteration 19 -- +%unicode|string%(0) "" + +-- Iteration 20 -- +%unicode|string%(0) "" + +-- Iteration 21 -- +%unicode|string%(0) "" + +-- Iteration 22 -- +%unicode|string%(0) "" + +-- Iteration 23 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" + +-- Iteration 24 -- +%unicode|string%(%d) "From: %s +To: %s +Subject: test1 + +1: this is a test message, please ignore%a" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation4.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation4.php new file mode 100644 index 000000000..22797f8f1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation4.php @@ -0,0 +1,43 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation4.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation4.php.expectf new file mode 100644 index 000000000..895af6bf9 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation4.php.expectf @@ -0,0 +1,24 @@ +*** Testing imap_fetchbody() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +-- Iteration 1 -- +FT_UID valid + +-- Iteration 2 -- +FT_UID valid + +-- Iteration 3 -- +FT_UID valid + +-- Iteration 4 -- +FT_UID valid + +-- Iteration 5 -- +HipHop Warning: %a +FT_UID not valid + +-- Iteration 6 -- +HipHop Warning: %a +FT_UID not valid +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation5.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation5.php new file mode 100644 index 000000000..0d004e416 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation5.php @@ -0,0 +1,24 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation5.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation5.php.expectf new file mode 100644 index 000000000..f9144e9cd --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation5.php.expectf @@ -0,0 +1,12 @@ +*** Testing imap_fetchbody() : usage variations *** + +-- File Resource opened with fopen() -- +resource(5) of type (stream) +HipHop Warning: %a +NULL + +-- Directory Resource opened with opendir() -- +resource(6) of type (stream) +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation6.php b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation6.php new file mode 100644 index 000000000..b3266b3d9 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation6.php @@ -0,0 +1,34 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation6.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation6.php.expectf new file mode 100644 index 000000000..7175584a0 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchbody_variation6.php.expectf @@ -0,0 +1,22 @@ +*** Testing imap_fetchbody() : usage variations *** +Create a temporary mailbox and add 3 msgs +.. mailbox '{%s}%s' created + +-- $msg_no is 0 -- +HipHop Warning: %a +bool(false) + + +-- $msg_no is 4 -- +HipHop Warning: %a +bool(false) + + +-- $msg_no is 1,3 -- +HipHop Notice: %a +%unicode|string%(%d) "1: this is a test message, please ignore%a" + +-- $msg_no is 1:3 -- +HipHop Notice: %a +%unicode|string%(%d) "1: this is a test message, please ignore%a" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_basic.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_basic.php new file mode 100644 index 000000000..219c724ef --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_basic.php @@ -0,0 +1,34 @@ + FT_UID, 'FT_INTERNAL' => FT_INTERNAL, + 'FT_PREFETCHTEXT' => FT_PREFETCHTEXT); + +// Calling imap_fetchheader() with all possible arguments +echo "\n-- All possible arguments --\n"; +foreach ($options as $key => $option) { + echo "-- Option is $key --\n"; + if ($key == 'FT_UID') { + $msg_uid = imap_uid($stream_id, $msg_no); + var_dump(imap_fetchheader($stream_id, $msg_uid, $option)); + } else { + var_dump(imap_fetchheader($stream_id, $msg_no, $option)); + } +} + +// Calling imap_fetchheader() with mandatory arguments +echo "\n-- Mandatory arguments --\n"; +var_dump( imap_fetchheader($stream_id, $msg_no) ); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_basic.php.expectf new file mode 100644 index 000000000..4afb6b105 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_basic.php.expectf @@ -0,0 +1,39 @@ +*** Testing imap_fetchheader() : basic functionality *** +Create a temporary mailbox and add 1 msgs +.. mailbox '%s.phpttest' created + +-- All possible arguments -- +-- Option is FT_UID -- +string(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: %s; %s + +" +-- Option is FT_INTERNAL -- +string(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: %s; %s + +" +-- Option is FT_PREFETCHTEXT -- +string(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: %s; %s + +" + +-- Mandatory arguments -- +string(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: %s; %s + +" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_error.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_error.php new file mode 100644 index 000000000..ca1923524 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_error.php @@ -0,0 +1,29 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_error.php.expectf new file mode 100644 index 000000000..cd506582f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_error.php.expectf @@ -0,0 +1,10 @@ +*** Testing imap_fetchheader() : error conditions *** + +-- Testing imap_fetchheader() function with more than expected no. of arguments -- +HipHop Warning: %a +NULL + +-- Testing imap_fetchheader() function with less than expected no. of arguments -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation1.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation1.php new file mode 100644 index 000000000..88bf81d81 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation1.php @@ -0,0 +1,100 @@ + 1, 'two' => 2); + +// get a resource variable +$fp = fopen(__FILE__, "r"); + +// unexpected values to be passed to $stream_id argument +$inputs = array( + + // int data +/*1*/ 0, + 1, + 12345, + -2345, + + // float data +/*5*/ 10.5, + -10.5, + 12.3456789000e10, + 12.3456789000E-10, + .5, + + // null data +/*10*/ NULL, + null, + + // boolean data +/*12*/ true, + false, + TRUE, + FALSE, + + // empty data +/*16*/ "", + '', + + // string data +/*18*/ "string", + 'string', + $heredoc, + + // array data +/*21*/ array(), + $index_array, + $assoc_array, + array('foo', $index_array, $assoc_array), + + + // object data +/*25*/ new classA(), + + // undefined data +/*26*/ @$undefined_var, + + // unset data +/*27*/ @$unset_var, +); + +// loop through each element of $inputs to check the behavior of imap_fetchheader() +$iterator = 1; +foreach($inputs as $input) { + echo "\n-- Iteration $iterator --\n"; + var_dump( imap_fetchheader($input, $msg_no) ); + $iterator++; +}; +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation1.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation1.php.expectf new file mode 100644 index 000000000..f5f1fe6da --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation1.php.expectf @@ -0,0 +1,110 @@ +*** Testing imap_fetchheader() : usage variations *** + +-- Iteration 1 -- +HipHop Warning: %a +NULL + +-- Iteration 2 -- +HipHop Warning: %a +NULL + +-- Iteration 3 -- +HipHop Warning: %a +NULL + +-- Iteration 4 -- +HipHop Warning: %a +NULL + +-- Iteration 5 -- +HipHop Warning: %a +NULL + +-- Iteration 6 -- +HipHop Warning: %a +NULL + +-- Iteration 7 -- +HipHop Warning: %a +NULL + +-- Iteration 8 -- +HipHop Warning: %a +NULL + +-- Iteration 9 -- +HipHop Warning: %a +NULL + +-- Iteration 10 -- +HipHop Warning: %a +NULL + +-- Iteration 11 -- +HipHop Warning: %a +NULL + +-- Iteration 12 -- +HipHop Warning: %a +NULL + +-- Iteration 13 -- +HipHop Warning: %a +NULL + +-- Iteration 14 -- +HipHop Warning: %a +NULL + +-- Iteration 15 -- +HipHop Warning: %a +NULL + +-- Iteration 16 -- +HipHop Warning: %a +NULL + +-- Iteration 17 -- +HipHop Warning: %a +NULL + +-- Iteration 18 -- +HipHop Warning: %a +NULL + +-- Iteration 19 -- +HipHop Warning: %a +NULL + +-- Iteration 20 -- +HipHop Warning: %a +NULL + +-- Iteration 21 -- +HipHop Warning: %a +NULL + +-- Iteration 22 -- +HipHop Warning: %a +NULL + +-- Iteration 23 -- +HipHop Warning: %a +NULL + +-- Iteration 24 -- +HipHop Warning: %a +NULL + +-- Iteration 25 -- +HipHop Warning: %a +NULL + +-- Iteration 26 -- +HipHop Warning: %a +NULL + +-- Iteration 27 -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation2.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation2.php new file mode 100644 index 000000000..55cac054e --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation2.php @@ -0,0 +1,108 @@ + 1, 'two' => 2); + +// get a resource variable +$fp = fopen(__FILE__, "r"); + +// unexpected values to be passed to $msg_no argument +$inputs = array( + + // int data +/*1*/ 0, + 1, + 12345, + -2345, + + // float data +/*5*/ 10.5, + -10.5, + 12.3456789000e10, + 12.3456789000E-10, + .5, + + // null data +/*10*/ NULL, + null, + + // boolean data +/*12*/ true, + false, + TRUE, + FALSE, + + // empty data +/*16*/ "", + '', + + // string data +/*18*/ "string", + 'string', + $heredoc, + + // array data +/*21*/ array(), + $index_array, + $assoc_array, + array('foo', $index_array, $assoc_array), + + + // object data +/*25*/ new classA(), + + // undefined data +/*26*/ @$undefined_var, + + // unset data +/*27*/ @$unset_var, + + // resource variable +/*28*/ $fp +); + +// loop through each element of $inputs to check the behavior of imap_fetchheader() +$iterator = 1; +foreach($inputs as $input) { + echo "\n-- Iteration $iterator --\n"; + var_dump( imap_fetchheader($stream_id, $input) ); + $iterator++; +}; + +fclose($fp); +?> +===DONE=== +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation2.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation2.php.expectf new file mode 100644 index 000000000..684715110 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation2.php.expectf @@ -0,0 +1,131 @@ +*** Testing imap_fetchheader() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +-- Iteration 1 -- +HipHop Warning: %a +bool(false) + +-- Iteration 2 -- +%unicode|string%(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +" + +-- Iteration 3 -- +HipHop Warning: %a +bool(false) + +-- Iteration 4 -- +HipHop Warning: %a +bool(false) + +-- Iteration 5 -- +HipHop Warning: %a +bool(false) + +-- Iteration 6 -- +HipHop Warning: %a +bool(false) + +-- Iteration 7 -- +HipHop Warning: %a +bool(false) + +-- Iteration 8 -- +HipHop Warning: %a +bool(false) + +-- Iteration 9 -- +HipHop Warning: %a +bool(false) + +-- Iteration 10 -- +HipHop Warning: %a +bool(false) + +-- Iteration 11 -- +HipHop Warning: %a +bool(false) + +-- Iteration 12 -- +%unicode|string%(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +" + +-- Iteration 13 -- +HipHop Warning: %a +bool(false) + +-- Iteration 14 -- +%unicode|string%(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +" + +-- Iteration 15 -- +HipHop Warning: %a +bool(false) + +-- Iteration 16 -- +HipHop Warning: %a +NULL + +-- Iteration 17 -- +HipHop Warning: %a +NULL + +-- Iteration 18 -- +HipHop Warning: %a +NULL + +-- Iteration 19 -- +HipHop Warning: %a +NULL + +-- Iteration 20 -- +HipHop Warning: %a +NULL + +-- Iteration 21 -- +HipHop Warning: %a +NULL + +-- Iteration 22 -- +HipHop Warning: %a +NULL + +-- Iteration 23 -- +HipHop Warning: %a +NULL + +-- Iteration 24 -- +HipHop Warning: %a +NULL + +-- Iteration 25 -- +HipHop Warning: %a +NULL + +-- Iteration 26 -- +HipHop Warning: %a +bool(false) + +-- Iteration 27 -- +HipHop Warning: %a +bool(false) + +-- Iteration 28 -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation3.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation3.php new file mode 100644 index 000000000..d4f69170f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation3.php @@ -0,0 +1,41 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation3.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation3.php.expectf new file mode 100644 index 000000000..d9ec6c7ae --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation3.php.expectf @@ -0,0 +1,24 @@ +*** Testing imap_fetchheader() : usage variations *** +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created + +-- Iteration 1 -- +FT_UID valid + +-- Iteration 2 -- +FT_UID valid + +-- Iteration 3 -- +FT_UID valid + +-- Iteration 4 -- +FT_UID valid + +-- Iteration 5 -- +HipHop Warning: %a +FT_UID not valid + +-- Iteration 6 -- +HipHop Warning: %a +FT_UID not valid +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation4.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation4.php new file mode 100644 index 000000000..a9da76f39 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation4.php @@ -0,0 +1,23 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation4.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation4.php.expectf new file mode 100644 index 000000000..66d2cfb7d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation4.php.expectf @@ -0,0 +1,12 @@ +*** Testing imap_fetchheader() : usage variations *** + +-- File Resource opened with fopen() -- +resource(%d) of type (stream) +HipHop Warning: %a +bool(false) + +-- Directory Resource opened with opendir() -- +resource(%d) of type (stream) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation5.php b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation5.php new file mode 100644 index 000000000..b978afb06 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation5.php @@ -0,0 +1,35 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation5.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation5.php.expectf new file mode 100644 index 000000000..ed0b1e484 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchheader_variation5.php.expectf @@ -0,0 +1,34 @@ +*** Testing imap_fetchheader() : usage variations *** +Create a temporary mailbox and add 3 msgs +.. mailbox '{%s}%s' created + +-- $msg_no is 0 -- +HipHop Warning: %a +bool(false) + + +-- $msg_no is 4 -- +HipHop Warning: %a +bool(false) + + +-- $msg_no is 1,3 -- +HipHop Notice: %a +%unicode|string%(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +" + +-- $msg_no is 1:3 -- +HipHop Notice: %a +%unicode|string%(%d) "From: foo@anywhere.com +Subject: Test msg 1 +To: %s +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY="%s" + +" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchstructure_basic.php b/hphp/test/zend/bad/ext-imap/imap_fetchstructure_basic.php new file mode 100644 index 000000000..19fd24c47 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchstructure_basic.php @@ -0,0 +1,33 @@ +$key)); +} +var_dump($z->type); +var_dump($z->encoding); +var_dump($z->bytes); +var_dump($z->lines); +var_dump(is_object($z->parameters)); + +imap_close($stream_id); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_fetchstructure_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_fetchstructure_basic.php.expectf new file mode 100644 index 000000000..469cb23dd --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_fetchstructure_basic.php.expectf @@ -0,0 +1,21 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +HipHop Warning: %a +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +int(%d) +int(%d) +int(%d) +int(%d) +bool(true) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_gc_error.php b/hphp/test/zend/bad/ext-imap/imap_gc_error.php new file mode 100644 index 000000000..7d8b0775c --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_gc_error.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_gc_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_gc_error.php.expectf new file mode 100644 index 000000000..8b11ca82b --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_gc_error.php.expectf @@ -0,0 +1,6 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_getsubscribed_basic.php b/hphp/test/zend/bad/ext-imap/imap_getsubscribed_basic.php new file mode 100644 index 000000000..30501ac82 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_getsubscribed_basic.php @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_getsubscribed_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_getsubscribed_basic.php.expectf new file mode 100644 index 000000000..125e2cc85 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_getsubscribed_basic.php.expectf @@ -0,0 +1,18 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +bool(false) +Checking OK +bool(true) +object(stdClass)#%d (%d) { + [%sname"]=> + string(%d) "{%s}%s" + [%sattributes"]=> + int(%d) + [%sdelimiter"]=> + string(%d) "%s" +} \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_headerinfo_basic.php b/hphp/test/zend/bad/ext-imap/imap_headerinfo_basic.php new file mode 100644 index 000000000..5230aec69 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_headerinfo_basic.php @@ -0,0 +1,78 @@ +$key)); +} + +echo "Check type\n"; +var_dump($z->toaddress); +var_dump($z->fromaddress); +var_dump($z->reply_toaddress); +var_dump($z->senderaddress); +var_dump($z->subject); +var_dump($z->Subject); + +if ($z->Recent == 'R' || $z->Recent == 'N' || $z->Recent == ' ') { + echo "Recent: OK"; +} else { + echo "Recent: error: ".$z->Recent; +} +echo "\n"; + +if ($z->Unseen == 'U' || $z->Unseen == ' ') { + echo "Unseen: OK"; +} else { + echo "Unseen: error: ".$z->Unseen; +} +echo "\n"; + +if ($z->Flagged == 'F' || $z->Flagged == ' ') { + echo "Flagged: OK"; +} else { + echo "Flagged: error: ".$z->Flagged; +} +echo "\n"; + +if ($z->Answered == 'A' || $z->Answered == ' ') { + echo "Answered: OK"; +} else { + echo "Answered: error"; +} +echo "\n"; + +if ($z->Deleted == 'D' || $z->Deleted == ' ') { + echo "Deleted: OK"; +} else { + echo "Deleted: error"; +} +echo "\n"; + +if ($z->Draft == 'X' || $z->Draft == ' ') { + echo "Draft: OK"; +} else { + echo "Draft: error"; +} +echo "\n"; + +var_dump($z->Msgno); +var_dump($z->Size); +var_dump($z->udate); + +imap_close($stream_id); + +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_headerinfo_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_headerinfo_basic.php.expectf new file mode 100644 index 000000000..2a9224d66 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_headerinfo_basic.php.expectf @@ -0,0 +1,39 @@ +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +Check general fields +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +Check type +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +Recent: OK +Unseen: OK +Flagged: OK +Answered: OK +Deleted: OK +Draft: OK +string(%d) "%s" +string(%d) "%d" +int(%d) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_headerinfo_error.php b/hphp/test/zend/bad/ext-imap/imap_headerinfo_error.php new file mode 100644 index 000000000..b30e7f64a --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_headerinfo_error.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_headerinfo_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_headerinfo_error.php.expectf new file mode 100644 index 000000000..8b11ca82b --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_headerinfo_error.php.expectf @@ -0,0 +1,6 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_headers.php b/hphp/test/zend/bad/ext-imap/imap_headers.php new file mode 100644 index 000000000..18315a2a5 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_headers.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_headers.php.expectf b/hphp/test/zend/bad/ext-imap/imap_headers.php.expectf new file mode 100644 index 000000000..cd23c8186 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_headers.php.expectf @@ -0,0 +1,5 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_list_basic.php b/hphp/test/zend/bad/ext-imap/imap_list_basic.php new file mode 100644 index 000000000..b5802c949 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_list_basic.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_list_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_list_basic.php.expectf new file mode 100644 index 000000000..a63b40d35 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_list_basic.php.expectf @@ -0,0 +1,9 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +bool(true) +string(%s) "{%s}%s" \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_lsub_basic.php b/hphp/test/zend/bad/ext-imap/imap_lsub_basic.php new file mode 100644 index 000000000..7415c7d6d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_lsub_basic.php @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_lsub_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_lsub_basic.php.expectf new file mode 100644 index 000000000..234ccdf7e --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_lsub_basic.php.expectf @@ -0,0 +1,11 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +bool(false) +Checking OK +bool(true) +string(%s) "{%s}%s" \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_copy.php b/hphp/test/zend/bad/ext-imap/imap_mail_copy.php new file mode 100644 index 000000000..dfd89facf --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_copy.php @@ -0,0 +1,25 @@ + +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_copy.php.expectf b/hphp/test/zend/bad/ext-imap/imap_mail_copy.php.expectf new file mode 100644 index 000000000..eb2ce30bc --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_copy.php.expectf @@ -0,0 +1,13 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +Test with IMAP server +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_copy_basic.php b/hphp/test/zend/bad/ext-imap/imap_mail_copy_basic.php new file mode 100644 index 000000000..ed7d8516a --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_copy_basic.php @@ -0,0 +1,27 @@ +Nmsgs . "\n"; + +var_dump(imap_mail_copy($imap_stream, '1', 'INBOX.'.$mailbox_prefix)); + +imap_close($imap_stream); +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_copy_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_mail_copy_basic.php.expectf new file mode 100644 index 000000000..a269c25fc --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_copy_basic.php.expectf @@ -0,0 +1,7 @@ +*** Testing imap_mail_copy() : basic functionality *** +Create a new mailbox for test +Create a temporary mailbox and add 1 msgs +.. mailbox '%s' created +Msg Count in new mailbox: 1 +bool(true) +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_move.php b/hphp/test/zend/bad/ext-imap/imap_mail_move.php new file mode 100644 index 000000000..f3ce0cc5a --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_move.php @@ -0,0 +1,25 @@ + +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_move.php.expectf b/hphp/test/zend/bad/ext-imap/imap_mail_move.php.expectf new file mode 100644 index 000000000..eb2ce30bc --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_move.php.expectf @@ -0,0 +1,13 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +Test with IMAP server +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_move_basic.php b/hphp/test/zend/bad/ext-imap/imap_mail_move_basic.php new file mode 100644 index 000000000..bb8d7be70 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_move_basic.php @@ -0,0 +1,27 @@ +Nmsgs . "\n"; + +var_dump(imap_mail_move($imap_stream, '1', 'INBOX.'.$mailbox_prefix)); + +imap_close($imap_stream); +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mail_move_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_mail_move_basic.php.expectf new file mode 100644 index 000000000..a6a42e57b --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mail_move_basic.php.expectf @@ -0,0 +1,7 @@ +*** Testing imap_mail_move() : basic functionality *** +Create a new mailbox for test +Create a temporary mailbox and add 1 msgs +.. mailbox '%s' created +Msg Count in new mailbox: 1 +bool(true) +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mutf7_to_utf8.php b/hphp/test/zend/bad/ext-imap/imap_mutf7_to_utf8.php new file mode 100644 index 000000000..805b0849e --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mutf7_to_utf8.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_mutf7_to_utf8.php.expectf b/hphp/test/zend/bad/ext-imap/imap_mutf7_to_utf8.php.expectf new file mode 100644 index 000000000..4f91b9db6 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_mutf7_to_utf8.php.expectf @@ -0,0 +1,6 @@ +string(0) "" +string(1) "1" +HipHop Warning: %a +NULL +string(5) "täst" +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_num_msg_error.php b/hphp/test/zend/bad/ext-imap/imap_num_msg_error.php new file mode 100644 index 000000000..2473317c4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_num_msg_error.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_num_msg_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_num_msg_error.php.expectf new file mode 100644 index 000000000..cd23c8186 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_num_msg_error.php.expectf @@ -0,0 +1,5 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_num_recent_error.php b/hphp/test/zend/bad/ext-imap/imap_num_recent_error.php new file mode 100644 index 000000000..e81c548a4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_num_recent_error.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_num_recent_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_num_recent_error.php.expectf new file mode 100644 index 000000000..cd23c8186 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_num_recent_error.php.expectf @@ -0,0 +1,5 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_open_error.php b/hphp/test/zend/bad/ext-imap/imap_open_error.php new file mode 100644 index 000000000..94f02bde1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_open_error.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_open_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_open_error.php.expectf new file mode 100644 index 000000000..2f04b496f --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_open_error.php.expectf @@ -0,0 +1,11 @@ +Checking with no parameters +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +Checking with incorrect parameters +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +HipHop Notice: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_ping_error.php b/hphp/test/zend/bad/ext-imap/imap_ping_error.php new file mode 100644 index 000000000..d59e987b3 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_ping_error.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_ping_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_ping_error.php.expectf new file mode 100644 index 000000000..cd23c8186 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_ping_error.php.expectf @@ -0,0 +1,5 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_renamemailbox_basic.php b/hphp/test/zend/bad/ext-imap/imap_renamemailbox_basic.php new file mode 100644 index 000000000..ea330859a --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_renamemailbox_basic.php @@ -0,0 +1,37 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_renamemailbox_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_renamemailbox_basic.php.expectf new file mode 100644 index 000000000..e9a59f459 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_renamemailbox_basic.php.expectf @@ -0,0 +1,12 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +HipHop Warning: %a +HipHop Warning: %a +Checking OK +bool(true) +bool(true) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_rfc822_parse_headers_basic.php b/hphp/test/zend/bad/ext-imap/imap_rfc822_parse_headers_basic.php new file mode 100644 index 000000000..c32299bf6 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_rfc822_parse_headers_basic.php @@ -0,0 +1,78 @@ +$key)); +} + +echo "Check type\n"; +var_dump($z->toaddress); +var_dump($z->fromaddress); +var_dump($z->reply_toaddress); +var_dump($z->senderaddress); +var_dump($z->subject); +var_dump($z->Subject); + +if ($z->Recent == 'R' || $z->Recent == 'N' || $z->Recent == ' ') { + echo "Recent: OK"; +} else { + echo "Recent: error"; +} +echo "\n"; + +if ($z->Unseen == 'U' || $z->Unseen == ' ') { + echo "Unseen: OK"; +} else { + echo "Unseen: error"; +} +echo "\n"; + +if ($z->Flagged == 'F' || $z->Flagged == ' ') { + echo "Flagged: OK"; +} else { + echo "Flagged: error"; +} +echo "\n"; + +if ($z->Answered == 'A' || $z->Answered == ' ') { + echo "Answered: OK"; +} else { + echo "Answered: error"; +} +echo "\n"; + +if ($z->Deleted == 'D' || $z->Deleted == ' ') { + echo "Deleted: OK"; +} else { + echo "Deleted: error"; +} +echo "\n"; + +if ($z->Draft == 'X' || $z->Draft == ' ') { + echo "Draft: OK"; +} else { + echo "Draft: error"; +} +echo "\n"; + +var_dump($z->Msgno); +var_dump($z->Size); +var_dump($z->udate); + +imap_close($stream_id); + +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_rfc822_parse_headers_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_rfc822_parse_headers_basic.php.expectf new file mode 100644 index 000000000..3446b74bf --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_rfc822_parse_headers_basic.php.expectf @@ -0,0 +1,32 @@ +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +Check general fields +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +Check type +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +string(%d) "%s" +Recent: OK +Unseen: OK +Flagged: OK +Answered: OK +Deleted: OK +Draft: OK +string(%d) "%s" +string(%d) "%d" +int(%d) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_savebody_basic.php b/hphp/test/zend/bad/ext-imap/imap_savebody_basic.php new file mode 100644 index 000000000..c47d3812d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_savebody_basic.php @@ -0,0 +1,32 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_savebody_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_savebody_basic.php.expectf new file mode 100644 index 000000000..b73fffadc --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_savebody_basic.php.expectf @@ -0,0 +1,12 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +HipHop Warning: %a +bool(true) +Size: %d +bool(true) +Size: %d \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_timeout_basic.php b/hphp/test/zend/bad/ext-imap/imap_timeout_basic.php new file mode 100644 index 000000000..429e4eb9d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_timeout_basic.php @@ -0,0 +1,31 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_timeout_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_timeout_basic.php.expectf new file mode 100644 index 000000000..c9ebd4993 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_timeout_basic.php.expectf @@ -0,0 +1,17 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +GET values: +int(%d) +int(%d) +int(%d) +int(%d) +SET values: +bool(true) +bool(true) +bool(true) +CHECK values: +int(10) +int(10) +int(10) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_undelete_basic.php b/hphp/test/zend/bad/ext-imap/imap_undelete_basic.php new file mode 100644 index 000000000..51b7606e1 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_undelete_basic.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_undelete_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_undelete_basic.php.expectf new file mode 100644 index 000000000..afc511808 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_undelete_basic.php.expectf @@ -0,0 +1,3 @@ +Create a temporary mailbox and add 1 msgs +.. mailbox '{%s}%s' created +bool(true) \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_undelete_error.php b/hphp/test/zend/bad/ext-imap/imap_undelete_error.php new file mode 100644 index 000000000..e156406e4 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_undelete_error.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_undelete_error.php.expectf b/hphp/test/zend/bad/ext-imap/imap_undelete_error.php.expectf new file mode 100644 index 000000000..8b11ca82b --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_undelete_error.php.expectf @@ -0,0 +1,6 @@ +Checking with no parameters +HipHop Warning: %a +Checking with incorrect parameter type +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_utf8.php b/hphp/test/zend/bad/ext-imap/imap_utf8.php new file mode 100644 index 000000000..f03ab9f67 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_utf8.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_utf8.php.expectf b/hphp/test/zend/bad/ext-imap/imap_utf8.php.expectf new file mode 100644 index 000000000..147b210d6 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_utf8.php.expectf @@ -0,0 +1,6 @@ +string(0) "" +string(1) "1" +HipHop Warning: %a +NULL +string(4) "%s" +Done \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_utf8_to_mutf7_basic.php b/hphp/test/zend/bad/ext-imap/imap_utf8_to_mutf7_basic.php new file mode 100644 index 000000000..11fb6ed13 --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_utf8_to_mutf7_basic.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-imap/imap_utf8_to_mutf7_basic.php.expectf b/hphp/test/zend/bad/ext-imap/imap_utf8_to_mutf7_basic.php.expectf new file mode 100644 index 000000000..54ecd305d --- /dev/null +++ b/hphp/test/zend/bad/ext-imap/imap_utf8_to_mutf7_basic.php.expectf @@ -0,0 +1,6 @@ +string(0) "" +string(1) "1" +HipHop Warning: %a +NULL +string(8) "t&AOQ-st" +Done \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/bug44098.php b/hphp/test/zend/good/ext-imap/bug44098.php new file mode 100644 index 000000000..bbbad4aa6 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/bug44098.php @@ -0,0 +1,9 @@ +, expected \n"; +} else { + echo "ok"; +} +?> \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/bug44098.php.expectf b/hphp/test/zend/good/ext-imap/bug44098.php.expectf new file mode 100644 index 000000000..b5754e203 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/bug44098.php.expectf @@ -0,0 +1 @@ +ok \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/imap_alerts_error.php b/hphp/test/zend/good/ext-imap/imap_alerts_error.php new file mode 100644 index 000000000..80b6f1aa9 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/imap_alerts_error.php @@ -0,0 +1,16 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/imap_alerts_error.php.expectf b/hphp/test/zend/good/ext-imap/imap_alerts_error.php.expectf new file mode 100644 index 000000000..34223d729 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/imap_alerts_error.php.expectf @@ -0,0 +1,6 @@ +*** Testing imap_alerts() : error conditions *** + +-- Testing imap_alerts() function with one argument -- +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/imap_base64_basic.php b/hphp/test/zend/good/ext-imap/imap_base64_basic.php new file mode 100644 index 000000000..080f220f6 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/imap_base64_basic.php @@ -0,0 +1,34 @@ +.<,'; +$base64 = base64_encode($str); +if (imap_base64($base64) == $str) { + echo "TEST PASSED\n"; +} else { + echo "TEST FAILED"; +} + +$hex = b'x00\x01\x02\x03\x04\x05\x06\xFA\xFB\xFC\xFD\xFE\xFF'; +$base64 = base64_encode($hex); +if (imap_base64($base64) == $hex) { + echo "TEST PASSED\n"; +} else { + echo "TEST FAILED"; +} + +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/imap_base64_basic.php.expectf b/hphp/test/zend/good/ext-imap/imap_base64_basic.php.expectf new file mode 100644 index 000000000..620def496 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/imap_base64_basic.php.expectf @@ -0,0 +1,5 @@ +*** Testing imap_base64() : basic functionality *** +TEST PASSED +TEST PASSED +TEST PASSED +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/imap_binary_basic.php b/hphp/test/zend/good/ext-imap/imap_binary_basic.php new file mode 100644 index 000000000..453f0feb0 --- /dev/null +++ b/hphp/test/zend/good/ext-imap/imap_binary_basic.php @@ -0,0 +1,30 @@ +.<,'; +$base64 = imap_binary($str); +var_dump(bin2hex($base64)); + +echo "Encode some hexadecimal data\n"; +$hex = b'x00\x01\x02\x03\x04\x05\x06\xFA\xFB\xFC\xFD\xFE\xFF'; +$base64 = imap_binary($hex); +var_dump(bin2hex($base64)); + +?> +===Done=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-imap/imap_binary_basic.php.expectf b/hphp/test/zend/good/ext-imap/imap_binary_basic.php.expectf new file mode 100644 index 000000000..ee964eafc --- /dev/null +++ b/hphp/test/zend/good/ext-imap/imap_binary_basic.php.expectf @@ -0,0 +1,10 @@ +*** Testing imap_binary() : basic functionality *** +Encode as short string +%string|unicode%(136) "5647687063794270637942686269426c654746746347786c49484e30636d6c755a794230627942695a53426959584e6c49445930494756755932396b0d0a5a57513d0d0a" +Encode a string which results in more than 60 charters of output +%string|unicode%(200) "56476870637942706379426849477876626d6367633352796157356e4948647064476767636d567a64577830637942706269427462334a6c4948526f0d0a595734674e6a416759326868636d466a64475679637942765a694276645852776458513d0d0a" +Encode a string with special characters +%string|unicode%(60) "5879737450587464573130374f30422b497a3876506934384c413d3d0d0a" +Encode some hexadecimal data +%string|unicode%(144) "65444177584867774d5678344d444a636544417a584867774e4678344d445663654441325848684751567834526b4a6365455a4458486847524678340d0a526b566365455a470d0a" +===Done=== \ No newline at end of file diff --git a/hphp/tools/import_zend_test.py b/hphp/tools/import_zend_test.py index 276274ff5..6afd6574a 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/imap', '/ext/intl', '/ext/ldap', '/ext/mbstring',