summaryrefslogtreecommitdiff
path: root/sapi/cli
Commit message (Collapse)AuthorAgeFilesLines
* This test should passJohannes Schlüter2014-09-271-2/+0
|
* Fixed bug #66830 (Empty header causes PHP built-in web server to hang).Adam Harvey2014-07-072-4/+46
| | | | | | | | We had an infinite loop in sapi_cli_server_send_headers(): while iterating over the linked list of headers, when an empty header was hit, continue would go to the next iteration of the loop without updating h to be the next value in the linked list. Updating it to always increment regardless of whether the header is actually valid or not fixes the issue.
* Update copyright year to 2014Lior Kaplan2014-06-171-1/+1
|
* Add 308 and 426 to the HTTP response code map in the CLI server.Adam Harvey2014-06-122-0/+51
| | | | Implements FR #67429 (CLI server is missing some new HTTP response codes).
* Fixed bug #67406 built-in web-server segfaults on startupRemi Collet2014-06-101-3/+3
| | | | | | | | Reproduce on aarch64. From select man page: "select() may update the timeout argument to indicate how much time was left." So "const" is not ok.
* man page: long option name is --strip, not --strippedRemi Collet2014-02-281-1/+1
|
* --global have be removed in 5.2Remi Collet2014-02-281-9/+0
|
* Bump yearXinchen Hui2014-01-034-5/+5
|
* - Fixed bug #65818 (Segfault with built-in webserver and chunked transfer ↵Felipe Pena2013-10-051-0/+1
| | | | encoding)
* Handle CLI server request headers case insensitively.Adam Harvey2013-09-092-10/+55
| | | | Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
* Reduce (some) compile noise of 'unused variable' and 'may be used ↵Christopher Jones2013-08-141-1/+1
| | | | uninitialized' warnings.
* Add built-in web server to invocation listLior Kaplan2013-07-141-1/+2
|
* Terminology: change embedded web server to built-in web server to align with ↵Lior Kaplan2013-07-141-3/+3
| | | | cli usage
* Align -B and -E parameter names with cli usage (begin_code and end_code)Lior Kaplan2013-07-141-8/+8
|
* fix typo in php man pageRemi Collet2013-07-021-1/+1
|
* Fixed Bug #65143 Missing php-cgi man pageRemi Collet2013-07-021-0/+2
| | | | | | | Currently php-cgi man page is a simple redirect to php (CLI) man page. Could be splited / improved in the future.
* Fix the spelling of the php_cli_server_http_response_status_code_pair typedef.Adam Harvey2013-06-201-8/+8
| | | | | Specifically: php_cli_server_http_reponse_status_code_pair → php_cli_server_http_response_status_code_pair.
* Change the search in get_status_string() to correctly handle unknown codes.Adam Harvey2013-06-204-13/+146
| | | | | | | | | | | | | | | | | This previously used a buggy implementation of binary search that would loop infinitely for unknown codes when searching in reason arrays of particular sizes (such as the one we have at the moment). Since C provides bsearch(), we'll just use that instead, since libc authors hopefully get this right. There was also an additional bug that was masked by the first one: the design was that an unknown code would result in get_status_string() returning NULL, which would then result in a segfault in append_http_status_line(), since it assumed that it would always receive a valid string pointer that could be handed off to smart_str_appends_ex(). We'll now return a placeholder in that case. Fixes bug #65066 (Cli server not responsive when responding with 422 http status code).
* Forgot to fix the test on 5.4Nikita Popov2013-03-281-1/+1
|
* Attempt to fix SKIPXinchen Hui2013-03-281-2/+7
|
* Fix test on Mac (\D shows up)Xinchen Hui2013-03-281-1/+1
|
* Add test for #64529Xinchen Hui2013-03-281-0/+62
|
* Document embedded server options in manpageJohannes Schlüter2013-03-241-1/+27
|
* Merge branch 'PHP-5.3' into PHP-5.4Johannes Schlüter2013-03-241-2/+2
|\
| * It's 2013, even for a manpageJohannes Schlüter2013-03-241-2/+2
| |
| * Happy New Year~Xinchen Hui2013-01-013-4/+4
| |
* | - add reminder for checking return valuesPierre Joye2013-03-241-0/+2
| |
* | - fix x64 issues on windows with the various time types (overflow, signed ↵Pierre Joye2013-03-231-16/+43
| | | | | | | | | | | | and unsigned bits ops, etc.) causing crashes on start, error or log, must be done in win32/time.c for some of these functions too Signed-off-by: Anatol Belski <ab@php.net>
* | Added HTTP codes as of RFC 6585Jonh Wendell2013-02-171-0/+4
| | | | | | | | | | | | | | | | | | Added descriptions for the new HTTP codes: - 428 Precondition Required - 429 Too Many Requests - 431 Request Header Fields Too Large - 511 Network Authentication Required
* | Fixed bug #64128 buit-in web server is broken on ppc64.Remi Collet2013-02-011-17/+13
| | | | | | | | | | | | fdset management using bit operator is broken on non-x86 arch and cause built-in server the enter an infinite loop of "select" and never handle any request.
* | Bug #43177: If an eval() has a parse error, the overall exit status and ↵Stanislav Malyshev2013-01-011-0/+82
| | | | | | | | | | | | | | return code should not be affected. Without this fix, a webpage using eval() may return code 500. That might display fine and the 500 go unnoticed, but using AJAX or wget, the 500 will cause problems.
* | Happy New YearXinchen Hui2013-01-014-5/+5
| |
* | update test for supported Mime Types checkingpascalc2012-12-141-133/+31
| |
* | update list of common Mime Types in PHP development server to support Web ↵pascalc2012-12-141-1/+4
| | | | | | | | audio/video formats (Webm ,and Ogg containers) + have jpeg mime types listed together
* | Fixed test sapi/cli/tests/006.phptAnatoliy Belsky2012-11-141-1/+1
| | | | | | | | Third param in preg_match_all() is optional for a while )
* | Implemented FR #63242 (Default error page in PHP built-in web server uses ↵Xinchen Hui2012-10-103-33/+21
| | | | | | | | outdated html/css)
* | Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-10-101-0/+0
|\ \ | |/
| * Remove executable permission on phptXinchen Hui2012-10-101-0/+0
| |
* | Merged GitHub PR #190: Support for the HTTP PATCH method in CLI webserverLars Strojny2012-09-183-0/+48
| |
* | Respond with 501 to unknown request methodsNiklas Lindgren2012-09-154-22/+71
| | | | | | | | | | | | | | | | Fixed typo Moved 501 response from dispatch to event_read_request Return return value of send_error_page
* | Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-09-051-1/+1
|\ \ | |/ | | | | | | Conflicts: ext/interbase/interbase.rc
* | - Fixed bug #62829 (stdint.h included on platform where HAVE_STDINT_H is not ↵Felipe Pena2012-08-161-1/+4
| | | | | | | | set)
* | Fixed bug #62725 (Calling exit() in a shutdown function does not return the ↵Xinchen Hui2012-08-021-3/+3
| | | | | | | | | | | | exit value) The fix is make 5.4 behavior consistent with 5.3
* | Sleep a little bit more, in some slow machine (like gcov), it will take a ↵Xinchen Hui2012-08-011-1/+1
| | | | | | | | little more time to setup server
* | Implemented FR #62700 (have the console output 'Listening on ↵Xinchen Hui2012-07-311-1/+1
| | | | | | | | http://localhost:8000')
* | Fix Bug #62612 readline extension compilation failsJohannes Schlüter2012-07-221-0/+2
| |
* | Improve error message for ssl requestXinchen Hui2012-07-221-1/+5
| |
* | Merge branch 'PHP-5.3' into PHP-5.4Johannes Schlüter2012-06-271-0/+3
|\ \ | |/ | | | | | | | | | | | | * PHP-5.3: Fix memleak in CLI Conflicts: sapi/cli/php_cli.c
| * Fix memleak in CLIJohannes Schlüter2012-06-271-0/+3
| |
* | Fix potential leak in cli serverstealth352012-06-161-0/+3
| |