mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Clean up unnecessary ternary expressions and simplify some returns
- Simplify conditions - Use ZEND_HASH_APPLY_* instead of hard-coded booleans - Use ZEND_NORMALIZE_BOOL - Drop sign in favor of ZEND_NORMALIZE_BOOL
This commit is contained in:
parent
6c16f9b69c
commit
cdd8368d6f
26 changed files with 39 additions and 63 deletions
|
@ -4074,11 +4074,8 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
|
|||
}
|
||||
fprintf(sendmail, "\n%s\n", message);
|
||||
ret = pclose(sendmail);
|
||||
if (ret == -1) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return ret != -1;
|
||||
} else {
|
||||
php_error_docref(NULL, E_WARNING, "Could not execute mail delivery program");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue