Máté Kocsis
b5c7a83dca
Remove unnecessary PHPDoc-alike blocks from tests
...
Closes GH-5759
2020-06-24 13:13:44 +02:00
Christoph M. Becker
6983ae751c
Fix #47983 : mixed LF and CRLF line endings in mail()
...
Email headers are supposed to be separated with CRLF. Period.
2020-04-02 14:51:14 +02:00
Christoph M. Becker
737f7dd8f6
Prevent imap mail tests from borking instead of skipping
...
As of commit e49593a[1], run-tests.php is rather picky regarding the
output of SKIPIF sections, so we have to suppress warnings for failing
imap_open().
[1] <http://git.php.net/?p=php-src.git;a=commit;h=e49593a7c3159a5673ce74b4e5133f1264dc313f >
2020-04-02 12:51:22 +02:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Máté Kocsis
afdaa91170
Fix #78880 : Final spelling fixes
2020-01-16 19:14:31 +01:00
Christoph M. Becker
f1e00033e6
Allows further tests to run on Windows
2020-01-09 12:04:29 +01:00
Christoph M. Becker
64633044c5
Unify mail related tests for *nix and Windows
...
Currently mail related tests are split for *nix and Windows (if there
are even Windows versions). The basic difference is that the *nix
variants set the INI directive sendmail_path to just write the email to
disk, while the Windows tests use ext/imap. The latter tests are way
more verbose, and such duplicated tests are generally a pain point.
Furthermore, the Windows tests are much slower, and could not be run
without ext/imap being available.
We therefore introduce a small fakemail application, which basically
works like `tee <path> >/dev/null`, and which will be shipped with the
Windows tests packs. fakemail.exe would also need to be added to the
PHP binary SDK, so these tests could be run during developments.
To cater to the remaining differences, we also introduce support for
`{MAIL:<path>}` placeholders in the INI sections to run-tests.php. How
to use this can be seen in mail_basic.phpt, which is currently the only
modified test case, because these tests are yet supposed to fail on
Windows, due to the missing fakemail.exe in the PHP SDK.
2020-01-09 12:04:28 +01:00
Christoph M. Becker
d7833fd974
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #54298 : Using empty additional_headers adding extraneous CRLF
2020-01-06 14:51:14 +01:00
Christoph M. Becker
09ebeba1af
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #54298 : Using empty additional_headers adding extraneous CRLF
2020-01-06 14:48:46 +01:00
Christoph M. Becker
ae2150692a
Fix #54298 : Using empty additional_headers adding extraneous CRLF
...
If the header string is empty, we pass `NULL` to `php_mail()` to avoid
further checks on the string length.
2020-01-06 14:47:23 +01:00
Christoph M. Becker
ade217d05c
Remove duplicate test cases
...
These had originally used other exit codes as mail_basic5.phpt, but
that was changed later with commit d1b12c9[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=d1b12c9a3031841302722d6f6706e4598a639d7a >
2020-01-05 20:08:39 +01:00
Máté Kocsis
633926021b
Remove ezmlm_hash() function
2019-12-05 13:15:54 +01:00
Fabien Villepinte
a555cc0b3d
Clean DONE tags from tests
...
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.
Closes GH-4872.
2019-11-07 21:31:47 +01:00
George Peter Banyard
6d6d954d0d
Cleanup of remaining E_STRICT in tests
2019-07-23 11:27:23 +02:00
Nikita Popov
e9e2fa4ad4
Deprecate ezmlm_hash()
2019-07-22 11:39:52 +02:00
Nikita Popov
59852c0321
Remove redundant 64-bit ezmlm_hash() test
...
This test is the same as the as ezmlm_hash_basic.phpt. This function
does not behave differently on 32-bit and 64-bit.
2019-07-11 17:09:18 +02:00
Christoph M. Becker
6219815110
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test expectation
2019-03-29 09:58:37 +01:00
Christoph M. Becker
9d8b913de5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test expectation
2019-03-29 09:56:58 +01:00
Christoph M. Becker
0aa1a2c833
Fix test expectation
...
The `W32_SM_SENDMAIL_FROM_MALFORMED` error message will only be shown
if the `$additional_headers` parameter is passed to `mail`, which is
not the case for this test. Instead we have to expect `BAD_MSG_RPATH`.
2019-03-29 09:55:04 +01:00
Fabien Villepinte
26dfce7f36
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 22:55:30 +01:00
Nikita Popov
2580a7ba09
More zpp error/variation test removals
2019-03-07 17:09:43 +01:00
Nikita Popov
7207686fcf
Avoid file conflicts in mail tests
2019-02-19 15:54:46 +01:00
Nikita Popov
8bc663f43b
Remove zpp variation tests
2019-02-05 09:38:55 +01:00
Peter Kokot
d7a3edd45d
Trim trailing whitespace in *.phpt
2018-10-14 19:46:15 +02:00
Peter Kokot
782352c54a
Trim trailing whitespace in *.phpt
2018-10-14 19:45:12 +02:00
Peter Kokot
17ccbeec32
Trim trailing whitespace in *.phpt
2018-10-14 19:44:14 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Peter Kokot
902d39a3a7
Trim trailing whitespace in source code files
2018-10-13 14:14:50 +02:00
Gabriel Caruso
6dd9fad0c0
Revert changes in test file
...
This reverts changes made in 2f700384 and 4fcaebba . This test is
supposed to run
only on Windows indeed, as in a Unix environment with a mail server
configured,
an email will be send. On Windows, only emptying the SMTP ini directives
is enough.
2018-08-31 08:48:48 -03:00
Gabriel Caruso
4fcaebbab8
Fix tests in some builds
...
Looks like the EXPECTREGEX was eating the =DONE= section
2018-08-31 08:09:14 -03:00
Gabriel Caruso
2f7003847d
Make more tests run on Linux
2018-08-28 21:20:00 -03:00
Gabriel Caruso
84b195d9fc
Fix some misspellings
2018-08-12 16:15:45 +02:00
Gabriel Caruso
9c8b3ae43f
Make more tests run on 64bit plataforms
2018-07-30 09:43:09 -03:00
Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Gabriel Caruso
21e3b0c70c
Remove trailing whitespace in inc files
2018-02-10 19:20:23 +01:00
Gabriel Caruso
2d48d734a2
Fix some misspellings
2018-02-06 16:59:00 +01:00
Joe Watkins
1d6f9345bc
fix test
2017-01-01 16:17:03 +00:00
Nikita Popov
45f7b2bcc8
Fix CRLF line-endings in tests
...
Also fix a single instance of CRLF in ibase_query.c.
2016-11-20 22:31:24 +01:00
Pedro Magalhães
9c5af4e4cb
Remove the b prefix from literals on unrelated tests
2016-11-20 21:11:53 +01:00
Christoph M. Becker
f72c27590f
Merge branch 'PHP-7.1'
2016-09-30 11:50:57 +02:00
Christoph M. Becker
dd93712911
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-30 11:40:55 +02:00
Christoph M. Becker
e72165bb86
Fix #73203 : passing additional_parameters causes mail to fail
...
We make sure that there's no unsigned underflow, which happened for `y==0`.
2016-09-30 11:38:09 +02:00
Yasuo Ohgaki
6e530502d2
Implemented Bug #68776 mail() does not have mail header injection prevention for additional headers
...
(PR 2060)
2016-09-15 06:43:57 +09:00
Stanislav Malyshev
265b73e6ff
Merge branch 'PHP-5.6'
...
* PHP-5.6:
Move strlen() check to php_mail_detect_multiple_crlf()
Fixed Bug #69874 : Can't set empty additional_headers for mail()
Conflicts:
ext/standard/mail.c
2015-06-29 00:31:56 -07:00
Stanislav Malyshev
8f2e08239f
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Move strlen() check to php_mail_detect_multiple_crlf()
Fixed Bug #69874 : Can't set empty additional_headers for mail()
2015-06-28 20:23:00 -07:00
Stanislav Malyshev
cd9c39d77c
Merge branch 'pull-request/1350' into PHP-5.4
...
* pull-request/1350:
Move strlen() check to php_mail_detect_multiple_crlf()
Fixed Bug #69874 : Can't set empty additional_headers for mail()
2015-06-28 20:18:56 -07:00
Yasuo Ohgaki
dacea3f6fb
Fixed Bug #69874 : Can't set empty additional_headers for mail()
2015-06-19 12:19:12 +09:00
Stanislav Malyshev
d4407e1cb9
Merge branch 'PHP-5.6'
...
* PHP-5.6:
add NEWS
Fixed bug #68776
fix test
update NEWS
Fix bug #69646 OS command injection vulnerability in escapeshellarg
Fix #69719 - more checks for nulls in paths
fix test description
Fixed Buf #68812 Unchecked return value.
Conflicts:
ext/dom/document.c
ext/gd/gd.c
ext/standard/exec.c
2015-06-09 21:39:59 -07:00
Stanislav Malyshev
e10af61862
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fixed bug #68776
2015-06-09 21:33:38 -07:00
Yasuo Ohgaki
9d168b863e
Fixed bug #68776
2015-06-09 21:32:54 -07:00