summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove remnants of TSMRLS_* macro callsThomas Punt2017-01-181-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* Don't copy mime types in CLI serverNikita Popov2016-08-091-6/+2
| | | | This is both unnecessary and causes leaks in valgrind.
* Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify ↵Xinchen Hui2016-06-241-4/+1
| | | | router.php)
* 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
* | | | bring back all the TSRMLS_FETCH() stuffAnatol Belski2014-10-151-1/+0
| | | | | | | | | | | | | | | | for better comparability with the mainstream
* | | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-10-131-5/+35
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: fix several datatype mismatch warnings fix signed/unsigned mismatch warning more signed/unsigned mismatch fix fix signed/unsigned mismatch warning fix signed/unsigned mismatch fix some signed/unsigned mismatch missing include for strlen proto More fixes for array/object casts with temporary variables Fix array/object cast of refcounted tmp var Deref right value for compound assign ops
| * | | fix several datatype mismatch warningsAnatol Belski2014-10-131-5/+35
| | | |
* | | | cleanup direct tsrm_ls passingAnatol Belski2014-09-261-9/+1
| | | |
* | | | reworked the patch, less new stuff but workyAnatol Belski2014-09-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TLS is already used in TSRM, the way exporting the tsrm cache through a thread local variable is not portable. Additionally, the current patch suffers from bugs which are hard to find, but prevent it to be worky with apache. What is done here is mainly uses the idea from the RFC patch, but - __thread variable is removed - offset math and declarations are removed - extra macros and definitions are removed What is done merely is - use an inline function to access the tsrm cache. The function uses the portable tsrm_tls_get macro which is cheap - all the TSRM_* macros are set to placebo. Thus this opens the way remove them later Except that, the logic is old. TSRMLS_FETCH will have to be done once per thread, then tsrm_get_ls_cache() can be used. Things seeming to be worky are cli, cli server and apache. I also tried to enable bz2 shared and it has worked out of the box. The change is yet minimal diffing to the current master bus is a worky start, IMHO. Though will have to recheck the other previously done SAPIs - embed and cgi. The offsets can be added to the tsrm_resource_type struct, then it'll not be needed to declare them in the userspace. Even the "done" member type can be changed to int16 or smaller, then adding the offset as int16 will not change the struct size. As well on the todo might be removing the hashed storage, thread_id != thread_id and linked list logic in favour of the explicit TLS operations.
* | | | basic windows fixAnatol Belski2014-09-221-2/+0
| | | |