diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-30 02:33:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-30 02:33:16 +0000 |
commit | 453368afdffaa2017c22f75f72b736a3b3cb510a (patch) | |
tree | 9110d98320549877fbcf1d61bd1e66b550124f91 /ext/imap | |
parent | e3672e49fc70e3d26b046d062cf3acc6dd06e54a (diff) | |
download | php-git-453368afdffaa2017c22f75f72b736a3b3cb510a.tar.gz |
Removed pointless checks.
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/php_imap.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index ca315598b5..41918579fa 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1866,9 +1866,7 @@ PHP_FUNCTION(imap_mailboxmsginfo) ZEND_FETCH_RESOURCE(imap_le_struct, pils *, streamind, -1, "imap", le_imap); /* Initialize return object */ - if (object_init(return_value) == FAILURE) { - RETURN_FALSE; - } + object_init(return_value); unreadmsg = 0; deletedmsg = 0; @@ -2497,9 +2495,7 @@ PHP_FUNCTION(imap_status) convert_to_string_ex(mbx); convert_to_long_ex(flags); - if (object_init(return_value) == FAILURE) { - RETURN_FALSE; - } + object_init(return_value); if (mail_status(imap_le_struct->imap_stream, Z_STRVAL_PP(mbx), Z_LVAL_PP(flags))) { add_property_long(return_value, "flags", IMAPG(status_flags)); @@ -2548,9 +2544,7 @@ PHP_FUNCTION(imap_bodystruct) RETURN_FALSE; } - if (object_init(return_value) == FAILURE) { - RETURN_FALSE; - } + object_init(return_value); body=mail_body(imap_le_struct->imap_stream, Z_LVAL_PP(msg), Z_STRVAL_PP(section)); if (body->type <= TYPEMAX) { |