| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
components is an unsigned number, it cannot be smaller than zero.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
A new function `pcre_get_compiled_regex_cache_ex()` is introduced,
which allows to compile regexp pattern using the "C" locale instead
of a current locale.
This will be needed to replace setlocale() usage in fileinfo,
which is not thread-safe.
|
| | |
|
| |
| |
| |
| |
| | |
The high byte of `_libiconv_version` specifies the major version; the
low byte the minor version.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
`remove_path` points to the given string, so we must not modify it.
Instead we use a duplicate, if we need the modification.
We may want to switch to `zend_string`s in master.
|
| | |
|
| |
| |
| |
| |
| | |
We only want to test manually triggered session GC.
Avoid spurious output due to automatic GC.
|
| |
| |
| |
| | |
This reverts commit 41a4379cb45419a376043ca5f8c5a2bca82cea7c.
|
| | |
|
| |
| |
| |
| |
| | |
The integer addition in `ZEND_MM_ALIGNED_SIZE_EX` can overflow, what we
have to catch early.
|
| | |
|
| |
| |
| |
| | |
reused)
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
stream_get-line repeatedly calls php_stream_fill_read_buffer until
enough data is accumulated in buffer. However, when stream contains
filters attached to it, then each call to fill buffer essentially
resets buffer read/write pointers and new data is written over old.
This causes stream_get_line to skip parts of data from stream
This patch fixes such behavior, so fill buffer call will append.
|
| |
| |
| |
| |
| |
| | |
This reverts commit 8ce04df7e0108a10f7b782a28204e9384ab1129c.
Cf. <https://github.com/php/php-src/pull/4766#discussion_r330658679>.
|
| |
| |
| |
| |
| | |
If the integer addition in `ZEND_MM_ALIGNED_SIZE_EX` overflows, the
macro evaluates to `0`, what we should catch early.
|
| |
| |
| |
| | |
Fixes OSS-Fuzz #17895.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
We apply type juggling for other types than array.
|
| |
| |
| |
| |
| | |
We must not define method entries, if the actual method definitions or
the arginfo structures are not defined.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Fixes OSS-Fuzz #17721.
|
| |
| |
| |
| |
| | |
Fix array length passed to zend_hash_str_find_ptr() casting from
UChar array to char array requires mul by sizeof(UChar).
|
| |
| |
| |
| | |
Cf. <https://bugs.php.net/78590>.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
If count is ZEND_LONG_MIN the count-- loop underflows. This is
ultimately harmless, but results in a ubsan warning.
Fix this by adding a sanity check that the count isn't negative,
because that doesn't make sense...
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This fixes two leaks related to duplicate tags, as well as a leak
of zero-length FMT_(S)BYTE with non-null value. This can show up
for MAKERNOTE values where the original length is non-zero, but
the first character is a null byte.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
mb_decode_numericentity() accepts a fourth optional parameter, which is
unused, however. Since this parameter doesn't do any harm, and to avoid
the small BC break, we're keeping this parameter for PHP 7, but adjust
the arginfo.
For PHP 8, we will remove this parameter.
|
| |
| |
| |
| |
| |
| |
| | |
This issue was recently introduced in c739023a50876e2a90588f915803b0140a95638e,
when the restriction that components>0 has been relaxed. We now need
to make sure that any tags that expect at least one component check
that this is the case.
|
| | |
|
| | |
|
| |
| |
| |
| | |
`sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Because of user specific webdirs it should be possible to set a
status/ping path like "/~username/status".
Closes GH-4698.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
https://www.php.net/manual/en/function.get-headers.php#refsect1-function.get-headers-examples
shows that it will return string keys when the second argument is
non-zero. I've verified that this is the case.
This bug was there since the initial commit in c88ffa9a567.
Closes GH-4702.
|
| |
| |
| |
| | |
By using an explicit (double) cast.
|
| |
| |
| |
| |
| | |
The result of php_var_unserialize always needs to be destroyed,
even if the call failed.
|