summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-08-091-6/+2
|\
| * Don't copy mime types in CLI serverNikita Popov2016-08-091-6/+2
| | | | | | | | This is both unnecessary and causes leaks in valgrind.
* | Pass error severity to SAPI modules and raise corresponding error level in ↵Martin Vobruba2016-07-111-2/+2
| | | | | | | | Apache
* | Merge branch 'PHP-7.0'Xinchen Hui2016-06-241-4/+1
|\ \ | |/
| * Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify ↵Xinchen Hui2016-06-241-4/+1
| | | | | | | | router.php)
* | Fixed compilation warningsDmitry Stogov2016-06-211-2/+10
| |
* | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-1/+1
| | | | | | | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* | Improved support for zend-signals.Dmitry Stogov2016-06-201-0/+1
| |
* | improve date header codeAnatol Belski2016-06-021-15/+17
| |
* | Added mandatory Date: header to built-in webserverSeeSchloss2016-06-021-0/+8
|/
* Merge branch 'PHP-5.6.19' into PHP-7.0.4Stanislav Malyshev2016-03-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6.19: fix test file Fix version update NEWS Update NEWS Fix bug #71498: Out-of-Bound Read in phar_parse_zipfile() fix ts buld prep for 5.6.19RC1 5.6.20 is next Fixed bug #71587 - Use-After-Free / Double-Free in WDDX Deserialize Conflicts: configure.in ext/wddx/wddx.c main/php_version.h
| * fix ts buldphp-5.6.19RC1Anatol Belski2016-02-181-1/+1
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-02-141-0/+13
|\ \ | |/ | | | | | | * PHP-5.6: Fixed bug #71559 Built-in HTTP server, we can downlaod file in web by bug
| * Fixed bug #71559 Built-in HTTP server, we can downlaod file in web by bugAnatol Belski2016-02-141-0/+13
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * Added support for HTTP 451Julien Pauli2015-12-231-0/+1
| |
* | Fix bug #71005 (Segfault in php_cli_server_dispatch_router()).Adam Harvey2015-12-011-0/+2
| | | | | | | | | | | | We didn't initialise the retval variable in php_cli_server_dispatch_router(); let's now initialise it to be IS_UNDEF, as the following if condition expects.
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-09-051-2/+2
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: Fix #68291: 404 on urls with '+' Resolved conflicts: sapi/cli/php_cli_server.c
| * Fix #68291: 404 on urls with '+'Christoph M. Becker2015-09-051-2/+2
| | | | | | | | | | URI paths have to be treated according to RFC 3986 by the CLI web server, not as application/x-www-form-urlencoded.
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-08-141-0/+12
|\ \ | |/ | | | | | | * PHP-5.6: Fix #70264: CLI server directory traversal
| * Fix #70264: CLI server directory traversalChristoph M. Becker2015-08-141-0/+12
| | | | | | | | | | | | | | | | On Windows the built-in webserver doesn't prevent directory traversal when backslashes are used as path component separators. Even though that is not a security issue (the CLI webserver is meant for testing only), we fix that by replacing backslashes in the path with slashes on Windows, because backslashes may be valid characters for file names on other systems, but not on Windows.
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-08-091-0/+3
|\ \ | |/ | | | | | | | | * PHP-5.6: Fix #66606: Sets HTTP_CONTENT_TYPE but not CONTENT_TYPE added tests for bug #66606
| * Fix #66606: Sets HTTP_CONTENT_TYPE but not CONTENT_TYPEwusuopu2015-08-091-0/+3
| | | | | | | | The patch will store Content-Type header value in both HTTP_CONTENT_TYPE field and CONTENT_TYPE field.
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-11/+11
| | | | | | | | semantick changes).
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-06-271-0/+3
|\ \ | |/ | | | | | | * PHP-5.6: Fix #64878: 304 responses return Content-Type header
| * Fix #64878: 304 responses return Content-Type headerChristoph M. Becker2015-06-271-0/+3
| | | | | | | | | | According to RFC 7232 304 responses should not send a Content-Type header, so the CLI server should comply.
| * bump yearXinchen Hui2015-01-151-1/+1
| |
| * Fix bug #68784Rasmus Lerdorf2015-01-091-1/+1
| |
* | cleanup more redundant S_IS* declarationsAnatol Belski2015-05-251-4/+0
| |
* | Drop zend_indent() as it was never used, complete or workingKalle Sommer Nielsen2015-03-271-1/+0
| |
* | made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-1/+1
| | | | | | | | which also comply with the current semantics for such macros
* | remove useless condition (same as headers_list())Anatol Belski2015-02-131-3/+0
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
| |
* | Fix bug #68784Rasmus Lerdorf2015-01-091-1/+1
| |
* | Merge branch 'PHP-5.6'Adam Harvey2015-01-061-0/+5
|\ \ | |/ | | | | | | | | | | | | | | * PHP-5.6: Handle NULL strings in sapi_cli_server_register_variable(). Allow CLI server test scripts to specify the name of the router file. Conflicts: sapi/cli/php_cli_server.c
| * Merge branch 'PHP-5.5' into PHP-5.6Adam Harvey2015-01-061-0/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Handle NULL strings in sapi_cli_server_register_variable(). Allow CLI server test scripts to specify the name of the router file. Conflicts: sapi/cli/tests/php_cli_server.inc
| | * Handle NULL strings in sapi_cli_server_register_variable().Adam Harvey2015-01-061-0/+5
| | | | | | | | | | | | Fixes bug #68745 (Invalid HTTP requests make web server segfault).
| | * Fix php cli (-S option) inconsistent port parsingnil0x422014-11-301-2/+2
| | | | | | | | | | | | | | | | | | Add port range verification of listening port with -S option for the php cli. This fixes inconsistent listening port due to unverified cast from long to short with htons(3).
| * | Fix php cli (-S option) inconsistent port parsingnil0x422014-11-301-2/+2
| | | | | | | | | | | | | | | | | | Add port range verification of listening port with -S option for the php cli. This fixes inconsistent listening port due to unverified cast from long to short with htons(3).
* | | Unify HTTP status code mapsAndrea Faulds2014-12-211-56/+6
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-115/+115
| | |
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-051-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (111 commits) Fix zend_fcall_info_arg*() to use ZVAL_COPY Fixed #65213 - cannot cast SplFileInfo to boolean add initial install switch to C travis project instead of PHP use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/) fix TS build add config option to target codegen architectures updated NEWS updated NEWS Fixed bug #55541 errors spawn MessageBox, which blocks test automation Get rid of duplicate handlers (ZEND_ADD_SPEC_TMP_TMP and ZEND_ADD_SPEC_VAR_VAR are absolutely the same). Use zend_string* for op_array->arg_info[]->name and op_array->arg_info[]->class_name. For internal functions we still use char*. Fixed __debugInfo() support Update UPGRADING for the new variadic functions, and re-sort. Improved POST INC/DEC make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path Missed closed folder mark Revert "Unecessary assignment" Fixed improper memory release Unecessary assignment ...
| * | | Fix php cli (-S option) inconsistent port parsingnil0x422014-11-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add port range verification of listening port with -S option for the php cli. This fixes inconsistent listening port due to unverified cast from long to short with htons(3).
* | | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-11-181-5/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (398 commits) NEWS add test for bug #68381 Fixed bug #68381 Set FPM log level earlier during init proper dllexport move to size_t where zend_string is used internally fix some datatype mismatches return after the warning, to fix uninitialized salt usage fix datatype mismatches add missing type specifier fix datatype mismatches fix unsigned check "extern" shouldn't be used for definitions joined identical conditional blocks simplify fpm tests SEND_VAR_NO_REF optimization Add test for bug #68442 Add various tests for FPM - covering recent bugs (68420, 68421, 68423, 68428) - for UDS - for ping and status URI - for multi pool and multi mode Include small MIT FastCGI client library from https://github.com/adoy/PHP-FastCGI-Client Get rid of zend_free_op structure (use zval* instead). Get rid of useless TSRMLS arguments. Add new FPM test for IPv4/IPv6 ... Conflicts: win32/build/config.w32
| * | | fix var usage only when unistd.h availableAnatol Belski2014-11-101-0/+2
| | | |
| * | | cleanup unused variableAnatol Belski2014-11-101-1/+0
| | | |
| * | | do portable socket checksAnatol Belski2014-11-101-4/+4
| | | | | | | | | | | | | | | | also introduced a portable macro for that
* | | | moved most of the core to use static tsrm ls cache pointerAnatol Belski2014-10-151-0/+3
| | | | | | | | | | | | | | | | plus apache2handler, cli and cgi