mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
map fixes
This commit is contained in:
parent
cb6fb59b59
commit
f1b2adb881
1 changed files with 4 additions and 3 deletions
|
@ -4023,7 +4023,8 @@ PHP_FUNCTION(imap_mail)
|
||||||
message = NULL;
|
message = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_php_imap_mail(to->val, subject->val, message->val, headers->val, cc->val, bcc->val, rpath->val)) {
|
if (_php_imap_mail(to->val, subject->val, message->val, headers?headers->val:NULL, cc?cc->val:NULL,
|
||||||
|
bcc?bcc->val:NULL, rpath?rpath->val:NULL)) {
|
||||||
RETURN_TRUE;
|
RETURN_TRUE;
|
||||||
} else {
|
} else {
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
|
@ -4044,7 +4045,7 @@ PHP_FUNCTION(imap_search)
|
||||||
int argc = ZEND_NUM_ARGS();
|
int argc = ZEND_NUM_ARGS();
|
||||||
SEARCHPGM *pgm = NIL;
|
SEARCHPGM *pgm = NIL;
|
||||||
|
|
||||||
if (zend_parse_parameters(argc, "rs|ls", &streamind, &criteria, &flags, &charset) == FAILURE) {
|
if (zend_parse_parameters(argc, "rs|lS", &streamind, &criteria, &flags, &charset) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue