summaryrefslogtreecommitdiff
path: root/sapi/cli
Commit message (Collapse)AuthorAgeFilesLines
* Fix #77794: Incorrect Date header format in built-in serverNiklas Keller2019-03-251-6/+5
| | | | | | | | - Fix the date format to be compliant with https://tools.ietf.org/html/rfc7231#section-7.1.1.2 - Fix date format length and use GMT time - Previously, local time was used instead of GMT. - Remove extra whitespace - Simplify string appends in php_cli_server.c
* Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parametersAnatol Belski2018-11-163-5/+47
| | | | | | 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-143-3/+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
* Trim trailing whitespace in source code filesPeter Kokot2018-10-132-53/+53
|
* 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
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-05-131-1/+3
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #76333 PHP built-in server does not find files if root path contains special characters
| * Fixed bug #76333 PHP built-in server does not find files if root path ↵Anatol Belski2018-05-131-1/+3
| | | | | | | | contains special characters
* | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-01-121-14/+16
|\ \ | |/
| * Revert "Fixed bug #75287 (Builtin webserver crash after chdir in a shutdown ↵Nikita Popov2018-01-121-14/+16
| | | | | | | | | | | | | | | | | | function)" This reverts commit 816758eda2bcdd69ba505fb6bbb79124a7bf2254. After this commit relative router scripts were resolved against docroot rather than shell cwd.
* | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-01-031-2/+2
|\ \ | |/ | | | | | | * PHP-7.1: Happy new year (Update copyright to 2018)
| * Happy new year (Update copyright to 2018)Lior Kaplan2018-01-021-2/+2
| |
| * year++Xinchen Hui2018-01-029-10/+10
| |
* | year++Xinchen Hui2018-01-029-10/+10
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2017-12-161-10/+11
|\ \ | |/
| * Move includes in ps_title.cDavid Carlier2017-12-161-10/+11
| | | | | | | | | | | | The HAVE_UNISTD_H check has to be after including config.h. Also include sys/types.h, which may be needed for setproctitle.
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-11-281-0/+20
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #73830 Directory does not exist.
| * Fixed bug #73830 Directory does not exist.Anatol Belski2017-11-281-0/+20
| |
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-11-143-73/+79
| |\ | | | | | | | | | | | | | | | * PHP-7.0: Update NEWS Fix bug 60471 by correctly identifying unused speculative preconnections
| | * Fix bug 60471 by correctly identifying unused speculative preconnectionsSammy Kaye Powers2017-11-143-73/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly identify unused speculative preconnections from browsers like Chrome and Firefox * Add a new message to the debug level that is emitted when a TCP connection is closed without sending any request (a preconnection) * Fix an issue where the existing debug messages were not being displayed even when debug mode was enabled
* | | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-10-151-16/+14
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Update NEWS Fixed bug #75287 (Builtin webserver crash after chdir in a shutdown function)
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-10-151-16/+14
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #75287 (Builtin webserver crash after chdir in a shutdown function)
| | * Fixed bug #75287 (Builtin webserver crash after chdir in a shutdown function)Xinchen Hui2017-10-151-16/+14
| | |
* | | 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
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2017-09-051-0/+3
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-09-051-0/+3
| |\ \ | | |/
| | * Add missing null terminationNikita Popov2017-09-051-0/+3
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2017-09-053-27/+118
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-09-053-28/+119
| |\ \ | | |/
| | * Fixed bug #70470Bouke van der Bijl2017-09-053-28/+119
| | |
* | | Rework automatic interactive cli activationAnatol Belski2017-08-031-4/+14
| | | | | | | | | | | | | | | There are still systems delivering buggy console info. If a file was passed, obviously no interaction is meant.
* | | Merge branch 'PHP-7.1' into PHP-7.2Joe Watkins2017-07-241-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Update copyright year to 2017
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-07-241-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Update copyright year to 2017
| | * Update copyright year to 2017Peter Kokot2017-07-241-2/+2
| | |
* | | Fixed bug #74849 Process is started as interactive shell in PhpStormAnatol Belski2017-07-031-2/+1
| | |
* | | Fixed php_socket_t to int conversionRichard Fussenegger2017-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning was about a possible loss of data due to the downcast of `php_socket_t` to `int`. The former maps to a platform specific type, hence, it might downcast from a 64 bit integer to a 32 bit intger. Fixed possibly overflowing vars Due to the change from `int` to `php_socket_t` some variables might overflow now. Changed all variables that might be affected. Revert "Fixed possibly overflowing vars" This reverts commit bf64fd5984409a208ef32108990a6085b6556273. Use aliased PHP socket type Using the alias protects us from changes to the underlying type. Removed ignored nfds argument The `nfds` argument to the Win32 `select` function is always ignored, regardless of its actual value. Hence, we should not pass it in the first place. See https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141(v=vs.85).aspx for reference. Target value is not a pointer Avoid overflow in loop
* | | 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
| | |
* | | extend conditionAnatol Belski2017-05-271-1/+1
| | |
* | | Turn interactive mode on, if cli binary is clicked in filemanagerAnatol Belski2017-05-251-0/+5
| | |
* | | 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