Jakub Zelenka
c30e2e68c9
Update versions for PHP 8.3.11RC2
2024-08-21 23:26:14 +01:00
Jakub Zelenka
e8dff92e88
Revert fix for GH-14930: truncating readdir output
2024-08-21 23:19:24 +01:00
Arnaud Le Blanc
4606202b89
[ci skip] NEWS for GH-15275
2024-08-10 15:50:21 +02:00
David Carlier
de5c760c69
Merge branch 'PHP-8.2' into PHP-8.3
2024-08-09 21:12:34 +01:00
David Carlier
9aeb6761b5
Fix GH-15210: phpdbg_print_changed_zvals working on a real copy instead.
...
Close GH-15229
2024-08-09 21:12:11 +01:00
Niels Dossche
47e4991d38
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15268: heap buffer overflow in phpdbg (zend_hash_num_elements() Zend/zend_hash.h)
2024-08-08 20:35:50 +02:00
Niels Dossche
a6c547d1dd
Fix GH-15268: heap buffer overflow in phpdbg (zend_hash_num_elements() Zend/zend_hash.h)
...
The class is not yet linked, so we cannot access `parent`, but only
`parent_name`.
Closes GH-15277.
2024-08-08 20:35:20 +02:00
Niels Dossche
1d56340831
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Revert "Fix bug #69280 : SoapClient classmap doesn't support fully qualified class name (#14398 )"
2024-08-07 10:03:35 +02:00
Niels Dossche
28290655e8
Revert "Fix bug #69280 : SoapClient classmap doesn't support fully qualified class name ( #14398 )"
...
This reverts commit 476706165a .
Although the fix is correct, people are relying on the bug and their
code stopped working, see GH-15252.
2024-08-07 10:03:12 +02:00
Niels Dossche
c38c6acfa8
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix crash when converting array data for array in shm in xxh3
2024-08-05 22:07:01 +02:00
Niels Dossche
ca84662c87
Fix crash when converting array data for array in shm in xxh3
...
Closes GH-15237.
2024-08-05 22:06:11 +02:00
Niels Dossche
e681d933d4
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix SoapFault property destruction
2024-08-05 22:03:21 +02:00
Niels Dossche
11fbe8801b
Fix SoapFault property destruction
...
Two issues:
1) We should not modify the object when we pass invalid values
2) We should reset the properties to their default value otherwise we
get a UAF.
Regressed in df219ccf9d
Closes GH-15248.
2024-08-05 22:02:51 +02:00
Niels Dossche
9913b83ce5
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15179: Segmentation fault (null pointer dereference) in ext/standard/url_scanner_ex.re
2024-08-03 02:05:35 +02:00
Niels Dossche
67ce8759e8
Fix GH-15179: Segmentation fault (null pointer dereference) in ext/standard/url_scanner_ex.re
...
Based on analysis by Ilija: https://github.com/php/php-src/issues/15179#issuecomment-2261546902
* Apply suggestions from code review
Closes GH-15206.
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com >
2024-08-03 02:05:06 +02:00
Peter Kokot
97049b44bd
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-13199: Redundant prompt in phpdbg with libedit/readline
2024-08-02 08:37:35 +02:00
Peter Kokot
dc670cb7f6
Fix GH-13199: Redundant prompt in phpdbg with libedit/readline
...
When using libedit/readline integration in phpdbg:
./configure --with-libedit --enable-phpdbg-readline
EOF makes editline write prompt again in local console mode. For
example, this can be noticed when reading phpt test files from STDIN and
running phpdbg:
./sapi/cli/php run-tests.php sapi/phpdbg
Closes GH-13199
2024-08-02 08:33:57 +02:00
Niels Dossche
4049594adf
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix UAF when removing doctype and using foreach iteration
2024-07-30 20:03:30 +02:00
Niels Dossche
b282dd749f
Fix UAF when removing doctype and using foreach iteration
...
This is an old bug, but this is pretty easy to fix.
It's basically applying the same fix as I did for e878b9f .
Reported by YuanchengJiang.
Closes GH-15143.
2024-07-30 20:01:22 +02:00
Arnaud Le Blanc
e077186a34
[ci skip] NEWS
2024-07-30 14:59:01 +02:00
Arnaud Le Blanc
58cf903a10
[ci skip] NEWS
2024-07-30 14:55:33 +02:00
Christoph M. Becker
ce25be5223
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15087 IntlChar::foldCase()'s $option is not optional
2024-07-24 16:47:03 +02:00
Christoph M. Becker
5fbda73099
Fix GH-15087 IntlChar::foldCase()'s $option is not optional
...
Since that parameter is supposed to be optional (and has been prior to
PHP 8.0.0), we fix the implementation instead of the stub.
Closes GH-15091.
2024-07-24 16:45:20 +02:00
David Carlier
5bac3c27c9
Merge branch 'PHP-8.2' into PHP-8.3
2024-07-22 22:58:18 +01:00
David Carlier
ba909d7c43
Fix GH-14780: p(f)sockopen overflow on timeout argument.
...
close GH-14785
2024-07-22 22:57:59 +01:00
Niels Dossche
40e0e92212
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix uninitialized memory in network.c
2024-07-22 22:25:53 +02:00
Niels Dossche
40551dd74b
Fix uninitialized memory in network.c
...
See https://github.com/php/php-src/issues/14806#issuecomment-2208150509
and https://github.com/php/php-src/issues/14806#issuecomment-2208690481
Closes GH-15068.
2024-07-22 22:25:28 +02:00
Arnaud Le Blanc
4377dff59c
[ci skip] NEWS
2024-07-22 19:28:28 +02:00
Arnaud Le Blanc
929536b697
Hint the opcache shm mapping location only when JIT is enabled
...
Closes GH-14793
Fixes GH-13775
2024-07-22 19:26:54 +02:00
Niels Dossche
46924ac9fa
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix bogus fallthrough path in firebird_handle_get_attribute()
2024-07-22 18:33:32 +02:00
Niels Dossche
b8e9c5ba6a
Fix bogus fallthrough path in firebird_handle_get_attribute()
...
If getting the version fails, we should return -1 according to
php_pdo_driver.h:259, not fall through to another attribute.
Closes GH-15066.
2024-07-22 18:33:03 +02:00
Bob Weinand
61b455b59c
Merge branch 'PHP-8.2' into PHP-8.3
2024-07-22 18:30:10 +02:00
Bob Weinand
a18df90a8b
Fix GH-13817: Segmentation fault for enabled observers after pass 4
...
Instead of fixing up temporaries count in between observer steps, just apply the additional temporary in the two affected observer steps.
Closes GH-14018.
2024-07-22 18:28:03 +02:00
Niels Dossche
a0e1e085d8
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix passing non-finite timeout values in stream functions
2024-07-22 17:52:53 +02:00
Niels Dossche
fdcfd62b9b
Fix passing non-finite timeout values in stream functions
...
Closes GH-15061.
2024-07-22 17:52:21 +02:00
Niels Dossche
b2963e96ee
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-14286 (ffi enum type (when enum has no name) make memory leak)
2024-07-22 17:45:20 +02:00
Niels Dossche
c0de7214aa
Fix GH-14286 (ffi enum type (when enum has no name) make memory leak)
...
For top-level anonymous type definition we never store the declaration anywhere
else nor the type anywhere else.
The declaration keeps owning the type and it goes out of scope.
For anonymous fields this gets handled by the add_anonymous_field code that
removes the type from the declaration.
This patch does something similar in the parsing code when it is
detected we're dealing with an anonymous enum in a top-level declaration.
Closes GH-14839.
2024-07-22 17:44:47 +02:00
Peter Kokot
f702437cad
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Append -Wno-implicit-fallthrough flag conditionally (#13331 )
2024-07-22 06:58:01 +02:00
Peter Kokot
d20d11375f
Append -Wno-implicit-fallthrough flag conditionally ( #13331 )
...
Older GCC versions (< 7.0) don't support the -Wno-implicit-fallthrough
compiler flag. This adds the flag conditionally in case some other
compiler will run into same issue.
Fixes GH-13330
2024-07-22 06:57:04 +02:00
Niels Dossche
c26d1a36e2
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15034: Integer overflow on stream_notification_callback byte_max parameter with files bigger than 2GB
2024-07-21 22:02:47 +02:00
Niels Dossche
cfcc2a3fda
Fix GH-15034: Integer overflow on stream_notification_callback byte_max parameter with files bigger than 2GB
...
We were using atoi, which is only for integers. When the size does not
fit in an integer this breaks. Use ZEND_STRTOUL instead. Also make sure
invalid data isn't accidentally parsed into a file size.
Closes GH-15035.
2024-07-21 22:02:11 +02:00
Niels Dossche
74de766d41
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix memory leaks in ext/tidy basedir restriction code
2024-07-21 16:28:45 +02:00
Niels Dossche
8de7ccb29b
Fix memory leaks in ext/tidy basedir restriction code
...
TIDY_APPLY_CONFIG can early return because it's a macro, but then the
cleanup paths are not executed. Transform this to a real function and
handle the cleanups correctly at the callsites.
Closes GH-15046.
2024-07-21 16:28:15 +02:00
Niels Dossche
f21947a7ae
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15028: Memory leak in ext/phar/stream.c
Fix GH-15023: Memory leak in Zend/zend_ini.c
Fix GH-15020: Memory leak in Zend/Optimizer/escape_analysis.c
2024-07-19 14:59:44 +02:00
Niels Dossche
5996227f88
Fix GH-15028: Memory leak in ext/phar/stream.c
...
Closes GH-15029.
2024-07-19 14:58:28 +02:00
Niels Dossche
8c19efdc97
Fix GH-15023: Memory leak in Zend/zend_ini.c
...
Closes GH-15024.
2024-07-19 14:57:19 +02:00
Niels Dossche
03d73182d9
Fix GH-15020: Memory leak in Zend/Optimizer/escape_analysis.c
...
Closes GH-15022.
2024-07-19 14:56:28 +02:00
David Carlier
383d1b0330
Merge branch 'PHP-8.2' into PHP-8.3
2024-07-18 06:26:22 +01:00
David Carlier
efd00b8ff0
ext/curl: curl_error using curl_easy_strerror if CURLOPT_ERRORBUFFER
...
did not fill the error buffer.
close GH-14984
2024-07-18 06:25:37 +01:00
Niels Dossche
d3caedd6d2
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix bug #55639 : Digest autentication dont work
2024-07-17 19:31:54 +02:00