Adam Harvey
1a43eac259
Merge branch 'PHP-5.6'
...
* PHP-5.6:
Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
2014-07-07 20:49:00 +00:00
Adam Harvey
70e9d3e2f9
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
2014-07-07 20:45:01 +00:00
Adam Harvey
1939b34c78
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
2014-07-07 20:40:47 +00:00
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.
2014-07-07 20:36:06 +00:00
Adam Harvey
dd57ceb1de
Merge branch 'PHP-5.6'
...
* PHP-5.6:
Add 308 and 426 to the HTTP response code map in the CLI server.
2014-06-12 17:57:55 -07:00
Adam Harvey
e082199d8e
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Add 308 and 426 to the HTTP response code map in the CLI server.
2014-06-12 17:57:36 -07:00
Adam Harvey
e956ba9357
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Add 308 and 426 to the HTTP response code map in the CLI server.
2014-06-12 17:56:10 -07:00
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).
2014-06-12 17:54:29 -07:00
Adam Harvey
f79f3ac184
Fix broken test.
2014-06-11 00:22:13 +00:00
Ferenc Kovacs
7446766dab
add missing skip to the output, so we actually skip this test
2014-04-07 16:57:52 +02:00
Yasuo Ohgaki
cbd108abf1
Implement RFC https://wiki.php.net/rfc/default_encoding
2014-02-13 11:54:52 +09:00
Julien Pauli
aa33da6a51
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed a wrong test
2013-11-26 17:43:45 +01:00
Julien Pauli
ff20a9019d
Fixed a wrong test
2013-11-26 17:43:31 +01:00
Andrea Faulds
35b463a2c5
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Updated NEWS
Removed UPGRADING note
Rewrote test using tcp instead of http:// stream
Implemented FR #65917 (getallheaders() is not supported by the built-in...)
2013-11-18 21:43:59 +00:00
Andrea Faulds
a3f5b9f62d
Rewrote test using tcp instead of http:// stream
2013-11-12 20:27:38 +00:00
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
2013-11-12 20:27:34 +00:00
Levi Morrison
73c44d6e6a
Fixed assumption that the temporary directory is located in /tmp
2013-10-11 22:18:07 +02:00
Anatol Belski
ac562b027b
Merge branch 'PHP-5.5'
...
* PHP-5.5:
Fixed bug #65678 the test cli_process_title_windows will fails on particular environnement
2013-09-20 16:01:11 +02:00
Anatol Belski
8f146c2bb0
Fixed bug #65678 the test cli_process_title_windows will fails on particular environnement
...
Patch by Pierre Renaudet
2013-09-20 15:59:33 +02:00
Adam Harvey
1ff81965c5
Merge branch 'PHP-5.5'
...
* PHP-5.5:
Handle CLI server request headers case insensitively.
5.4.21 now
2013-09-09 16:33:43 -07:00
Adam Harvey
8b6270271e
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Handle CLI server request headers case insensitively.
5.4.21 now
Conflicts:
configure.in
main/php_version.h
2013-09-09 16:32:16 -07:00
Adam Harvey
3c3b2b5bdc
Handle CLI server request headers case insensitively.
...
Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
2013-09-09 16:24:49 -07:00
Michael Wallner
4a9d7c1f00
add NEWS entry; add simple test
2013-08-06 22:51:58 +02:00
Adam Harvey
77c46ba516
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fix the spelling of the php_cli_server_http_response_status_code_pair typedef.
Change the search in get_status_string() to correctly handle unknown codes.
2013-06-20 09:39:37 -07:00
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).
2013-06-20 09:31:57 -07:00
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
2013-03-29 23:42:50 +08:00
Nikita Popov
92aa361bfc
Forgot to fix the test on 5.4
2013-03-28 18:42:01 +01:00
Nikita Popov
b1a6a17039
Fix Bug #64545 : PHP Error in ef93a93ee2
...
Test was using die "Foo" instead of die("Foo").
2013-03-28 18:23:23 +01:00
Xinchen Hui
127c78cb76
Merge branch 'PHP-5.4' into PHP-5.5
2013-03-28 23:23:07 +08:00
Xinchen Hui
ef93a93ee2
Attempt to fix SKIP
2013-03-28 23:22:20 +08:00
Xinchen Hui
7dd661d0cd
Merge branch 'PHP-5.4' into PHP-5.5
2013-03-28 14:35:02 +08:00
Xinchen Hui
ab089611e0
Fix test on Mac (\D shows up)
2013-03-28 14:34:08 +08:00
Xinchen Hui
ae71c1d9aa
Merge branch 'PHP-5.4' into PHP-5.5
2013-03-28 13:54:37 +08:00
Xinchen Hui
467cd6a60f
Add test for #64529
2013-03-28 13:45:42 +08:00
Keyur Govande
a0a995cff3
Support for CLI process title ( https://wiki.php.net/rfc/cli_process_title )
...
A new commit into branch 5.5
2013-03-07 18:54:34 +00:00
Lars Strojny
785e66adb5
PR #260 : Update css for 404 pages to feel more up to date and have a consistent layout across browsers
2013-01-14 20:43:14 +01:00
Stanislav Malyshev
80a9a80a52
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Bug #43177 : If an eval() has a parse error, the overall exit status and return code should not be affected.
fix NEWS
Conflicts:
main/main.c
2013-01-01 21:20:35 -08:00
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.
2013-01-01 21:18:59 -08:00
Lars Strojny
aaa5e42177
Merge branch 'PHP-5.4' into PHP-5.5
2012-12-14 14:56:25 +01:00
pascalc
d813af0618
update test for supported Mime Types checking
2012-12-14 13:59:06 +01:00
Anatoliy Belsky
01f1894194
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fixed test sapi/cli/tests/006.phpt
2012-11-14 16:23:36 +01:00
Anatoliy Belsky
3d82f16c7d
Fixed test sapi/cli/tests/006.phpt
...
Third param in preg_match_all() is optional for a while )
2012-11-14 16:20:59 +01:00
Xinchen Hui
ea441bd08d
Implemented FR #63242 (Default error page in PHP built-in web server uses outdated html/css)
2012-10-10 17:23:30 +08:00
Xinchen Hui
e081c55fb5
Merge branch 'PHP-5.3' into PHP-5.4
2012-10-10 10:31:31 +08:00
Xinchen Hui
610c7fbe7b
Remove executable permission on phpt
2012-10-10 10:27:49 +08:00
Xinchen Hui
7a7b2a0642
Merge branch 'PHP-5.4'
2012-10-10 17:24:40 +08:00
Xinchen Hui
4b152e5470
Merge branch 'PHP-5.4'
2012-10-10 10:32:38 +08:00
Lars Strojny
d0e96a5575
Merge branch 'PHP-5.4'
2012-09-18 22:17:36 +02:00
Lars Strojny
aa133ea282
Merged GitHub PR #190 : Support for the HTTP PATCH method in CLI webserver
2012-09-18 22:16:51 +02:00
Stanislav Malyshev
6cc9d99dc2
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Respond with 501 to unknown request methods
2012-09-15 23:11:55 -07:00