summaryrefslogtreecommitdiff
path: root/ext/imap
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-151-2/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix broken fix for #80239
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-151-2/+2
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix broken fix for #80239
| | | * Fix broken fix for #80239Christoph M. Becker2020-10-151-2/+2
| | | | | | | | | | | | | | | | No idea why that `git am` failed that badly.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-152-0/+13
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80239: imap_rfc822_write_address() leaks memory
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-152-0/+13
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80239: imap_rfc822_write_address() leaks memory
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-152-0/+13
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80239: imap_rfc822_write_address() leaks memory
| | | * Fix #80239: imap_rfc822_write_address() leaks memoryChristoph M. Becker2020-10-152-0/+13
| | | | | | | | | | | | | | | | We have to free the address when we're finished with it.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-132-0/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #64076: imap_sort() does not return FALSE on failure
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-132-0/+26
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #64076: imap_sort() does not return FALSE on failure
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-132-0/+26
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #64076: imap_sort() does not return FALSE on failure
| | | * Fix #64076: imap_sort() does not return FALSE on failureChristoph M. Becker2020-10-132-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If unsupported `$search_criteria` are passed to `imap_sort()`, the function returns an empty array, but there is also an error on the libc-client error stack ("Unknown search criterion: UNSUPPORTED (errflg=2)"). If, on the other hand, unsupported `$criteria` or unsupported `$flags` are passed, the function returns `false`. We solve this inconsistency by returning `false` for unsupported `$search_criteria` as well. Closes GH-6332.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-131-0/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Ignore memory leaks reported for some libc-client functions
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-131-0/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Ignore memory leaks reported for some libc-client functions
| | * | Ignore memory leaks reported for some libc-client functionsChristoph M. Becker2020-10-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least on Windows, some static variables are lazily initialized during `mail_open()` and `mail_lsub()`, which are reported as memory leaks. We suppress these false positives. Closes GH-6326.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-122-0/+14
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80226: imap_sort() leaks sortpgm memory
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-122-0/+14
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80226: imap_sort() leaks sortpgm memory
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-122-0/+14
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80226: imap_sort() leaks sortpgm memory
| | | * Fix #80226: imap_sort() leaks sortpgm memoryChristoph M. Becker2020-10-122-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | We need to free what we have allocated. Closes GH-6327.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-123-5/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Change parameters types from int to bool
| * | | Change parameters types from int to boolChristoph M. Becker2020-10-123-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are typical boolean parameters, so we shouldn't advertize them as integers. For the `$reverse` parameter that even fixes expectations, because the `reverse` member is a bitfield of 1 bit, so assigning any even integer would not set it. Closes GH-6328.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-122-9/+35
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80216: imap_mail_compose() does not validate types/encodings
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-122-9/+35
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80216: imap_mail_compose() does not validate types/encodings
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-122-9/+35
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80216: imap_mail_compose() does not validate types/encodings
| | | * Fix #80216: imap_mail_compose() does not validate types/encodingsChristoph M. Becker2020-10-122-9/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to check whether the given `type`s and `encoding`s are within bounds to avoid segfaults and out-of-bound reads. Closes GH-6323.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-122-2/+19
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80223: imap_mail_compose() leaks envelope on malformed bodies
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-122-2/+19
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80223: imap_mail_compose() leaks envelope on malformed bodies
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-122-2/+19
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80223: imap_mail_compose() leaks envelope on malformed bodies
| | | * Fix #80223: imap_mail_compose() leaks envelope on malformed bodiesChristoph M. Becker2020-10-122-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | We have to clean up even on failure. Closes GH-6322.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-121-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80220: imap_mail_compose() may leak memory
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-121-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80220: imap_mail_compose() may leak memory
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-121-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80220: imap_mail_compose() may leak memory
| | | * Fix #80220: imap_mail_compose() may leak memoryChristoph M. Becker2020-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unless `topbod` is of `TYPEMULTIPART`, `mail_free_body()` does not free the `nested.part`; while we could do this ourselves, instead we just ignore additional bodies in this case, i.e. we don't attach them in the first place. Closes GH-6321.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-102-1/+77
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80215: imap_mail_compose() may modify by-val parameters
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-102-1/+77
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80215: imap_mail_compose() may modify by-val parameters
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-102-1/+77
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80215: imap_mail_compose() may modify by-val parameters
| | | * Fix #80215: imap_mail_compose() may modify by-val parametersChristoph M. Becker2020-10-102-1/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We separate the input arrays and all sub-arrays to avoid modification of the passed parameters. This should be rewritten to use `zend_string`s for the "master" branch. Closes GH-6316.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-102-0/+25
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #80213: imap_mail_compose() segfaults on certain $bodies
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-10-102-0/+25
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #80213: imap_mail_compose() segfaults on certain $bodies
| | * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-102-0/+25
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Fix #80213: imap_mail_compose() segfaults on certain $bodies
| | | * Fix #80213: imap_mail_compose() segfaults on certain $bodiesChristoph M. Becker2020-10-102-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to cater to non-associative arrays where the key may be `NULL`; we just skip these elements. Closes GH-6315.
* | | | Merge branch 'PHP-8.0' into masterChristoph M. Becker2020-10-102-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Change imap_mail_compose() $body param to $bodies
| * | | Change imap_mail_compose() $body param to $bodiesChristoph M. Becker2020-10-102-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This parameter actually expects an array of bodies, so we should name it accordingly. Closes GH-6313.
* | | | Fix [-Wlogical-op] in IMAPGeorge Peter Banyard2020-10-101-1/+1
|/ / /
* | | Update ext/imap parameter namesNikita Popov2020-10-0811-258/+247
| | | | | | | | | | | | Closes GH-6299.
* | | Fix imap test expectation which is still too strict for WindowsChristoph M. Becker2020-10-081-1/+1
| | |
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-10-082-3/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix too strict imap test expectations
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-081-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix too strict imap test expectations
| | * Fix too strict imap test expectationsChristoph M. Becker2020-10-082-2/+2
| | |
* | | Fix potential mail related segfault on WindowsChristoph M. Becker2020-10-081-1/+1
| | | | | | | | | | | | | | | `rpath` may be `NULL` here, in which case we must not access its members.
* | | Skip one more imap test under asanNikita Popov2020-09-281-0/+1
| | | | | | | | | | | | | | | Wondering if the error just moves to a different test each time we skip one?