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
Tim Düsterhus
1a18012be3
zend_vm_gen: Fix GET_OP*_OBJ_ZVAL_PTR_DEREF for ANY ( #18746 )
...
Fixes php/php-src#18745
2025-06-09 09:34:49 +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
eac91d0453
[ci skip] Fix UPGRADING formatting
2025-06-08 13:25:56 +02: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
NickSdot
01abca9852
[skip ci ] fix: deleted stray semicolon (GH-18782)
2025-06-06 14:25:19 +02:00
Jakub Zelenka
a8b7c65bca
Merge branch 'PHP-8.4'
2025-06-06 13:55:00 +02:00
Jakub Zelenka
c772963c9c
Merge branch 'PHP-8.3' into PHP-8.4
2025-06-06 13:54:25 +02:00
Peter Kokot
ae92b85572
Fix linking ext/curl against OpenSSL ( #13262 )
...
This is backport for 8.3 of b222c020bf
that originally targeted only 8.4+. This is however a bug fix.
Following 68f6ab7113 , the ext/curl doesn't
need to be linked against OpenSSL anymore, if curl_version_info_data
ssl_version is OpenSSL/1.1 or later.
With OpenSSL 3 and later the check for old SSL crypto locking callbacks
was detected here.
This also uses a common PHP_SETUP_OPENSSL macro for checking OpenSSL and
syncs the minimum OpenSSL version (currently 1.0.2 or later) across the
PHP build system.
2025-06-06 13:51:21 +02:00
David Carlier
cc1f1c60ee
[skip ci] giving proper credits to last changes in ext/pdo_pgsql
2025-06-06 08:17:30 +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
Niels Dossche
99d56248f8
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix compile without ZEND_MM_STORAGE
2025-06-05 21:51:44 +02:00
Niels Dossche
976143e365
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix compile without ZEND_MM_STORAGE
2025-06-05 21:51:38 +02:00
Niels Dossche
4162c20787
Fix compile without ZEND_MM_STORAGE
2025-06-05 21:51:30 +02: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
Ayesh Karunaratne
690cde6903
UPGRADING: minor typo fixes
...
Closes GH-18726
2025-06-04 18:08:39 +05:30
Remi Collet
6820a4de23
Fix GH-18579: --libdir option default value
...
Using PHP_LIBDIR for lib64 case
2025-06-04 11:56:12 +02:00