summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-07-271-2/+11
|\ | | | | | | | | * PHP-7.3: Fix #77932: File extensions are case-sensitive
| * Fix #77932: File extensions are case-sensitiveChristoph M. Becker2020-07-271-2/+11
| | | | | | | | | | | | The file extension to mime type mapping *must* not depend on the file extension's case for case-insensitive file systems, and *should* not for case-sensitive file systems.
* | Apply tidy formattingNikita Popov2020-02-031-5/+5
| | | | | | | | Mostly reindent PHP scripts to spaces.
* | Introduce zend_stream_init_filename()Nikita Popov2019-07-161-10/+2
| | | | | | | | Avoid more ad-hoc initialization of zend_file_handle structures.
* | improvements to cli serverJoe Watkins2019-07-031-133/+170
| |
* | implement support for workers in cli-server on platforms supporting forkJoe Watkins2019-06-291-6/+104
| |
* | Include the request method in CLI server logsSimon Welsh2019-05-021-1/+1
| |
* | Fix last maybe uninit warnings on 7.4Nikita Popov2019-04-151-0/+1
| | | | | | | | | | Most of these only occur under GCC 5. Not fond of all the workarounds (especially the PDO one), but it gets us a clean build...
* | Remove checks for locale.h, setlocale, localeconvPeter Kokot2019-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<loccale.h>` header file, setlocale, and localeconv are part of the standard C89 [1] and on current systems can be used unconditionally. Since PHP 7.4 requires at least C89 or greater, the `HAVE_LOCALE_H`, `HAVE_SETLOCALE`, and `HAVE_LOCALECONV` symbols defined by Autoconf in configure.ac [2] can be ommitted and simplifed. The bundled libmagic (file) has also been patched already in version 5.35 and up in upstream location so when it will be patched also in php-src the check for locale.h header is still left in the configure.ac and in windows headers definition file. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.4 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 Omit the bundled libmagic files
* | Remove HAVE_SIGNAL_HPeter Kokot2019-04-071-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<signal.h>` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. Since file requires at least C89 or greater, the `HAVE_SIGNAL_H` symbol defined by Autoconf in Zend.m4 [2] can be ommitted and simplifed. The bundled libmagic (file) also ommits the usage of HAVE_SIGNAL_H since 5.35 however current version in PHP is very modified 5.34 version and will be refactored separately. Check for HAVE_SIGNAL_H is therefore still done in the configure.ac. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* | Merge branch 'PHP-7.3' into PHP-7.4Peter Kokot2019-03-251-6/+5
|\ \ | |/ | | | | | | | | | | * PHP-7.3: [ci skip] Update NEWS [ci skip] Update NEWS Fix #77794: Incorrect Date header format in built-in server
| * Merge branch 'PHP-7.2' into PHP-7.3Peter Kokot2019-03-251-6/+5
| |\ | | | | | | | | | | | | | | | * PHP-7.2: [ci skip] Update NEWS Fix #77794: Incorrect Date header format in built-in server
| | * 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
* | | Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.cDmitry Stogov2019-03-121-3/+0
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-03-121-2/+6
|\ \ \ | |/ /
| * | Fixed bug #77722Nikita Popov2019-03-121-2/+6
| | |
* | | Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| | |
* | | Remove HAVE_TIME_HPeter Kokot2018-09-211-4/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<time.h>` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. Since PHP requires at least C89 or greater, the `HAVE_TIME_H` symbol defined by Autoconf in ext/pdo_sqlite/config.m4 [2] can be ommitted and simplifed. Additionally, since PHP didn't define `HAVE_TIME_H` prior in the configure.ac the occurrence of this symbol in cli can be removed. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* | Remove old SVN keywords substitutionsPeter Kokot2018-06-161-2/+0
| | | | | | | | | | | | | | | | When the PHP source code was versioned in Subversion, there was possible to substitute certain keywords such as $Id$ with revision number, last change time and author name. Such approach is not used in Git so this patch removes these outdated artifacts from source code files.
* | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-7/+7
| | | | | | | | where we sure about string persistence.
* | Merge branch 'PHP-7.2'Anatol Belski2018-05-131-1/+3
|\ \ | |/ | | | | | | * PHP-7.2: Fixed bug #76333 PHP built-in server does not find files if root path contains special characters
| * 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
* | | No Content-Type header if MIME type is unknownMark Seuffert2018-04-141-8/+7
| | |
* | | Merge branch 'PHP-7.2'Nikita Popov2018-01-121-14/+16
|\ \ \ | |/ /
| * | 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.
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Merge branch 'PHP-7.2'Anatol Belski2017-11-281-0/+20
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fixed bug #73830 Directory does not exist.
| * | 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-141-4/+12
| | |\ | | | | | | | | | | | | | | | | | | | | * 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-141-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | | Added exceptions for ZEND_RC_DEBUGDmitry Stogov2017-11-021-3/+6
|/ / /
* | | 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.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-051-25/+83
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-09-051-26/+84
| |\ \ | | |/
| | * Fixed bug #70470Bouke van der Bijl2017-09-051-26/+84
| | |
* | | Fix bug 60471 by correctly identifying unused speculative preconnectionsSammy Kaye Powers2017-04-111-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Remove more unnecessary checks on Zend's allocator functionsThomas Punt2017-03-161-35/+2
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-181-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Remove remnants of TSMRLS_* macro calls
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-181-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Remove remnants of TSMRLS_* macro calls