summaryrefslogtreecommitdiff
path: root/sapi/cgi/tests
Commit message (Collapse)AuthorAgeFilesLines
* Run tidyNikita Popov2020-09-183-3/+3
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Add many missing closing PHP tags to testsMáté Kocsis2020-08-091-0/+1
| | | | Closes GH-5958
* Simplify and fix php-cgi detectionNikita Popov2020-06-261-14/+11
| | | | Make it work for installed PHP binaries.
* Reindent phpt filesNikita Popov2020-02-038-78/+78
|
* Merge branch 'PHP-7.4'Nikita Popov2020-01-271-0/+41
|\ | | | | | | | | * PHP-7.4: Fix bug #78323: Code 0 is returned on invalid options
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-01-271-0/+41
| |\ | | | | | | | | | | | | * PHP-7.3: Fix bug #78323: Code 0 is returned on invalid options
| | * Fix bug #78323: Code 0 is returned on invalid optionsIvan Mikheykin2020-01-271-0/+41
| | | | | | | | | | | | | | | Set CLI exit code to 1 when invalid parameters are passed, and print error to stderr.
| | * Trim trailing whitespace in *.phptPeter Kokot2018-10-1410-18/+18
| | |
* | | Clean DONE tags from testsFabien Villepinte2019-11-073-6/+0
|/ / | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | Move shebang handling into the lexerNikita Popov2019-07-151-0/+9
| | | | | | | | | | | | | | | | | | | | Instead of handling shebang lines by adjusting the file pointer in individual SAPIs, move the handling into the lexer, where this is both a lot simpler and more robust. Whether the shebang should be skipped is controlled by CG(skip_shebang) -- we might want to do that in more cases. This fixed bugs #60677 and #78066.
* | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-158-9/+9
| |
* | Update and fix remaining year ranges (2019)Peter Kokot2019-02-081-2/+2
| | | | | | | | | | | | This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
* | Clean up server-tests.php remainsChristoph M. Becker2018-11-231-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Trim trailing whitespace in testsGabriel Caruso2018-10-149-19/+19
| |
* | Merge branch 'PHP-7.3'Christoph M. Becker2018-10-081-0/+48
|\ \ | |/ | | | | | | * PHP-7.3: Fix #76954: apache_response_headers removes last character from header name
| * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2018-10-081-0/+48
| |\ | | | | | | | | | | | | * PHP-7.2: Fix #76954: apache_response_headers removes last character from header name
| | * Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-10-081-0/+48
| | |\ | | | | | | | | | | | | | | | | * PHP-7.1: Fix #76954: apache_response_headers removes last character from header name
| | | * Fix #76954: apache_response_headers removes last character from header namestodorovic2018-10-081-0/+48
| | | |
* | | | Make more tests run on LinuxGabriel Caruso2018-08-281-5/+1
|/ / /
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-204-4/+4
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | Remove trailing whitespace in inc filesGabriel Caruso2018-02-101-1/+1
|/ /
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-11-281-0/+35
|\ \ | |/ | | | | | | * PHP-7.1: Follow up on bug #75574 for FCGI side
| * Follow up on bug #75574 for FCGI sideAnatol Belski2017-11-281-0/+35
| |
* | Remove more PHP 6 leftovers from testsNikita Popov2016-11-241-5/+5
| |
* | Use "Standard input code" instead of "php://stdin"Andrea Faulds2016-11-121-1/+1
| |
* | Show "php://stdin" instead of "-" in error messagesAndrea Faulds2016-11-121-1/+1
|/
* fork testAnatol Belski2015-09-301-0/+34
|
* fix tests on WindowsAnatol Belski2015-09-304-3/+23
|
* tweak cgi binary searchAnatol Belski2015-09-302-14/+19
|
* Update exception names in tests after formatting changes.Aaron Piotrowski2015-05-171-1/+1
|
* Tweak uncaught exception message displayNikita Popov2015-05-171-1/+1
| | | | | | | | | | | | | This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
* Display EngineExceptions like ordinary exceptionsNikita Popov2015-05-151-1/+4
| | | | | | | | | TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.
* This test depends on expose_php being onRasmus Lerdorf2014-07-141-0/+2
|
* Implement RFC https://wiki.php.net/rfc/default_encodingYasuo Ohgaki2014-02-132-14/+14
|
* Fix test failedXinchen Hui2012-08-181-2/+2
|
* Fix test (no charset outputed)Xinchen Hui2012-07-181-1/+1
|
* Fix broken apache_request_headers testRasmus Lerdorf2012-05-231-1/+3
| | | | | This test depends on the default_charset setting, so set it to UTF-8 for consistent output
* restore BCStanislav Malyshev2012-05-081-1/+1
|
* fix bug #61807 - Buffer Overflow in apache_request_headersStanislav Malyshev2012-05-081-0/+49
|
* Fixed bug Fixed bug #61605 (header_remove() does not remove all headers)Xinchen Hui2012-04-041-0/+34
|
* - Fix this again :)Jani Taskinen2009-07-251-1/+3
|
* - Fix testJani Taskinen2009-07-251-1/+1
|
* MFHArnaud Le Blanc2009-04-244-15/+15
|
* Added header_remove() (chsc at peytz dotdk, Arnaud)Arnaud Le Blanc2008-11-131-0/+165
| | | | | | | | | | | | | | | | | | | | | | | | | [DOC] proto void header_remove([string header_name]) Removes an HTTP header previously set using header() The header_name parameter is optionnal, all headers are removed if it is not set [SAPIs] The header_handler callback in sapi_module_struct has been changed, it now take a new argument. When it is set to SAPI_HEADER_DELETE, sapi_header->header is the name of an header, header_handler has to delete it. When it is set to SAPI_HEADER_DELETE_ALL, header_handler has to delete all headers. When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE, sapi_header->header is in the form "Name: value", header_handler has to add or replace the given header. In all cases, header_handler must not free sapi_header or sapi_header->header. SAPI_HEADER_ADD must be returned if the header has been added or replaced, or 0 in other cases.
* Fixed bug #45860 (header() function fails to correctly replace all Status lines)Dmitry Stogov2008-09-021-0/+53
|
* fix testsJani Taskinen2008-08-144-6/+3
|
* - Rewrite scanner to be based on re2c instead of flexMarcus Boerger2008-03-161-2/+2
| | | | | | | | | 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
* fix testsAntony Dovgal2007-11-012-2/+2
|
* fix testfoobar2007-06-031-2/+4
|
* MFHAntony Dovgal2007-05-271-2/+2
|