Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8.1k
Promote warnings to Error in IMAP#6164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -31,11 +31,16 @@ $iterator = 1; | ||
| imap_check($stream_id); | ||
| foreach($options as $option) { | ||
| echo "\n-- Iteration $iterator --\n"; | ||
| if(is_string(imap_fetchbody($stream_id, $msg_uid, $section, $option))) { | ||
| echo "FT_UID valid\n"; | ||
| } else { | ||
| echo "FT_UID not valid\n"; | ||
| try { | ||
| if(is_string(imap_fetchbody($stream_id, $msg_uid, $section, $option))) { | ||
| echo "FT_UID valid\n"; | ||
| } else { | ||
| echo "FT_UID not valid\n"; | ||
| } | ||
| } catch (\ValueError $e) { | ||
| echo $e->getMessage() . \PHP_EOL; | ||
| } | ||
| $iterator++; | ||
| } | ||
| @@ -44,10 +49,10 @@ foreach($options as $option) { | ||
| <?php | ||
| require_once(__DIR__.'/clean.inc'); | ||
| ?> | ||
| --EXPECTF-- | ||
| --EXPECT-- | ||
| *** Testing imap_fetchbody() : usage variations *** | ||
| Create a temporary mailbox and add 1 msgs | ||
| .. mailbox '{%s}%s' created | ||
| .. mailbox '{127.0.0.1:143/norsh}INBOX.phpttest' created | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wildcard got lost. | ||
| -- Iteration 1 -- | ||
| FT_UID valid | ||
| @@ -62,11 +67,7 @@ FT_UID valid | ||
| FT_UID valid | ||
| -- Iteration 5 -- | ||
| Warning: imap_fetchbody(): Invalid value for the options parameter in %s on line %d | ||
| FT_UID not valid | ||
| imap_fetchbody(): Argument #4 ($options) must be a bitmask of FT_UID, FT_PEEK, and FT_INTERNAL | ||
| -- Iteration 6 -- | ||
| Warning: imap_fetchbody(): Invalid value for the options parameter in %s on line %d | ||
| FT_UID not valid | ||
| imap_fetchbody(): Argument #4 ($options) must be a bitmask of FT_UID, FT_PEEK, and FT_INTERNAL | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -30,22 +30,26 @@ $iterator = 1; | ||
| imap_check($stream_id); | ||
| foreach($options as $option) { | ||
| echo "\n-- Iteration $iterator --\n"; | ||
| if(is_string(imap_fetchheader($stream_id, $msg_uid, $option))) { | ||
| echo "FT_UID valid\n"; | ||
| } else { | ||
| echo "FT_UID not valid\n"; | ||
| try { | ||
| if (is_string(imap_fetchheader($stream_id, $msg_uid, $option))) { | ||
| echo "FT_UID valid\n"; | ||
| } else { | ||
| echo "FT_UID not valid\n"; | ||
| } | ||
| } catch (\ValueError $e) { | ||
| echo $e->getMessage() . \PHP_EOL; | ||
| } | ||
| $iterator++; | ||
| } | ||
| ?> | ||
| --CLEAN-- | ||
| <?php | ||
| require_once(__DIR__.'/clean.inc'); | ||
| ?> | ||
| --EXPECTF-- | ||
| --EXPECT-- | ||
| *** Testing imap_fetchheader() : usage variations *** | ||
| Create a temporary mailbox and add 1 msgs | ||
| .. mailbox '{%s}%s' created | ||
| .. mailbox '{127.0.0.1:143/norsh}INBOX.phpttest' created | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wildcard got lost. | ||
| -- Iteration 1 -- | ||
| FT_UID valid | ||
| @@ -60,11 +64,7 @@ FT_UID valid | ||
| FT_UID valid | ||
| -- Iteration 5 -- | ||
| Warning: imap_fetchheader(): Invalid value for the options parameter in %s on line %d | ||
| FT_UID not valid | ||
| imap_fetchheader(): Argument #3 ($options) must be a bitmask of FT_UID, FT_PREFETCHTEXT, and FT_INTERNAL | ||
| -- Iteration 6 -- | ||
| Warning: imap_fetchheader(): Invalid value for the options parameter in %s on line %d | ||
| FT_UID not valid | ||
| imap_fetchheader(): Argument #3 ($options) must be a bitmask of FT_UID, FT_PREFETCHTEXT, and FT_INTERNAL | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wildcard got lost.