Niels Dossche
c02f6fb3fe
Output blocks of safe chars in php_filter_encode_html()
...
Fixes a long-standing TODO, and is faster.
2025-06-09 11:12:17 +02:00
Niels Dossche
31b4f39d3e
Use ZVAL_NEW_STR() for new string in php_filter_encode_html()
2025-06-09 11:12:17 +02:00
David Carlier
e3cfa4bcae
ext/pdo_sqlite: PDO::sqliteCreateCollection return type strenghtening.
...
Is supposed to be Pdo_Sqlite::createCollation but behavior differs in
regard of return type checks.
close GH-18799
2025-06-08 13:29:26 +01:00
Niels Dossche
cb04226b4a
Avoid making a redundant copy in php_filter_callback() ( #18794 )
...
`call_user_function` already makes a copy to the call frame for its
arguments, there's no need to do this ourselves.
2025-06-08 11:23:31 +02:00
David CARLIER
ceffa70b97
ext/pdo_sqlite: Fix GH-18796 test exception message. ( #18798 )
2025-06-07 15:53:46 +01:00
David Carlier
b72dccb3e3
Merge branch 'PHP-8.4'
2025-06-07 14:29:13 +01:00
David Carlier
1044558b64
ext/pdo_sqlite: createCollation memory leaks fix.
...
coming from callback arguments when its return type is incorrect.
close GH-18796
2025-06-07 14:28:29 +01:00
NickSdot
d15c61e84c
ext/gettext: fixed typo in config.m4 ( #18790 )
2025-06-07 07:31:51 +01:00
David Carlier
cce0efdff8
Revert "ext/pdo_pgsql: Delete unused constants"
...
This reverts commit e549ccb32e .
2025-06-06 14:45:59 +01:00
Jakub Vrána
e549ccb32e
ext/pdo_pgsql: Delete unused constants
...
These constants were added by 6ed1819bf4 but they are not used anymore.
They are undocumented which is why I've stumbled upon this.
close GH-18358
2025-06-06 07:34:25 +01:00
Saki Takamachi
2751064692
use XSSE for bcmath ( #18770 )
2025-06-06 08:25:52 +09:00
DanielEScherzer
8f3cdf6236
gen_stub: Add support for attributes on constants in stubs ( #18735 )
...
Update to PHP-Parser 5.5.0 and add support for attributes on constants in
stubs. For now, I have only migrated over E_STRICT, once the support is in
place I'll do a larger migration of the existing deprecated constants.
In the process, fix the logic in `copy_zend_constant()` for copying attributes
when a constant is copied; just increase the reference count for the attributes
table rather than trying to duplicate the contents.
2025-06-05 14:46:46 -07:00
Gina Peter Banyard
19b1173577
ext/tidy: Add some const qualifiers
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
d97a90acb8
ext/tidy: Use zend_result type instead of int type
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
feff5381b4
ext/tidy: Reduce scope of variable and rename to prevent variable shadowing
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
25057811a5
ext/tidy: Use RETURN_BOOL() where possible
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
bf3d7d1f9a
ext/tidy: Use RETURN_STR() instead of RETVAL_STR() + return;
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
4fd91c6fa4
ext/tidy: Use RETURN_THROWS() macro
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
b7db5c8129
ext/tidy: Remove TIDY_SET_CONTEXT macro
2025-06-05 19:46:04 +01:00
Gina Peter Banyard
d40e3200a7
ext/tidy: Use uint32_t and bool types instead of unsigned int type
...
On certain platform an unsigned int is 64bits, which is not needed.
2025-06-05 19:46:04 +01:00
Jakub Zelenka
688fed36ca
Merge branch 'PHP-8.4'
2025-06-05 18:05:51 +02:00
Jakub Zelenka
7a15d2a5c0
Merge branch 'PHP-8.3' into PHP-8.4
2025-06-05 18:05:24 +02:00
Niels Dossche
d15e119d07
Use cheaper functions to get member name in PDO ( #18769 )
2025-06-05 17:46:56 +02:00
Jakub Zelenka
444cc78a3e
Skip OpenSSL proxy test for bug #74796 on Windows
2025-06-05 16:18:06 +02:00
David Carlier
91becb3042
ext/tidy: config options checks strengthening.
...
close GH-18751
2025-06-05 13:16:25 +01:00
Jakub Zelenka
9ae5b4e9be
Merge branch 'PHP-8.4'
2025-06-05 14:12:48 +02:00
Jakub Zelenka
086a470208
Merge branch 'PHP-8.3' into PHP-8.4
2025-06-05 14:10:57 +02:00
Jakub Zelenka
42f6c15186
Fix bug #74796 : Requests through http proxy set peer name
...
This issue happens because http wrapper sets peer_name but then does not
remove so it stays in the context. The fix removes the peer name from
the context after enabling crypto.
In addition to bug #74796 , this also fixes bug #76196 .
In addition it should be a final fix for those SOAP bugs:
bug #69783
bug #52913
bug #61463
2025-06-05 14:08:28 +02:00
Niels Dossche
7f91462019
Remove nonsensical code from odbc_execute() ( #18767 )
...
strlen() operates on NUL-terminated strings, writing a NUL byte at the
strlen offset accomplishes nothing but wasting cycles.
2025-06-04 23:18:48 +02:00
David Carlier
1aae2ad91b
Merge branch 'PHP-8.4'
2025-06-04 20:35:50 +01:00
David Carlier
ecc9393b36
Merge branch 'PHP-8.3' into PHP-8.4
2025-06-04 20:35:17 +01:00
David Carlier
e13ba36abb
ext/tidy: anticipate tidyOptIsReadOnly retirement.
...
using tidyOptGetCategory when possible.
related GH-18751
close GH-18763
2025-06-04 20:32:21 +01:00
Niels Dossche
be17e9ed54
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix handling of references in zval_try_get_long()
2025-06-04 21:00:22 +02:00
Niels Dossche
2b383848a7
Fix handling of references in zval_try_get_long()
...
This API can't handle references, yet everyone keeps forgetting that it
can't and that you should DEREF upfront. Fix every type of this issue
once and for all by moving the reference handling to this Zend API.
Closes GH-18761.
2025-06-04 21:00:05 +02:00
Niels Dossche
307ff3bdea
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-18744: PHP 8.4 classList works not correctly if copy HTMLElement by clone keyword.
2025-06-04 18:59:21 +02:00
Niels Dossche
111072a9f0
Fix GH-18744: PHP 8.4 classList works not correctly if copy HTMLElement by clone keyword.
...
The $classList property is special in the sense that it's a cached
object instance per (HTML)Element instance. The reason for this design
is because it has the [[SameObject]] IDL attribute.
Cloning in PHP also clones the properties, so it also clones the cached
instance. To solve this, we undo this by resetting the backing storage.
Closes GH-18749.
2025-06-04 18:59:05 +02:00
Jakub Zelenka
2f5ef4d2b7
Use custom OpenSSL libctx in md and cipher handling code ( #18516 )
2025-06-04 18:46:00 +02:00
Niels Dossche
f46f42b2b2
Implement request #55503 : Extend __getTypes to support enumerations ( #18704 )
...
Co-authored-by: datibbaw <datibbaw@php.net >
2025-06-04 17:46:57 +02:00
Marc Bennewitz
3a14ce19a5
Fix stubs of DateTimeZone->getTransitions ( #17992 )
...
The default value of `timestamp_end` is INT32_MAX and not ZEND_LONG_MAX
2025-06-03 22:42:05 -07:00
Niels Dossche
359bb6303d
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix memory leak of X509_STORE in php_openssl_setup_verify() on failure
2025-06-03 23:50:30 +02:00
Niels Dossche
87ff5479fc
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix memory leak of X509_STORE in php_openssl_setup_verify() on failure
2025-06-03 23:46:21 +02:00
Niels Dossche
08a9579883
Fix memory leak of X509_STORE in php_openssl_setup_verify() on failure
...
Closes GH-18750.
2025-06-03 23:45:51 +02:00
Tim Düsterhus
4c5a6b0e8d
tree-wide: Remove stacktraces from tests testing throwing clones ( #18748 )
...
This is in preparation for the possible future transformation of `clone` into a
function call, but also meaningful on its own, since the purpose of the tests
is not to test the stack trace generation, but rather that an exception was
thrown. It also cleans up some unreachable code in the tests.
2025-06-03 20:08:47 +02:00
Taavi Eomäe
0a8961a0e2
Log a warning when opcache lock file permissions could not be changed
...
Closes GH-18742.
2025-06-03 19:22:58 +02:00
Niels Dossche
88f546b166
Fix missing empty string checks in ext/enchant
...
The library requires the tags to be non-empty, and also requires the
ordering to be non-empty. For the tags, otherwise, assertion failures
can be observed.
Closes GH-18733.
2025-06-02 19:49:48 +02:00
Андрей Ковалёв
b871261c10
ext/mysqlnd/mysqlnd_auth.c: Add error handling for invalid public key size ( #18663 )
...
Reported-by: Pavel Nekrasov <p.nekrasov@fobos-nt.ru >
Signed-off-by: Andrey Kovalev <ded@altlinux.org >
Co-authored-by: Andrey Kovalev <ded@altlinux.org >
2025-06-02 11:55:25 +02:00
Arnaud Le Blanc
f64e3d5d9e
Fix build ( #18716 )
2025-06-02 08:49:25 +02:00
Dmitry Stogov
baeb981746
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Update IR
2025-06-02 09:24:10 +03:00
Dmitry Stogov
81593cfc6a
Update IR
...
IR commit: e4343be0082897510c40a1b57baff427c6858878
2025-06-02 09:23:39 +03:00
Niels Dossche
58f55683c9
Fix GH-18729: 2 enchant test fails in masterfor alpine
2025-06-01 18:23:07 +02:00