#
e38d300a |
| 14-Apr-2022 |
Derick Rethans |
Refactor code to avoid duplication |
#
33bb201b |
| 09-Apr-2022 |
Jakub Zelenka |
Fix bug #76003: FPM /status reports wrong number of active processe The fix introduces early locking of scoreboard when it is updated which prevents the race condition causing an incorre
Fix bug #76003: FPM /status reports wrong number of active processe The fix introduces early locking of scoreboard when it is updated which prevents the race condition causing an incorrect number of active processes being set.
show more ...
|
#
1a75269c |
| 03-Apr-2022 |
ryancaicse <73822648+ryancaicse@users.noreply.github.com> |
Move locks in TSRM.c to prevent races Closes GH-8298. |
#
84c18f9f |
| 09-Apr-2022 |
Bernd Holzmüller |
Preserve file-position when php://temp switches to temporary file Closes GH-8333. |
#
7c702b72 |
| 29-Mar-2022 |
Christoph M. Becker |
Fix GH-8267: MySQLi uses unsupported format specifier on Windows Instead of using the unsupported `%I64u` and `%I64d` format specifiers on Windows, we use the portable `PRIu64` and `PRId
Fix GH-8267: MySQLi uses unsupported format specifier on Windows Instead of using the unsupported `%I64u` and `%I64d` format specifiers on Windows, we use the portable `PRIu64` and `PRId64` specifiers. The `L64()` macro and the `my_longlong` typedef should be adapted as well, as the `i64` literal suffix is still supported by MSVC, but using `LL` or `ll` is recommended[1], and the standard `int64_t` is available there anyway. This is not urgent, though. [1] <https://docs.microsoft.com/en-us/cpp/cpp/numeric-boolean-and-pointer-literals-cpp?view=msvc-170#integer-literals> Closes GH-8268.
show more ...
|
#
c2eafc29 |
| 29-Mar-2022 |
Christoph M. Becker |
Fix #81714: segfault when serializing finalized HashContext We must not allow to serialize already finalized `HashContext`s, since the internal context is already freed. Since there is
Fix #81714: segfault when serializing finalized HashContext We must not allow to serialize already finalized `HashContext`s, since the internal context is already freed. Since there is not much point in serializing finalized `HashContext`s, we just bail out in that case. Closes GH-8265.
show more ...
|
#
43f3745a |
| 05-Apr-2022 |
Christoph M. Becker |
Bump version Apparently, this has been forgotten when PHP 8.0.17RC1 and 8.0.18RC1 had been tagged. We also fix the version of the fix for GH-8253, which didn't make it into
Bump version Apparently, this has been forgotten when PHP 8.0.17RC1 and 8.0.18RC1 had been tagged. We also fix the version of the fix for GH-8253, which didn't make it into PHP 8.0.18RC1.
show more ...
|
#
13649451 |
| 01-Apr-2022 |
Bob Weinand |
Fix GH-8289: Exceptions thrown within a yielded from iterator are not rethrown into the generator This also fixes the fact that exception traces were not including the generator frame when t
Fix GH-8289: Exceptions thrown within a yielded from iterator are not rethrown into the generator This also fixes the fact that exception traces were not including the generator frame when thrown in a yielded from iterator.
show more ...
|
#
0e6d6f83 |
| 28-Mar-2022 |
Christoph M. Becker |
Fix GH-8253: pg_insert() fails for references We need to deref the values. Closes GH-8262. |
#
5a8622fe |
| 28-Mar-2022 |
Christoph M. Becker |
Fix result_type related stack corruption on LLP64 architectures Integer parameters are stored in `zend_long` values, which have 64 bits on LLP64, but `long` has only 32 bits there.
Fix result_type related stack corruption on LLP64 architectures Integer parameters are stored in `zend_long` values, which have 64 bits on LLP64, but `long` has only 32 bits there. Adding a test might be overkill, because the broken behavior could already be observed when running pg_select_001.phpt on Windows debug builds, which report the stack corruption. Closes GH-8263.
show more ...
|
#
771dbdb3 |
| 28-Mar-2022 |
Christoph M. Becker |
Fix signedness confusion in php_filter_validate_domain() As is, there is the possibility that integer underflow occurs, making `_php_filter_validate_domain()` succeed for very long domai
Fix signedness confusion in php_filter_validate_domain() As is, there is the possibility that integer underflow occurs, making `_php_filter_validate_domain()` succeed for very long domain names. Cf. <https://pwning.systems/posts/php_filter_var_shenanigans/>.
show more ...
|
#
d0417ebc |
| 17-Mar-2022 |
Christoph M. Becker |
Fix GH-8208: mb_encode_mimeheader: $indent functionality broken We also need to factor in the indent, when getting the encoder result. Closes GH-8213. |
#
ef29ddcc |
| 10-Mar-2022 |
Christoph M. Becker |
Fix GH-8068: mysqli_fetch_object creates inaccessible properties When fetching into objects, we need to create object style hash tables, i.e. where numeric column names are stored as str
Fix GH-8068: mysqli_fetch_object creates inaccessible properties When fetching into objects, we need to create object style hash tables, i.e. where numeric column names are stored as string keys instead of integer keys. Instead of the slightly more efficient alternative to create the desired hash table in the first place, we go for the more readable implementation and convert the array style hash table using `zend_symtable_to_proptable()`. Co-authored-by: Kamil Tekiela <tekiela246@gmail.com> Closes GH-8189.
show more ...
|
#
2b2aeb98 |
| 07-Mar-2022 |
Michael Voříšek |
Fix GH-8160: ZTS support on Alpine is broken We need to export `__MUSL__` so that phpize builds can see the proper macro, and also need to fix "_tsrm_ls_cache" usage for musl. C
Fix GH-8160: ZTS support on Alpine is broken We need to export `__MUSL__` so that phpize builds can see the proper macro, and also need to fix "_tsrm_ls_cache" usage for musl. Closes GH-8180.
show more ...
|
#
7eb972c4 |
| 31-Dec-2021 |
David Carlier |
Fix Solaris builds of ext/sockets We enable the proper ancillary data handling layout and API. Closes GH-7859. |
#
1d9a1f9b |
| 28-Feb-2022 |
Christoph M. Becker |
Fix GH-8121: SplFileObject - seek and key with csv file inconsistent First, we must not free the current line before we call `spl_filesystem_file_read_csv()`, because then the `current_l
Fix GH-8121: SplFileObject - seek and key with csv file inconsistent First, we must not free the current line before we call `spl_filesystem_file_read_csv()`, because then the `current_line` will not be properly updated. Since the EOF check is superfluous here, we move that part of the code to the branch for subtypes. This issue has been introduced by the fix for bug 75917. Second, we only must increase the `current_line` if we're not reading ahead. This issue has been introduced by the fix for bug 62004. Closes GH-8138.
show more ...
|
#
0d7e10c1 |
| 07-Mar-2022 |
Tim Düsterhus |
Fix memory leak of function attribute hash table (#8070) ==109253== 280 (56 direct, 224 indirect) bytes in 1 blocks are definitely lost in loss record 4 of 4 ==109253== at 0x4
Fix memory leak of function attribute hash table (#8070) ==109253== 280 (56 direct, 224 indirect) bytes in 1 blocks are definitely lost in loss record 4 of 4 ==109253== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==109253== by 0x6D9FA2: __zend_malloc (zend_alloc.c:3068) ==109253== by 0x745138: zend_add_attribute (zend_attributes.c:226) ==109253== by 0x6680D1: zend_add_parameter_attribute (zend_attributes.h:102) ==109253== by 0x66B787: zm_startup_zend_test (test.c:478) ==109253== by 0x7224CD: zend_startup_module_ex (zend_API.c:2202) ==109253== by 0x72252C: zend_startup_module_zval (zend_API.c:2217) ==109253== by 0x734288: zend_hash_apply (zend_hash.c:2011) ==109253== by 0x722C30: zend_startup_modules (zend_API.c:2328) ==109253== by 0x67409B: php_module_startup (main.c:2256) ==109253== by 0x88EDDE: php_cli_startup (php_cli.c:409) ==109253== by 0x890F61: main (php_cli.c:1334)
show more ...
|
#
f095d2c9 |
| 07-Mar-2022 |
Bob Weinand |
Fix freeing of internal attribute arguments |
#
8b15858c |
| 23-Feb-2022 |
David Carlier |
Fix GH-8142: Compilation error on cygwin * pcntl: SIGPOLL/si_band is unsupported * intl: enable the signal apis with `_POSIX_C_SOURCE` Closes GH-8146. |
#
57ef16bb |
| 07-Feb-2022 |
risner |
Fix GH-8048: disk_*_space wrong for some filesystems on macOS A macOS bug in libc statvfs(3) call truncates 64 bit elements (e.g. f_blocks) to 32 bits. Thus, we force macOS to use statf
Fix GH-8048: disk_*_space wrong for some filesystems on macOS A macOS bug in libc statvfs(3) call truncates 64 bit elements (e.g. f_blocks) to 32 bits. Thus, we force macOS to use statfs. Closes GH-8056.
show more ...
|
#
e6cf5831 |
| 12-Feb-2022 |
Bob Weinand |
Fix GH-8082: Prevent leaking memory on observed transient run_time_caches This is achieved by tracking the observers on the run_time_cache (with a fixed amount of slots, 2 for each observer)
Fix GH-8082: Prevent leaking memory on observed transient run_time_caches This is achieved by tracking the observers on the run_time_cache (with a fixed amount of slots, 2 for each observer). That way round, if the run_time_cache is freed all associated observer data is as well. This approach has been chosen, as to avoid any ABI or API breakage. Future versions may for example choose to provide a hookable API for run_time_cache freeing or similar.
show more ...
|
#
05f2fb3a |
| 01-Mar-2022 |
Gabriel Caruso |
Fix NEWS format |
#
5507201a |
| 01-Mar-2022 |
Gabriel Caruso |
Prepare for PHP 8.0.18 |
#
0d266a24 |
| 16-Feb-2022 |
Christoph M. Becker |
Fix GH-8080: ReflectionClass::getConstants() depends on def. order When we need to evaluate constant ASTs, we always have to do that in the scope where the constant has been defined, whi
Fix GH-8080: ReflectionClass::getConstants() depends on def. order When we need to evaluate constant ASTs, we always have to do that in the scope where the constant has been defined, which may be a parent of the `ReflectionClass`'s scope. Closes GH-8106.
show more ...
|
#
ef80dcb8 |
| 21-Feb-2022 |
Christoph M. Becker |
Fix GH-8074: Wrong type inference of range() result If either the first or second operand of `range()` may be a string, we must not exclude the possibility that the result may be an arra
Fix GH-8074: Wrong type inference of range() result If either the first or second operand of `range()` may be a string, we must not exclude the possibility that the result may be an array of longs. Closes GH-8131.
show more ...
|