summaryrefslogtreecommitdiff
path: root/sapi/cli/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #78323: Code 0 is returned on invalid optionsIvan Mikheykin2020-01-272-1/+79
| | | | | Set CLI exit code to 1 when invalid parameters are passed, and print error to stderr.
* Merge branch 'PHP-7.2' into PHP-7.3Anatol Belski2018-11-161-0/+42
|\ | | | | | | | | * PHP-7.2: Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
| * Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parametersAnatol Belski2018-11-161-0/+42
| | | | | | | | | | | | The binary can be of course used on console, for whatever reasons, so UNICODE API should be used in that case. That might however not work as expected, if the binary is used for a service.
| * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-156-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 *.phptPeter Kokot2018-10-1450-101/+101
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
* | Fix stray newline that caused this test to failRasmus Lerdorf2018-10-311-1/+0
| |
* | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-156-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 *.phptPeter Kokot2018-10-1449-94/+94
| |
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
* | Merge branch 'PHP-7.2'Anatol Belski2018-05-181-6/+12
|\ \ | |/ | | | | | | * PHP-7.2: Fix cli server test fails after recent AppVeyor image update
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-05-181-6/+12
| |\ | | | | | | | | | | | | * PHP-7.1: Fix cli server test fails after recent AppVeyor image update
| | * Fix cli server test fails after recent AppVeyor image updateAnatol Belski2018-05-181-6/+12
| | |
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-2027-27/+27
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | Use bool instead of boolean while throwing a type errorGabriel Caruso2018-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP requires boolean typehints to be written "bool" and disallows "boolean" as an alias. This changes the error messages to match the actual type name and avoids confusing messages like "must be of type boolean, boolean given". This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which implements the same change for integer->int.
* | | Use int instead of integer in type errorsGabriel Caruso2018-02-041-17/+17
| | | | | | | | | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | | Remove superfluous SKIPIF sections in more testsGabriel Caruso2018-02-043-15/+9
| | |
* | | Added PCRE_JIT_SUPPORT flagXinchen Hui2017-11-141-1/+5
| | |
* | | Patch core for PCRE2 supportAnatol Belski2017-11-131-1/+3
| | | | | | | | | | | | RFC https://wiki.php.net/rfc/pcre2-migration
* | | Merge branch 'PHP-7.2'Anatol Belski2017-09-181-13/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fix the version check causing the test fail
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-09-181-13/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fix the version check causing the test fail
| | * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-09-181-13/+1
| | |\ | | | | | | | | | | | | | | | | * PHP-7.0: Fix the version check causing the test fail
| | | * Fix the version check causing the test failAnatol Belski2017-09-181-13/+1
| | | |
* | | | Fix test portabilityAnatol Belski2017-09-061-11/+11
| | | |
* | | | Add tests for sapi/cli option combinationsJansen Price2017-09-061-0/+52
| | | |
* | | | Merge branch 'PHP-7.2'Nikita Popov2017-09-052-2/+35
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2017-09-052-2/+35
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-09-052-2/+35
| | |\ \ | | | |/
| | | * Fixed bug #70470Bouke van der Bijl2017-09-052-2/+35
| | | |
* | | | EXPECT instead of EXPECTFPatrick Allaert2017-08-161-1/+1
| | | |
* | | | Fixed: tests not written to pass on WindowsPatrick Allaert2017-08-162-3/+3
| | | |
* | | | cli_get_process_title() may not be empty before setPatrick Allaert2017-08-161-4/+0
| | | |
* | | | Not skipping test on Windows and test against CLI insteadPatrick Allaert2017-08-164-4/+4
| | | |
* | | | Added: tests for cli_get_process_title / cli_set_process_titlePatrick Allaert2017-08-164-0/+76
|/ / /
* | | Merge branch 'PHP-7.1'Xinchen Hui2017-06-121-0/+46
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Add simple cli test for PATH/HOST ini sections Fixed bug #74600
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-06-121-0/+46
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.0: Add simple cli test for PATH/HOST ini sections Fixed bug #74600
| | * Add simple cli test for PATH/HOST ini sectionsManuel Mausz2017-06-091-0/+46
| | |
* | | missing fix for another testRemi Collet2017-05-291-1/+2
| | |
* | | Merge branch 'PHP-7.1'Xinchen Hui2017-05-171-0/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Added cleanup
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-171-0/+4
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Added cleanup
| | * Added cleanupXinchen Hui2017-05-171-0/+4
| | |
* | | Merge branch 'PHP-7.1'Xinchen Hui2017-05-171-0/+34
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Added test for bug #74600
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-171-0/+34
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Added test for bug #74600
| | * Added test for bug #74600Xinchen Hui2017-05-171-0/+34
| | |
* | | Change 'undefined constant' from E_NOTICE to E_WARNING and mention deprecationRowan Collins2017-03-231-1/+1
| | | | | | | | | | | | | | | Implements RFC "Deprecate and Remove Bareword (Unquoted) Strings" [https://wiki.php.net/rfc/deprecate-bareword-strings]
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-131-3/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Increase wait time for tests involving sockets to improve Travis relability
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-131-3/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Increase wait time for tests involving sockets to improve Travis relability
| | * Increase wait time for tests involving sockets to improve Travis relabilityMitch Hagstrand2017-01-131-3/+3
| | | | | | | | | | | | | | | 1. Increased sleep time from 25ms to 50ms 2. Added sleep to shutdown handlers
* | | Merge branch 'PHP-7.1'Nikita Popov2016-12-272-18/+56
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-12-272-18/+56
| |\ \ | | |/