| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len * 4 + 4`).
|
|
|
|
| |
We make sure that negative values are properly compared.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
* PHP-7.3:
Next is 7.3.17
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Unfortunately, some Webservers (e.g. IIS) do not implement the (F)CGI
specifications correctly wrt. chunked uploads (i.e. Transfer-encoding:
chunked), but instead pass -1 as CONTENT_LENGTH to the CGI
application. However, our (F)CFI SAPIs (i.e. cgi and cgi-fcgi) do not
support this.
Therefore we try to retrieve the stream size in advance and pass it to
`curl_mime_data_cb()` to prevent libcurl from doing chunked uploads.
This is basically the same approach that `curl_mime_filedata()`
implements, except that we are keeping already opened streams open for
the `read_cb()`.
|
| |
| |
| |
| | |
We implement that on top of Cryptography API: Next Generation (CNG).
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Update libmagic.patch
|
| |
| |
| |
| |
| |
| |
| |
| | |
Some commits missed to update the patch file, so we're catching up on
this.
To generally make this easier, we back-port generate_patch.sh from
PHP-7.4, where we now also generate magic.h from magic.h.in.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #79333: com_print_typeinfo() leaks memory
|
| |
| |
| |
| |
| |
| |
| |
| | |
We have to free the `ansiname`s, regardless of whether they have been
put into the hashtable or not.
Since bug79299.phpt already shows the leak when run with a leak
checker, there is no need for another regression test.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #79332: php_istreams are never freed
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Releasing the `com_dotnet_istream_wrapper` in `istream_destructor()` is
pointless, since `istream_destructor()` is only called when the
resource is going to be released. This recursion is not a real issue,
though, since the resource is never exposed to userland, and has at
most refcount 1, so due to well defined unsigned integer underflow, it
never is released twice. However, returning early in this case causes
a memory leak which needs to be fixed.
|
| |
| |
| |
| | |
Accidentially committed this when merging from 7.3.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fixed bug #79062
|
| |
| |
| |
| | |
Back up the doc comment when performing heredoc scanahead.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #79311: enchant_dict_suggest() fails on big endian architecture
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
For obvious reasons, we must not assign a `size_t` value to an `int`
variable using memcpy(). However, there is actually no need for the
intermediate `n_sugg_st` here, if we use the proper types in the first
place.
A regression test is not necessary, because dict_suggest.phpt already
exhibits the erroneous behavior on big endian architectures.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Terminate only after expecting the log lines to avoid race
condition.
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fixed incorrect overflow detection
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Add upgrading node regarding fix for bug #79271
|
| |
| |
| |
| | |
Cf. <https://github.com/php/php-src/pull/5180#issuecomment-590259750>ff.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fixed incorrect behavior of internal memory debugger
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #64032: mysqli reports different client_version
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While `mysqli_get_client_version()` calls `mysql_get_client_version()`
to retrieve the client version, `mysql::$client_version` is initialized
to `MYSQL_VERSION_ID`. Both should match though, and since the former
is the more useful information, we fix `mysql::$client_version`.
We do not add a regression test, because it would usually succeed
anyway, and we already have several tests with respective `assert()`s.
|
| |
| |
| |
| | |
This has been fixed in PHP 7.4, let's make sure it stays fixed.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #63206: Fully support error/exception_handler stacking, even with null or inside the handler
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
or inside the handler
Always push the current user_error/exception_handler to the stack,
even when it is empty, so restore_error_handler() always works as
expected.
The user_error_handler is especially temporarily empty when we are inside
the error handler, which caused inconsistent behaviour before.
|
| | |
|
| |
| |
| |
| |
| | |
If argon2i is provided by libargon, then argon2id may not be
available here.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Don't treat any WS as start of header
|
| |
| |
| |
| |
| | |
Check that the header occurs after \n, not other whitespace
characters.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Reduce code duplication in HTTP header checks
|