501f1a45 | 30-Aug-2021 |
Nikita Popov |
Error on resource ID space overflow When more than INT_MAX resource are created, throw a fatal error, rather than reusing already allocated IDs, which will result in assertion failur
Error on resource ID space overflow When more than INT_MAX resource are created, throw a fatal error, rather than reusing already allocated IDs, which will result in assertion failures or crashes down the line. This doesn't fix the fundamental problem, but makes the failure more graceful with an obvious cause. Inspired by https://bugs.php.net/bug.php?id=81399. Closes GH-7428.
show more ...
|
edab9ad2 | 30-Aug-2021 |
Christoph M. Becker |
Fix #81400: Unterminated string in dns_get_record() results If we assemble a zend_string manually, we need to end it with a NUL byte ourselves. We also fix the size calculation
Fix #81400: Unterminated string in dns_get_record() results If we assemble a zend_string manually, we need to end it with a NUL byte ourselves. We also fix the size calculation for that zend_string; there is no need for the extra byte for each part, and we don't have to multiply by two, since we're using DnsQuery_A(), not DnsQuery_W () (in which case we would have to do the character set conversion, anyway). This avoids over-allocation, and the need to explicitly set the string length. Finally, we use the proper access macro for zend_strings. Closes GH-7427.
show more ...
|
eda9f5f7 | 27-Aug-2021 |
Nikita Popov |
Fix Closure::call() on internal method closure In this case we should use the original internal handler. Otherwise the trampoline will attempt to free the closure, but the function b
Fix Closure::call() on internal method closure In this case we should use the original internal handler. Otherwise the trampoline will attempt to free the closure, but the function being used is not actually part of a closure anymore.
show more ...
|
526407ca | 25-Aug-2021 |
Christoph M. Becker |
Fix #53580: During resize gdImageCopyResampled cause colors change We port the upstream fix[1], and also revert commit a3383ac3d7[2] which is now obsolete, and also not part of libgd. E
Fix #53580: During resize gdImageCopyResampled cause colors change We port the upstream fix[1], and also revert commit a3383ac3d7[2] which is now obsolete, and also not part of libgd. Especially the change to gd.png.c was at best a half-baked optimization. [1] <https://github.com/libgd/libgd/commit/a24e96f01989bf9ca05a08d33862a08d6f4c4ed6> [2] <https://github.com/php/php-src/commit/a3383ac3d7e21e54b1d7d89f308088d0692abc9f> Closes GH-7402.
show more ...
|
3677db63 | 25-Aug-2021 |
Derick Rethans |
Backport speling fix This change was originall only done for 'master'. Xdebug bundles this file as it requires it, but PHP 7.2/7.3 don't have it bundled. By doing "phpize" with maste
Backport speling fix This change was originall only done for 'master'. Xdebug bundles this file as it requires it, but PHP 7.2/7.3 don't have it bundled. By doing "phpize" with master, it updates the file introducing a local diff. By fixing it in older versions, that problem goes away.
show more ...
|
c1f427b5 | 24-Aug-2021 |
Stanislav Malyshev |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fix test
|
b815645a | 24-Aug-2021 |
Stanislav Malyshev |
Fix test |
40db8947 | 24-Aug-2021 |
Stanislav Malyshev |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Update NEWS Fix #81211: Symlinks are followed when creating PHAR archive
|
b2008ab9 | 24-Aug-2021 |
Stanislav Malyshev |
Update NEWS |
2ff853aa | 23-Aug-2021 |
Christoph M. Becker |
Fix #81211: Symlinks are followed when creating PHAR archive It is insufficient to check whether the `base` is contained in `fname`; we also need to ensure that `fname` is properly separ
Fix #81211: Symlinks are followed when creating PHAR archive It is insufficient to check whether the `base` is contained in `fname`; we also need to ensure that `fname` is properly separated. And of course, `fname` has to start with `base`.
show more ...
|
9494b1cd | 18-Aug-2021 |
Christoph M. Becker |
Fix #78819: Heap Overflow in msg_send We need to use the proper type. Closes GH-7386. |
0b7dffb4 | 17-Aug-2021 |
Christoph M. Becker |
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare cas
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare case of an overflow. Closes GH-7381.
show more ...
|
51147e2f | 17-Aug-2021 |
Nikita Popov |
Backport Laravel test hack The way to work around this changed, backport the version from master. |
f3c45c17 | 17-Aug-2021 |
Christoph M. Becker |
Revert "Fix #73122: Integer Overflow when concatenating strings" This reverts commit f1ce8d5f5839cb2069ea37ff424fb96b8cd6932d, which has been accidentially pushed. |
f1ce8d5f | 17-Aug-2021 |
Christoph M. Becker |
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare cas
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare case of an overflow. Since the recent fix for bug #74960 still doesn't catch all possible overflows, we fix that right away.
show more ...
|
f924e972 | 16-Aug-2021 |
Christoph M. Becker |
Fix #71542: disk_total_space does not work with relative paths For ZTS builds, we need to expand the path given to `disk_free_space()` and `disk_total_space()` to properly support the VC
Fix #71542: disk_total_space does not work with relative paths For ZTS builds, we need to expand the path given to `disk_free_space()` and `disk_total_space()` to properly support the VCWD. Closes GH-7377.
show more ...
|
bcc2f070 | 17-Aug-2021 |
Nikita Popov |
Prevent bailout during imap shutdown error reporting This is a non-intrusive, minimal fix for bug #81316, which prevents a bailout during imap RSHUTDOWN and prevents the basic shutdown
Prevent bailout during imap shutdown error reporting This is a non-intrusive, minimal fix for bug #81316, which prevents a bailout during imap RSHUTDOWN and prevents the basic shutdown handler from being skipped. I wasn't able to make the issue reproduce in a small test.
show more ...
|
d1e956ff | 16-Aug-2021 |
Nikita Popov |
Fixed bug #81353 A user-defined error handler should not be invoked for preload warnings. We are in a partially shut-down state at that point. |
80a377e6 | 13-Aug-2021 |
Christoph M. Becker |
Fix #81351: xml_parse may fail, but has no error code The fix for bug #73151[1] cured the symptoms, but not the root cause, namely xmlParse() must not be called recursively. Since that
Fix #81351: xml_parse may fail, but has no error code The fix for bug #73151[1] cured the symptoms, but not the root cause, namely xmlParse() must not be called recursively. Since that bugfix also messed up the error handling, we basically revert it (but also simplify the return), and then prevent calling the parser recursively. [1] <https://github.com/php/php-src/pull/2166/commits/f2a8a8c068995a5d780882c556cedd53bce3827d> Co-authored-by: Nikita Popov <nikita.ppv@gmail.com> Closes GH-7363.
show more ...
|
78cbe56e | 12-Aug-2021 |
Nikita Popov |
Fix port clash in socket tests Use ephemeral port instead. |
47aaffcd | 11-Aug-2021 |
Christoph M. Becker |
Fix SKIPIF clause |
4a1af1f8 | 10-Aug-2021 |
Christoph M. Becker |
Fix #81346: Non-seekable streams don't update position after write The stream position is not related to the buffer, and needs to be updated for non-seekable streams as well. The errone
Fix #81346: Non-seekable streams don't update position after write The stream position is not related to the buffer, and needs to be updated for non-seekable streams as well. The erroneous condition around the position update is a relict of an old commit[1]. The unexpected test expectation is due to bug #81345. [1] <https://github.com/php/php-src/commit/088e2692c3d1e680fd3d9306c4adb417e761acff> Closes GH-7356.
show more ...
|
40b31fcc | 10-Aug-2021 |
Christoph M. Becker |
Fix #81302: Stream position after stream filter removed When flushing the stream filters actually causes data to be written to the stream, we need to update its position, because that is
Fix #81302: Stream position after stream filter removed When flushing the stream filters actually causes data to be written to the stream, we need to update its position, because that is not done by the streams' write methods. Closes GH-7354.
show more ...
|
79d564a8 | 10-Aug-2021 |
Derick Rethans |
Prepare for 7.4.24 |
5977610d | 09-Aug-2021 |
Christoph M. Becker |
Fix #74544: Integer overflow in mysqli_real_escape_string() The patch has been provided by @johannes. Closes GH-7353. |