php-src/ext/standard/tests
Niels Dossche 1ede3137c9 Fix GH-11274: POST/PATCH request via file_get_contents + stream_context_create switches to GET after a HTTP 308 redirect
RFC 7231 states that status code 307 should keep the POST method upon
redirect. RFC 7538 does the same for code 308. Although it's not
mandated by the RFCs that PATCH is also kept (we can choose), it seems
like keeping PATCH will be the most consistent and understandable behaviour.

This patch also changes an existing test because it was testing for the
wrong behaviour.

Closes GH-11275.
2023-05-19 23:37:20 +02:00
..
array Fix tests 2022-08-30 16:52:33 +02:00
assert Remove assert_options() return value info 2021-04-28 11:05:05 +02:00
class_object Improve class inheritance error messages (#7307) 2021-07-27 09:42:37 +02:00
crypt crypt: Fix validation of malformed BCrypt hashes 2023-02-12 20:46:44 -07:00
dir Merge branch 'PHP-8.0' 2021-08-17 11:32:24 +02:00
directory Declare Directory properties 2021-08-19 10:39:23 +02:00
file Fix test bug60120.phpt 2023-04-13 12:56:18 +02:00
filters Merge branch 'PHP-8.0' into PHP-8.1 2021-10-07 11:46:49 +02:00
general_functions fix: support for timeouts with ZTS on Linux (#10141) 2023-03-03 11:35:06 +01:00
hrtime [skip ci] Mark frequently failing hrtime test as XFAIL 2022-10-20 10:59:07 +02:00
http Fix GH-11274: POST/PATCH request via file_get_contents + stream_context_create switches to GET after a HTTP 308 redirect 2023-05-19 23:37:20 +02:00
image Merge branch 'PHP-8.0' 2021-07-16 10:07:35 +02:00
ini_info
mail Fix GH-10990: mail() throws TypeError after iterating over $additional_headers array by reference 2023-04-01 19:44:43 +02:00
math Update deprecation message for incompatible float to int conversion 2021-06-07 14:36:11 +02:00
misc
network Merge branch 'PHP-8.0' into PHP-8.1 2022-09-28 12:13:39 +02:00
password Merge branch 'PHP-8.0' into PHP-8.1 2023-02-12 21:33:39 -07:00
random
serialize Fix infiniry recursion during serialize() of "tricky" object 2022-03-01 00:00:22 +03:00
streams Fix GH-10031: [Stream] STREAM_NOTIFY_PROGRESS over HTTP emitted irregularly for last chunk of data 2023-05-05 19:26:44 +02:00
strings Fix undefined behaviour in unpack() 2023-03-28 22:43:27 +02:00
time Deprecate strftime() and gmstrftime() 2021-07-14 09:38:43 +02:00
url Make some zend_test dependencies explicit 2021-06-14 15:40:34 +02:00
versioning
bug49244.phpt
bug64370_var1.phpt
bug64370_var2.phpt
bug71827.phpt
bug75220.phpt
bug79821.phpt
bug80915.phpt Handle reference zvals when outputting superglobals in phpinfo() 2021-03-30 13:49:22 +02:00
bug81048.phpt Fix #81048: phpinfo(INFO_VARIABLES) "Array to string conversion" 2021-05-19 14:07:15 +02:00
bug81727.phpt Fix #81727: Don't mangle HTTP variable names that clash with ones that have a specific semantic meaning. 2022-09-09 17:10:04 +01:00
forward_static_call_array.phpt
gh10885.phpt Fix GH-10885: Leaking stream_socket_server context 2023-03-20 17:42:16 +01:00
oss_fuzz_57392.phpt Fix buffer-overflow in php_fgetcsv() with \0 delimiter and enclosure 2023-03-25 17:42:39 +01:00
php_version_win_const.phpt
setrawcookie_basic_001.phpt
setrawcookie_basic_002.phpt
skipif_root.inc