Remi Collet
67817a199c
fix typo in php man page
13 years ago
Remi Collet
c940aab789
Fixed Bug #65143 Missing php-cgi man page
Currently php-cgi man page is a simple redirect to
php (CLI) man page.
Could be splited / improved in the future.
13 years ago
Adam Harvey
f5c7fe9202
Fix the spelling of the php_cli_server_http_response_status_code_pair typedef.
Specifically: php_cli_server_http_reponse_status_code_pair →
php_cli_server_http_response_status_code_pair.
13 years ago
Adam Harvey
283f56af66
Change the search in get_status_string() to correctly handle unknown codes.
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).
13 years ago
Nuno Lopes
e769025791
leave a sane environment behind (even if empty) when exiting
some OS atexit() handlers call getenv()
13 years ago
Xinchen Hui
bed44e562e
missed part of the patch
13 years ago
Xinchen Hui
953f07503a
Fixed bug #64544 (Valgrind warnings after using putenv)
The frozen_envion is needed, since if an item in environ is updated
(like the test script HOME one), invalid free still shows up
13 years ago
Keyur Govande
5bf6323e51
Patch for Bug #64544 .
The process title change module keeps track of the locally allocated
environ, so it doesn't need to worry about when environ changes
underneath it, for example by putenv()/setenv()
13 years ago
Nikita Popov
92aa361bfc
Forgot to fix the test on 5.4
13 years ago
Nikita Popov
b1a6a17039
Fix Bug #64545 : PHP Error in ef93a93ee2
Test was using die "Foo" instead of die("Foo").
13 years ago
Xinchen Hui
ef93a93ee2
Attempt to fix SKIP
13 years ago
Xinchen Hui
ab089611e0
Fix test on Mac (\D shows up)
13 years ago
Xinchen Hui
467cd6a60f
Add test for #64529
13 years ago
Johannes Schlüter
6f560b0487
Document embedded server options in manpage
13 years ago
Johannes Schlüter
66682f5abe
It's 2013, even for a manpage
13 years ago
Pierre Joye
bb18fa448c
- add reminder for checking return values
13 years ago
Pierre Joye
3af4896837
- fix x64 issues on windows with the various time types (overflow, signed 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>
13 years ago
Keyur Govande
a0a995cff3
Support for CLI process title ( https://wiki.php.net/rfc/cli_process_title )
A new commit into branch 5.5
13 years ago
Jonh Wendell
59b016192d
Added HTTP codes as of RFC 6585
Added descriptions for the new HTTP codes:
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 511 Network Authentication Required
13 years ago
Remi Collet
0cea9e6843
Fixed bug #64128 buit-in web server is broken on ppc64.
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.
13 years ago
Lars Strojny
785e66adb5
PR #260 : Update css for 404 pages to feel more up to date and have a consistent layout across browsers
13 years ago
Stanislav Malyshev
36e19c9cab
Bug #43177 : If an eval() has a parse error, the overall exit status and 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.
13 years ago
Xinchen Hui
a666285bc2
Happy New Year
13 years ago
Xinchen Hui
0a7395e009
Happy New Year
13 years ago
Xinchen Hui
a2045ff332
Happy New Year~
13 years ago
pascalc
d813af0618
update test for supported Mime Types checking
13 years ago
pascalc
e5b1ebc082
update list of common Mime Types in PHP development server to support Web audio/video formats (Webm ,and Ogg containers) + have jpeg mime types listed together
13 years ago
Anatoliy Belsky
3d82f16c7d
Fixed test sapi/cli/tests/006.phpt
Third param in preg_match_all() is optional for a while )
14 years ago
Xinchen Hui
ea441bd08d
Implemented FR #63242 (Default error page in PHP built-in web server uses outdated html/css)
14 years ago
Xinchen Hui
610c7fbe7b
Remove executable permission on phpt
14 years ago
Lars Strojny
aa133ea282
Merged GitHub PR #190 : Support for the HTTP PATCH method in CLI webserver
14 years ago
Niklas Lindgren
27542db4e7
Respond with 501 to unknown request methods
Fixed typo
Moved 501 response from dispatch to event_read_request
Return return value of send_error_page
14 years ago
Felipe Pena
2e1d31d123
- Fixed bug #62829 (stdint.h included on platform where HAVE_STDINT_H is not set)
14 years ago
Xinchen Hui
d1f0662e4d
Fixed bug #62725 (Calling exit() in a shutdown function does not return the exit value)
The fix is make 5.4 behavior consistent with 5.3
14 years ago
Xinchen Hui
36100060b3
Sleep a little bit more, in some slow machine (like gcov), it will take a little more time to setup server
14 years ago
Xinchen Hui
0988ae3c43
Implemented FR #62700 (have the console output 'Listening on http://localhost:8000 ')
14 years ago
Johannes Schlüter
860b3ffe75
Fix Bug #62612 readline extension compilation fails
14 years ago
Xinchen Hui
a88eca53f7
Improve error message for ssl request
14 years ago
Andrew Faulds
d12f8d6790
Removed Logo GUIDs and replaced with Data URIs and div hidden with JS
- removed php_logo_guid()
- removed php_egg_logo_guid()
- removed php_real_logo_guid()
- removed zend_logo_guid()
- removed logo GUID handling
- removed logo GUIDs from source
- added logo data URIs instead for phpinfo()
- added credits to phpinfo() page, but hidden by default
14 years ago
Johannes Schlüter
bc0972e78d
Fix memleak in CLI
14 years ago
stealth35
11a202ef50
Fix potential leak in cli server
14 years ago
Matt Ficken
4054890b26
Fixed bug #62176 Test Bug - sapi/cli/tests/bug61546.phpt
14 years ago
Xinchen Hui
d394c17293
Correct test title
14 years ago
Xinchen Hui
1e60d0c105
Implemented FR #61977 (Need CLI web-server support for files with .htm & svg extensions)
14 years ago
Xinchen Hui
7b2ab56997
Fix test failed, the fsockopen will be refused immediately if the server is not set up.
14 years ago
David Soria Parra
2cb0ed1328
Typo
14 years ago
Matt Ficken
87a011d372
Fix bug 61769 Random failure of php_cli_server*phpt tests
14 years ago
Xinchen Hui
ad3a42c26c
correct variable name
14 years ago
Xinchen Hui
bae56a87f8
Fixed bug #61546 (functions related to current script failed when chdir() in cli sapi).
14 years ago
Xinchen Hui
8d44b91731
typo in test
14 years ago