Reeze Xia
34f09b6240
Fixed bug #67741 (auto_prepend_file messes up __LINE__)
This also fixes bug #54081
11 years ago
Xinchen Hui
73c1be2653
Bump year
11 years ago
Rasmus Lerdorf
e4b3d623a2
Fix bug #68784
11 years ago
Adam Harvey
448ef30f75
Handle NULL strings in sapi_cli_server_register_variable().
Fixes bug #68745 (Invalid HTTP requests make web server segfault).
11 years ago
Adam Harvey
0cc2810498
Allow CLI server test scripts to specify the name of the router file.
This is required to write tests that behave differently when an index.php isn't
present in the document root. (Such as the one I'm about to commit.)
11 years ago
nil0x42
a87300241f
Fix php cli (-S option) inconsistent port parsing
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).
12 years ago
Ferenc Kovacs
108bf84967
fix test with readline on mac
11 years ago
Johannes Schlüter
2711948d14
This test should pass
12 years ago
Remi Collet
e9166fec62
Fix bug #67878 program_prefix not honoured in man pages
- add @program_prefix@ in php, phpize and php-config man pages
- set date to 2014
- fix "SEE ALSO" alignment
12 years ago
Johannes Schlüter
babeca356b
It's 2014 already, fix copyright year where user visible
Left out all file headers
12 years ago
Tjerk Meesters
1684ba3c6f
Fix #67594 - invisible colon should be stripped off header name
12 years ago
Adam Harvey
604de67b7d
Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
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.
12 years ago
Lior Kaplan
945938d33c
Update copyright year to 2014
12 years ago
Adam Harvey
fe67674809
Add 308 and 426 to the HTTP response code map in the CLI server.
Implements FR #67429 (CLI server is missing some new HTTP response codes).
12 years ago
Remi Collet
58c6a08e00
Fixed bug #67406 built-in web-server segfaults on startup
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.
12 years ago
Anatol Belski
9eb726b3ab
Fixed bug #67079 Missing MIME types for XML/XSL files
12 years ago
Remi Collet
b1df743b7a
man page: long option name is --strip, not --stripped
12 years ago
Remi Collet
c73b0543f1
--global have be removed in 5.2
12 years ago
Xinchen Hui
47c9027772
Bump year
12 years ago
Xinchen Hui
c0d060f5c0
Bump year
12 years ago
Julien Pauli
ff20a9019d
Fixed a wrong test
12 years ago
Christopher Jones
d0cd112702
This is CLI web server change. Added some common MIME types to the
existing lookup list, pending a more thorough lookup solution, if
anyone wants to do that. Ref http://news.php.net/php.internals/69990
A router can be used to add to, or override, the MIME type lookups,
see http://php.net/manual/en/features.commandline.webserver.php
13 years ago
Andrea Faulds
a3f5b9f62d
Rewrote test using tcp instead of http:// stream
13 years ago
Andrea Faulds
aee271ec0d
Implemented FR #65917 (getallheaders() is not supported by the built-in...)
- Implemented apache_request_headers() and getallheaders() alias in CLI server
- Implemented apache_response_headers() in CLI server using FastCGI code
Conflicts:
NEWS
UPGRADING
13 years ago
Felipe Pena
3aaee86ee3
- Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding)
13 years ago
Anatol Belski
8f146c2bb0
Fixed bug #65678 the test cli_process_title_windows will fails on particular environnement
Patch by Pierre Renaudet
13 years ago
Christopher Jones
dfa43d55dd
Added application/pdf to PHP CLI Web Server mime types.
13 years ago
Adam Harvey
3c3b2b5bdc
Handle CLI server request headers case insensitively.
Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
13 years ago
Christopher Jones
9ad97cd489
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
13 years ago
Lior Kaplan
f4b9b20b35
Add built-in web server to invocation list
13 years ago
Lior Kaplan
bcef0ebc2d
Terminology: change embedded web server to built-in web server to align with cli usage
13 years ago
Lior Kaplan
07501dc1a2
Align -B and -E parameter names with cli usage (begin_code and end_code)
13 years ago
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