Cristian Rodríguez
8e62e2b829
Mark multple functions as static ( #13864 )
...
* Mark many functions as static
Multiple functions are missing the static qualifier.
* remove unused struct sigactions
struct sigaction act, old_term, old_quit, old_int;
all unused.
* optimizer: minXOR and maxXOR are unused
2024-05-22 13:11:46 +02:00
Derick Rethans
46540a0cef
Merge branch 'ext-date-zpp'
2024-05-22 10:41:15 +01:00
Derick Rethans
bc9a113a07
Add further ZPP conversions
2024-05-22 10:40:49 +01:00
Max Semenik
6f5ffc2915
ext/date: convert remaining uses of zend_parse_parameters()
2024-05-22 10:40:49 +01:00
Niels Dossche
e16bc4b28e
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-14290: Member access within null pointer in extension spl
2024-05-21 23:24:28 +02:00
Niels Dossche
88af09193d
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-14290: Member access within null pointer in extension spl
2024-05-21 23:24:15 +02:00
Niels Dossche
b3a56bd558
Fix GH-14290: Member access within null pointer in extension spl
...
php_pcre_replace_impl() can fail and return NULL. We should take that
error condition into account. Because other failures return false, we
return false here as well.
At first, I also thought there was a potential memory leak in the error
check of replacement_str, but found that the error condition can never
trigger, so replace that with an assertion.
Closes GH-14292.
2024-05-21 23:20:32 +02:00
Peter Kokot
02f3df177d
Add missing ext/libxml dependency to ext/soap ( #14285 )
...
This adds the libxml extension to required dependencies for ext/soap
during the configuration phase (PHP_ADD_EXTENSION_DEP) and the runtime
(ZEND_MOD_REQUIRED).
2024-05-21 21:55:02 +02:00
Pierrick Charron
af4d6765b8
Merge branch 'PHP-8.3'
...
* PHP-8.3:
PHP-8.2 is now for PHP 8.2.21-dev
2024-05-21 14:33:26 -04:00
Pierrick Charron
4b8ce064c6
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
PHP-8.2 is now for PHP 8.2.21-dev
2024-05-21 14:32:47 -04:00
Pierrick Charron
c69c84a5f6
PHP-8.2 is now for PHP 8.2.21-dev
2024-05-21 14:32:07 -04:00
Eric Mann
3b0d137a4f
Merge branch 'PHP-8.3'
2024-05-21 07:56:35 -07:00
Eric Mann
eb7a574a8d
PHP-8.3 is now for PHP 8.3.9-dev
2024-05-21 07:48:56 -07:00
Peter Kokot
0927651593
Simplify required functions checks in ext/pcntl ( #14288 )
2024-05-21 14:53:52 +02:00
Gina Peter Banyard
07a48517ac
Merge branch 'PHP-8.3'
...
* PHP-8.3:
ext/readline: Fix [-Wcalloc-transposed-args] compiler warning
ext/pdo_mysql: Fix [-Wcalloc-transposed-args] compiler warning
ext/gd: Fix [-Wcalloc-transposed-args] compiler warning
ext/ffi: Fix [-Wenum-int-mismatch] compiler warning
ext/bcmath: Fix [-Wenum-int-mismatch] compiler warning
2024-05-21 12:23:45 +01:00
Gina Peter Banyard
b2c0db1f89
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
ext/readline: Fix [-Wcalloc-transposed-args] compiler warning
ext/pdo_mysql: Fix [-Wcalloc-transposed-args] compiler warning
ext/gd: Fix [-Wcalloc-transposed-args] compiler warning
ext/ffi: Fix [-Wenum-int-mismatch] compiler warning
ext/bcmath: Fix [-Wenum-int-mismatch] compiler warning
2024-05-21 12:21:46 +01:00
Gina Peter Banyard
0accfd1fe1
ext/readline: Fix [-Wcalloc-transposed-args] compiler warning
...
Closes GH-14280
2024-05-21 12:17:25 +01:00
Gina Peter Banyard
d4accd8b12
ext/pdo_mysql: Fix [-Wcalloc-transposed-args] compiler warning
2024-05-21 12:17:25 +01:00
Gina Peter Banyard
3c45152798
ext/gd: Fix [-Wcalloc-transposed-args] compiler warning
2024-05-21 12:17:25 +01:00
Gina Peter Banyard
554541c4db
ext/ffi: Fix [-Wenum-int-mismatch] compiler warning
2024-05-21 12:17:25 +01:00
Gina Peter Banyard
d775ba8804
ext/bcmath: Fix [-Wenum-int-mismatch] compiler warning
2024-05-21 12:17:25 +01:00
Dmitry Stogov
896517e24f
JIT: Fix missing register store
...
Fixes master_COMMUNITY_asan "nightly" failure introduced by 13d5c812e0
2024-05-21 14:11:26 +03:00
divinity76
dabafc7b8e
bool "must" be used instead. ( #14287 )
2024-05-21 13:10:44 +02:00
Ilija Tovilo
62ebe822de
Separate internal and user function extension handles
...
This allows us to skip zend_init_internal_run_time_cache() when opcache is
enabled. This function can be quite expensive.
Closes GH-14252
2024-05-21 11:56:38 +02:00
Tim Düsterhus
8094bd1b58
Make ReflectionGenerator::getFunction()
legal after generator termination ( #14167 )
...
* Make `ReflectionGenerator::getFunction()` legal after generator termination
* Expose the generator function name via `Generator::__debugInfo()`
* Allow creating `ReflectionGenerator` after termination
* Reorder `struct _zend_generator` to avoid a hole
* Adjust `ext/reflection/tests/028.phpt`
This is legal now.
* Fix Generator Closure collection
* Add test to verify the Closure dies with the generator
* NEWS / UPGRADING
2024-05-21 08:54:51 +02:00
Niels Dossche
14b92d5181
Add a test for previously-uncovered error condition in C14N ( #14283 )
2024-05-20 23:55:01 +02:00
Niels Dossche
dbbd01235d
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Skip .NET tests if mscoree is not available (#14281 )
2024-05-20 23:28:02 +02:00
Niels Dossche
59744a7fc0
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Skip .NET tests if mscoree is not available (#14281 )
2024-05-20 23:27:51 +02:00
Niels Dossche
98288a27bc
Skip .NET tests if mscoree is not available ( #14281 )
2024-05-20 23:26:52 +02:00
Ilija Tovilo
6335264c07
Fix header errors when parsed standalone ( #14272 )
...
This is annoying for multiple reasons:
1. LSPs can show many errors for these files.
2. LSP can stop parsing these files completely if there are too many errors,
resulting in spotty LSP features.
2024-05-20 22:30:38 +02:00
Máté Kocsis
78f72cffa4
Add support for generating parameter attributes for the manual ( #14270 )
2024-05-20 21:03:19 +02:00
Peter Kokot
08e2c6fb7b
Fix fuzzer result message in configure log ( #14278 )
...
The 2nd argument of PHP_ARG_ENABLE can be a check message to avoid
manual AC_MSG_* calls.
2024-05-20 20:46:09 +02:00
Niels Dossche
90e0ce7f0d
Throw early when a non-stream-context resource is passed to libxml_set_streams_context() ( #14279 )
2024-05-20 16:56:38 +02:00
Derick Rethans
412a3954b4
Merge branch 'PHP-8.3'
2024-05-20 15:51:19 +01:00
Derick Rethans
9c9f49a1f4
Merge branch 'PHP-8.2' into PHP-8.3
2024-05-20 15:49:46 +01:00
Niels Dossche
230ab078d1
Avoid code duplication for error instance creation in ext/libxml ( #14277 )
2024-05-20 16:18:32 +02:00
Saki Takamachi
0a8fbef996
Added test
2024-05-20 15:13:53 +01:00
Derick Rethans
e5cb9d7df9
Force ffp-contract to off
2024-05-20 15:13:53 +01:00
Peter Kokot
ca3444b1d8
Emit error when building fuzzer with ZTS ( #14273 )
...
Thread safety (--enable-zts) is not supported when building fuzzer
(--enable-fuzzer).
Fixes GH-14243
2024-05-20 15:31:33 +02:00
Niels Dossche
b7bf846f72
Fix bug #81227 : PDO::inTransaction reports false when in transaction ( #14268 )
2024-05-20 13:59:26 +02:00
David Carlier
9aa3a0d702
ext/pgsql: adding pg_change_password functionality.
...
handy call to change an user password while taking care transparently
of the password's encryption.
close GH-14262
2024-05-20 12:57:37 +01:00
Saki Takamachi
1d38656b6d
ext/bcmath: Changed the bcmul calculation method ( #14213 )
...
Multiplication is performed after converting to uint32_t/uint64_t, making calculations faster.
---------
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-05-20 20:29:19 +09:00
Peter Kokot
39b48f8473
Add -Wno-type-limits and -Wno-logical-op only on 32-bit ( #14271 )
...
For ext/sodium these two flags can be added conditionally only for the
32-bit target architecture.
2024-05-20 12:31:07 +02:00
武田 憲太郎
b7dd3d8347
ext/pdo_pgsql: Retrieve the memory usage of the query result resource ( #14260 )
...
`getAttribute()` can now retrieve the memory usage of query results.
`PDO::PGSQL_ATTR_RESULT_MEMORY_SIZE` was added for this feature.
closes #14260
2024-05-20 09:08:54 +09:00
Niels Dossche
ba534e70e6
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix undefined behaviour in fastcgi.c (#14269 )
2024-05-19 22:57:08 +02:00
Niels Dossche
6bb6ff2adb
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix undefined behaviour in fastcgi.c (#14269 )
2024-05-19 22:55:02 +02:00
Niels Dossche
ad5138a341
Fix undefined behaviour in fastcgi.c ( #14269 )
...
Arithmetic on NULL pointers is undefined.
2024-05-19 22:54:06 +02:00
Máté Kocsis
8de92952dd
Add cast_object handler for objects which were recently converted from resources
2024-05-19 21:41:07 +02:00
Dmitry Stogov
13d5c812e0
JIT: Add CPU registers support for FETCH_OBJ_R ( #14253 )
2024-05-19 22:18:30 +03:00
Peter Kokot
bc09cd2bc8
Fix the aligned variable attribute check ( #14211 )
...
By default compilers may not treat attribute warnings as errors when
encountering an unknown __attribute__, unless some error option is
provided (-Werror=attributes, -Werror=unknown-attributes, -Werror...).
This fixes the check and wraps it into a separate M4 macro to be
extendable in the future if needed. It checks if conftest.err file was
generated by the compilation check when warnings appear. Also, PHP check
is a bit customized by using __alignof__ keyword, so it is left in there
for now to not break existing checks.
2024-05-19 12:18:59 +02:00