<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/sapi/cli/tests, branch php-5.4.45</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>fix test</title>
<updated>2015-08-04T23:45:20+00:00</updated>
<author>
<name>Stanislav Malyshev</name>
<email>stas@php.net</email>
</author>
<published>2015-08-04T23:45:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=da5321013c4dbac0faac12f78b28f662a91b4bc1'/>
<id>da5321013c4dbac0faac12f78b28f662a91b4bc1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix test</title>
<updated>2015-08-04T21:46:19+00:00</updated>
<author>
<name>Stanislav Malyshev</name>
<email>stas@php.net</email>
</author>
<published>2015-08-04T21:46:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=0a21b5d97039945a9e5dc683f2f5e8b379f07ada'/>
<id>0a21b5d97039945a9e5dc683f2f5e8b379f07ada</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>This test should pass</title>
<updated>2014-09-27T00:17:26+00:00</updated>
<author>
<name>Johannes Schlüter</name>
<email>johannes@php.net</email>
</author>
<published>2014-09-27T00:17:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=2711948d14cbcd5ababf82cae55ef25f3f870e1f'/>
<id>2711948d14cbcd5ababf82cae55ef25f3f870e1f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug #66830 (Empty header causes PHP built-in web server to hang).</title>
<updated>2014-07-07T20:36:06+00:00</updated>
<author>
<name>Adam Harvey</name>
<email>aharvey@php.net</email>
</author>
<published>2014-07-07T20:36:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=604de67b7d0b8c6db76002011e3b55dd9c7aeec8'/>
<id>604de67b7d0b8c6db76002011e3b55dd9c7aeec8</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add 308 and 426 to the HTTP response code map in the CLI server.</title>
<updated>2014-06-13T00:54:29+00:00</updated>
<author>
<name>Adam Harvey</name>
<email>aharvey@php.net</email>
</author>
<published>2014-06-13T00:54:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=fe676748091e3329a8c8b053b7ce6fd41ae264e6'/>
<id>fe676748091e3329a8c8b053b7ce6fd41ae264e6</id>
<content type='text'>
Implements FR #67429 (CLI server is missing some new HTTP response codes).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements FR #67429 (CLI server is missing some new HTTP response codes).
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle CLI server request headers case insensitively.</title>
<updated>2013-09-09T23:24:49+00:00</updated>
<author>
<name>Adam Harvey</name>
<email>aharvey@php.net</email>
</author>
<published>2013-09-09T23:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=3c3b2b5bdc8e2bcff4d0e7d09375ad7af760b32a'/>
<id>3c3b2b5bdc8e2bcff4d0e7d09375ad7af760b32a</id>
<content type='text'>
Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
</pre>
</div>
</content>
</entry>
<entry>
<title>Change the search in get_status_string() to correctly handle unknown codes.</title>
<updated>2013-06-20T16:31:57+00:00</updated>
<author>
<name>Adam Harvey</name>
<email>aharvey@php.net</email>
</author>
<published>2013-06-19T18:32:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=283f56af6696f57400bdbf8ce29ee66e64249c0d'/>
<id>283f56af6696f57400bdbf8ce29ee66e64249c0d</id>
<content type='text'>
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).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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).
</pre>
</div>
</content>
</entry>
<entry>
<title>Forgot to fix the test on 5.4</title>
<updated>2013-03-28T17:42:01+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2013-03-28T17:42:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=92aa361bfc3bf9113f264e6700d8494ce4152897'/>
<id>92aa361bfc3bf9113f264e6700d8494ce4152897</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Attempt to fix SKIP</title>
<updated>2013-03-28T15:22:20+00:00</updated>
<author>
<name>Xinchen Hui</name>
<email>laruence@php.net</email>
</author>
<published>2013-03-28T15:22:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=ef93a93ee21bce9218188d3f037cf55c5d2ae452'/>
<id>ef93a93ee21bce9218188d3f037cf55c5d2ae452</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test on Mac (\D shows up)</title>
<updated>2013-03-28T06:34:08+00:00</updated>
<author>
<name>Xinchen Hui</name>
<email>laruence@gmail.com</email>
</author>
<published>2013-03-28T06:34:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=ab089611e0fa5dc61030a01d17e71a10714f061a'/>
<id>ab089611e0fa5dc61030a01d17e71a10714f061a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
