summaryrefslogtreecommitdiff
path: root/sapi/tests
Commit message (Collapse)AuthorAgeFilesLines
* Clean up server-tests.php remainsChristoph M. Becker2018-11-238-249/+0
| | | | | | | | | | | | | | | | | | | | | | | sapi/tests/ has been introduced as a generic means to test different SAPIs[1]. run-tests2.php has later be renamed to server-tests.php and recently been dropped[2]. However, the sapi/tests/test00?.php test cases remained, even though they make no sense for run-tests.php, since they use an unsupported format for the `--ENV--` section and the completely unsupported `--HEADERS--` section, respectively. While these tests ran successfully under run-tests.php, that was only by accident, and they did not really test something useful. Therefore, we remove these tests altogether. sapi/tests/bug69487.phpt is actually a CGI test (CGI is enforced due to the `--POST--` section), so we move it to sapi/cgi/tests, which leaves sapi/tests/ empty. Thus, we also remove the sapi/ directory from run-tests.php. Finally, we remove the `--HEADERS--` and `--REQUEST--` sections from the list of allowed run-tests.php sections. [1] <http://git.php.net/?p=php-src.git;a=commit;h=b671380b6b5b6e1f4f235e810afa4199e989d2ba> [2] <http://git.php.net/?p=php-src.git;a=commit;h=4f36acb9e65935aa657f1f22e2320a401bdbdad3>
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-156-6/+4
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in testsGabriel Caruso2018-10-142-2/+2
|
* Merge branch 'PHP-5.6'Christoph M. Becker2015-08-111-0/+20
|\ | | | | | | | | * PHP-5.6: Fix #69487: SAPI may truncate POST data
| * Fix #69487: SAPI may truncate POST dataChristoph M. Becker2015-08-111-0/+20
| | | | | | | | | | | | | | If SG(request_info).request_body can't be completely written (e.g. due to a full drive), only parts of the POST data will be available. This patch changes this, so that SG(request_info).request_body will be reset in this case, and a warning will be thrown.
| * Revert previous unintentional change to thisXinchen Hui2015-01-271-0/+1
| |
| * Also Fixed #68571 in CGI SAPI, and some cleanupXinchen Hui2015-01-271-1/+0
| |
* | Fixed sapi/tests (maybe needs some run-test.php people's reviewing)Xinchen Hui2015-05-272-3/+3
|/
* - Rewrite scanner to be based on re2c instead of flexMarcus Boerger2008-03-162-6/+6
| | | | | | | | | The full patch is available as: http://php.net/~helly/php-re2c-5.3-20080316.diff.txt This is against php-re2c repository version 98 An older patch against version 97 is available under: http://php.net/~helly/php-re2c-97-20080316.diff.txt
* - Remove unused blocksMarcus Boerger2004-05-197-9/+0
|
* many new enhancements to run-tests that allow for testing cgi and otherShane Caraveo2003-03-257-0/+240
sapi modules via http. see README.TESTING2 for more details several sapi tests added