| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
Use the same logic for getgrgid_r, getpwnam_r and getpwuid_r
as for getgrnam_r in #75696
Closes GH-5740.
|
|
|
|
| |
Make sure we don't use zresource after the stream has been destroyed.
|
|
|
|
|
|
|
| |
Even if the length of a maker note does not match our expectations
(either because the maker note is corrupted, or because our
expectations do not quite match reality), there is no need to let
parsing fail; we can still go on parsing the other meta information.
|
|
|
|
|
| |
We have to loop over all image pixels to avoid the black border. This
is also done in external libgd in `_gdScaleOneAxis` and `_gdScalePass`.
|
|
|
|
|
|
|
|
| |
The `timercmp()` manpage[1] points out that some systems have a broken
implementation which does not support `>=`. This is definitely the
case for the Windows SDK, which only supports `<` and `>`.
[1] <https://linux.die.net/man/3/timercmp>
|
|
|
|
|
|
| |
While unencrypted connections ignore negative timeouts, SSL/TLS
connections did not special case that, and so always failed due to
timeout.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If the current character is a line break character, it cannot be a tab
or space character, so we would always fail with an invalid sequence
error. Obviously, these `scan_stat == 4` conditions are meant to be
exclusive.
Furthermore, if `in_pp == NULL || in_left_p == NULL` is true, we hit a
segfault if we are not returning right away. Obviously, the additional
constraints don't make sense, so we remove them.
|
| |
|
|
|
|
|
| |
Instead of some brittle and unefficient string matching, we can just
check for the function handler.
|
|
|
|
|
|
|
| |
As its name suggests, `sqlite3_data_count` returns the number of
columns in the current row of the result set; we are interested in the
number of columns regardless of the current row, so we have to use
`sqlite3_column_count` instead.
|
|
|
|
|
|
| |
As of PHP 7.3.0, `sapi_cli_single_write()` is supposed to return `< 0`
on failure, but `fwrite()` returns a `size_t`, and signals error by
setting the stream's error indicator. We have to cater to that.
|
|
|
|
|
| |
Without this configuration option, PVS-Studio looks for preprocessed
files (*.i), but these do not exists.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The color resolution is expected in bits 4-6 of the packed fields byte
of the logical screen descriptor (byte 10 of the GIF data stream),
according to the specification[1], section 18.
[1] <https://www.w3.org/Graphics/GIF/spec-gif89a.txt>
|
|
|
|
|
|
| |
Since the member is not used in `OnUpdateEol()` that's not really an
issue, but still it's confusing to apparently have two INI settings
targeting the same member.
|
| |
|
|
|
|
|
| |
We must not do locale aware float to string conversion here; instead
we using our `snprintf()` implementation with the `F` specifier.
|
|
|
|
| |
We should display boolean INI settings as boolean.
|
|
|
|
|
| |
On Windows, PATH_TRANSLATED may contain backslashes as well as slashes,
so we must not only check for `DEFAULT_SLASH`.
|
| |
|
|\
| |
| |
| |
| |
| | |
* PHP-7.2:
bump version to 7.2.32-dev
Update NEWS
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
* PHP-7.2:
Fix #78876: Long variables cause OOM and temp files are not cleaned
Fix #78875: Long filenames cause OOM and temp files are not cleaned
Update NEWS for 7.2.31
Update CREDITS for PHP 7.2.30
Update NEWS for PHP 7.2.30
|
| |
| |
| |
| | |
We use the proper type for size calculations, which is `size_t`.
|
| |
| |
| |
| |
| |
| | |
We must not cast `size_t` to `int` (unless the `size_t` value is
guaranteed to be less than or equal to `INT_MAX`). In this case we can
declare `array_len` as `size_t` in the first place.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Closes GH-5548.
|
| |
| |
| |
| |
| |
| |
| | |
We map the POSIX semantics of `IPC_PRIVATE` by creating unnamed file
mapping objects on Windows. While that is not particularly useful for
ext/shmop, which is the only bundled extension which uses `shmget()`,
it may be useful for external extensions.
|
| |
| |
| |
| |
| | |
Since Windows has its own definitions of the `PHP_DNS_*` macros, we
have to use these when registering the PHP constants.
|
| |
| |
| |
| |
| | |
We did not allocate a cache slot for FETCH_CLASS. This is already
fixed on newer PHP versions.
|
| |
| |
| |
| | |
This function is lacking any tests so far.
|
| |
| |
| |
| |
| |
| | |
Revert "Fix #61597: SXE properties may lack attributes and content"
This reverts commit 7c081db885756d7b176a55b90b8746f664d1e042.
|
| | |
|
| |
| |
| |
| |
| | |
We add support for Activision HSM (`IO_REPARSE_TAG_ACTIVISION_HSM`) and
VFS for Git (`IO_REPARSE_TAG_PROJFS`). The latter fixes bug #78784.
|
| | |
|
| |
| |
| |
| |
| | |
(cherry picked from commit a1a044dcc74379fafb2b63db5ab033aa062aada7
on author's explicit request)
|
| |
| |
| |
| |
| | |
Duplicate metadata can only happen if someone tampers with the phar, so
we can and should treat that as error.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The `start` parameter of `php_cgi_ini_activate_user_config` is supposed
to hold the byte offset of the doc root in the given `path`. However,
the current expression which fixes a potential type incompatibility
will ever only evaluate to zero or one, because it uses the *logical*
and operator (`&&`). Furthermore we notice that subtracting one from
`doc_root_len` is not necessary, so there is even no need for the
`start` parameter at all.
|
| |
| |
| |
| |
| |
| | |
This is the change from GH-5417 but for FPM. This was stripping the
last character from the doc_root. Given how it is used, this should
be harmless, but let's make it less confusing...
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I stumbled upon this while debugging a strange issue with
stream_socket_client() where it randomly throws out errors when
the connection timeout is set to below 1s. The logic to calculate
time difference in php_openssl_subtract_timeval() is wrong when
a.tv_usec < b.tv_usec, causing connection errors before the timeout
is reached.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Make sure pointer types match what is used by libmysql everywhere.
Closes GH-5380.
|
| |
| |
| |
| | |
Make sure to deindirect properties when creating array.
|