Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bug #66830 (Empty header causes PHP built-in web server to hang). | Adam Harvey | 2014-07-07 | 1 | -4/+3 |
| | | | | | | | | 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. | ||||
* | Add 308 and 426 to the HTTP response code map in the CLI server. | Adam Harvey | 2014-06-12 | 1 | -0/+2 |
| | | | | Implements FR #67429 (CLI server is missing some new HTTP response codes). | ||||
* | Fixed bug #67406 built-in web-server segfaults on startup | Remi Collet | 2014-06-10 | 1 | -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. | ||||
* | Bump year | Xinchen Hui | 2014-01-03 | 1 | -1/+1 |
| | |||||
* | - Fixed bug #65818 (Segfault with built-in webserver and chunked transfer ↵ | Felipe Pena | 2013-10-05 | 1 | -0/+1 |
| | | | | encoding) | ||||
* | Handle CLI server request headers case insensitively. | Adam Harvey | 2013-09-09 | 1 | -10/+7 |
| | | | | 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 Jones | 2013-08-14 | 1 | -1/+1 |
| | | | | uninitialized' warnings. | ||||
* | Fix the spelling of the php_cli_server_http_response_status_code_pair typedef. | Adam Harvey | 2013-06-20 | 1 | -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 Harvey | 2013-06-20 | 1 | -13/+29 |
| | | | | | | | | | | | | | | | | | 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). | ||||
* | - add reminder for checking return values | Pierre Joye | 2013-03-24 | 1 | -0/+2 |
| | |||||
* | - fix x64 issues on windows with the various time types (overflow, signed ↵ | Pierre Joye | 2013-03-23 | 1 | -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 6585 | Jonh Wendell | 2013-02-17 | 1 | -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 Collet | 2013-02-01 | 1 | -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. | ||||
* | Happy New Year | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | update list of common Mime Types in PHP development server to support Web ↵ | pascalc | 2012-12-14 | 1 | -1/+4 |
| | | | | audio/video formats (Webm ,and Ogg containers) + have jpeg mime types listed together | ||||
* | Implemented FR #63242 (Default error page in PHP built-in web server uses ↵ | Xinchen Hui | 2012-10-10 | 1 | -21/+9 |
| | | | | outdated html/css) | ||||
* | Respond with 501 to unknown request methods | Niklas Lindgren | 2012-09-15 | 1 | -19/+22 |
| | | | | | | | | Fixed typo Moved 501 response from dispatch to event_read_request Return return value of send_error_page | ||||
* | Implemented FR #62700 (have the console output 'Listening on ↵ | Xinchen Hui | 2012-07-31 | 1 | -1/+1 |
| | | | | http://localhost:8000') | ||||
* | Improve error message for ssl request | Xinchen Hui | 2012-07-22 | 1 | -1/+5 |
| | |||||
* | Fix potential leak in cli server | stealth35 | 2012-06-16 | 1 | -0/+3 |
| | |||||
* | Implemented FR #61977 (Need CLI web-server support for files with .htm & svg ↵ | Xinchen Hui | 2012-05-09 | 1 | -5/+7 |
| | | | | extensions) | ||||
* | Typo | David Soria Parra | 2012-05-08 | 1 | -1/+1 |
| | |||||
* | correct variable name | Xinchen Hui | 2012-05-06 | 1 | -14/+14 |
| | |||||
* | Make css string constant | Xinchen Hui | 2012-04-21 | 1 | -1/+1 |
| | |||||
* | Improved performance while sending error page | Xinchen Hui | 2012-04-21 | 1 | -67/+30 |
| | | | | this also fixed bug #61785 (Memory leak when access a non-exists file without router) | ||||
* | Fixed bug #61461 (missing checks around malloc() calls). | Ilia Alshanetsky | 2012-03-20 | 1 | -0/+10 |
| | |||||
* | Implemented FR #60850 (Built in web server does not set ↵ | Xinchen Hui | 2012-03-11 | 1 | -0/+5 |
| | | | | $_SERVER['SCRIPT_FILENAME'] when using router) | ||||
* | Add Moriyoshi Koizumi and I to the cli SAPI credits | Xinchen Hui | 2012-03-11 | 1 | -0/+1 |
| | |||||
* | CLI Server was sending "Connection: closed" instead of "Connection: close" | Rasmus Lerdorf | 2012-03-02 | 1 | -1/+1 |
| | |||||
* | fix usage of php_output_(de)activate; I guess this code doesn't bother about ↵ | Michael Wallner | 2012-01-31 | 1 | -0/+11 |
| | | | | one more hack; | ||||
* | MFH: r322963 | Michael Wallner | 2012-01-31 | 1 | -2/+3 |
| | | | | | | | fix headers print to stdout/stderr if no output written; fix crashes and invalid usage of output control in cli server while passing by | ||||
* | - Year++ | Felipe Pena | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | Fix bug #60591 (Memory leak when access a non-exists file) | Xinchen Hui | 2011-12-22 | 1 | -7/+35 |
| | |||||
* | Fixed bug #60523 (PHP Errors are not reported in browsers using built-in SAPI) | Xinchen Hui | 2011-12-16 | 1 | -0/+1 |
| | |||||
* | add $_SERVER["SERVER_NAME"] since it's handy | Xinchen Hui | 2011-12-09 | 1 | -0/+1 |
| | |||||
* | fix memory leak | Xinchen Hui | 2011-12-09 | 1 | -0/+1 |
| | |||||
* | Fixed bug #60477 (Segfault after two multipart/form-data POST requests) | Xinchen Hui | 2011-12-09 | 1 | -0/+1 |
| | |||||
* | - implement FR #60390, SERVER_PORT missing | Pierre Joye | 2011-11-25 | 1 | -0/+6 |
| | |||||
* | Fixed bug #60159 (Router returns false, but POST is not passed to requested | Xinchen Hui | 2011-11-15 | 1 | -59/+57 |
| | | | | | resource) and bug #55759 (mem leak when use built-in server) | ||||
* | Fixed bug #60189 (php logo can not be displayed) | Xinchen Hui | 2011-11-01 | 1 | -1/+1 |
| | |||||
* | Fixed Bug #60180 ($_SERVER["PHP_SELF"] incorrect) | Xinchen Hui | 2011-11-01 | 1 | -1/+19 |
| | |||||
* | Fixed bug #60146 (Last 2 lines of page not being output) | Xinchen Hui | 2011-10-29 | 1 | -1/+1 |
| | |||||
* | A better fix, sorry for previous thoughtlessness commit. | Xinchen Hui | 2011-10-24 | 1 | -5/+1 |
| | |||||
* | Fixed PATH_INFO of /index.php/foo/bar | Xinchen Hui | 2011-10-24 | 1 | -4/+5 |
| | |||||
* | fix memory leak | Xinchen Hui | 2011-10-23 | 1 | -0/+3 |
| | |||||
* | Fixed bug #60112 If URI does not contain a file, index.php is not served | Xinchen Hui | 2011-10-23 | 1 | -19/+47 |
| | | | | | | | This is a windows Issue. and after this fix, previously 404 request like "localhost/foo/bar" now could server correctly with request_uri "index.php" and PATH_INFO "/foo/bar/" | ||||
* | Add SERVER_PROTOCOL variable to $_SERVER. Patch by kuzuha. Thanks. | Moriyoshi Koizumi | 2011-10-21 | 1 | -0/+6 |
| | |||||
* | Fixed bug #55755 (SegFault when outputting header WWW-Authenticate) | Xinchen Hui | 2011-09-21 | 1 | -6/+7 |
| | |||||
* | Remove double checking, and use MAXPATHLEN instead of a fixed length | Xinchen Hui | 2011-09-21 | 1 | -15/+4 |
| | |||||
* | Change to a more appropriate name | Xinchen Hui | 2011-09-21 | 1 | -2/+2 |
| |