1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

145471 Commits

Author SHA1 Message Date
Ilija Tovilo
94853b6da3 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Backport .github changes for Solaris
2026-03-04 10:11:17 +01:00
Ilija Tovilo
eee7c0aee1 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Backport .github changes for Solaris
2026-03-04 10:11:11 +01:00
Ilija Tovilo
c21af8c598 Backport .github changes for Solaris 2026-03-04 10:11:00 +01:00
tekimen
7a1c2612c0 [RFC] Add grapheme_strrev function (#20949)
* [RFC] Add grapheme_strrev function

Add more tests Arabic for grapheme_strrev function.
2026-03-04 09:47:26 +09:00
Ilija Tovilo
c7824b368f Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix enabling of opcache in benchmark job in older branches
2026-03-04 00:35:43 +01:00
Ilija Tovilo
0e2cc18b55 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix enabling of opcache in benchmark job in older branches
2026-03-04 00:35:38 +01:00
Ilija Tovilo
2fb1411eac Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix enabling of opcache in benchmark job in older branches
2026-03-04 00:35:32 +01:00
Ilija Tovilo
70bb94c4b6 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Fix enabling of opcache in benchmark job in older branches
2026-03-04 00:35:25 +01:00
Ilija Tovilo
7324cd7f21 Fix enabling of opcache in benchmark job in older branches
8.4 still needs a zend_extension=opcache.so in the ini file.

Closes GH-21332
2026-03-04 00:35:19 +01:00
Nora Dossche
84b0a73685 Fix GH-13204: glob() fails if square bracket is in current directory (#19647)
The problem is not limited to square brackets, but to every meta
character. The solution is to override the glob functions for handling
paths with the VCWD ones in PHP. If that is not available, use the old
but limited workaround.
2026-03-03 22:29:07 +01:00
Peter Kokot
f17c5ad83b Windows build: Add new function CHECK_HEADER() (#21191)
The current function `CHECK_HEADER_ADD_INCLUDE()` automatically defines
`HAVE_<HEADER_NAME_H>` preprocessor macros, which makes it difficult to
sync with other build systems. Specially, if some `HAVE_` macro is used
in the code and this function defines this macro but Autotools doesn't.

The new `CHECK_HEADER()` function behaves similar except it doesn't
define the `HAVE_<HEADER_NAME_H>` preprocessor macro.

This removes the following unused compile definitions:

HAVE_ARGON2_H
HAVE_AVIF_H
HAVE_BZLIB_H
HAVE_CAPSTONE_CAPSTONE_H
HAVE_CURL_EASY_H
HAVE_DB_H
HAVE_DECODE_H
HAVE_DEPOT_H
HAVE_EDITLINE_READLINE_H
HAVE_ENCHANT_H
HAVE_ENCODE_H
HAVE_FFI_H
HAVE_FIREBIRD_INTERFACE_H
HAVE_FT2BUILD_H
HAVE_GD_H
HAVE_GLIB_H
HAVE_GMP_H
HAVE_HTTPD_H
HAVE_IBASE_H
HAVE_IR_IR_H
HAVE_KECCAKHASH_H
HAVE_LBER_H
HAVE_LDAP_H
HAVE_LIBEXSLT_EXSLT_H
HAVE_LIBINTL_H
HAVE_LIBPQ_FE_H
HAVE_LIBTIDY_TIDY_H
HAVE_LIBXML_PARSER_H
HAVE_LIBXML_TREE_H
HAVE_LIBXML_XMLWRITER_H
HAVE_LIBXSLT_XSLT_H
HAVE_LMDB_H
HAVE_MBSTRING_H
HAVE_MYSQL_H
HAVE_ONIGURUMA_H
HAVE_OPENSSL_SSL_H
HAVE_PNG_H
HAVE_SNMP_H
HAVE_SODIUM_H
HAVE_SQLITE3_H
HAVE_SQLITE3EXT_H
HAVE_SYBFRONT_H
HAVE_TIDY_H
HAVE_TIDY_TIDY_H
HAVE_TIDYBUFFIO_H
HAVE_TIMELIB_CONFIG_H
HAVE_UNICODE_USPOOF_H
HAVE_UNICODE_UTF_H
HAVE_XPM_H
HAVE_ZIP_H
HAVE_ZIPCONF_H
HAVE_ZLIB_H

The following compile definitions are defined explicitly:

- HAVE_ICONV_H
- HAVE_MSCOREE_H
- HAVE_SQL_H
- HAVE_SQLEXT_H

Additionally, the `SETUP_OPENSSL()` function doesn't accept the 6th
argument anymore.
2026-03-03 20:06:40 +01:00
Ilija Tovilo
a83c025730 Use zend_always_inline for frameless function template functions (GH-21316) 2026-03-03 00:20:34 +01:00
ndossche
bfd66bbdf0 Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix compile warnings under GCC 15.2.1 (#21320)
  Updated to version 2026.1 (2026a)
2026-03-02 23:13:40 +01:00
ndossche
210704258a Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix compile warnings under GCC 15.2.1 (#21320)
2026-03-02 23:12:48 +01:00
Nora Dossche
583be5a8ca Fix compile warnings under GCC 15.2.1 (#21320)
The compiler now infers constness through string functions.
Adhere to that.
It also now warns about using multiplications in conditions.
2026-03-02 23:12:06 +01:00
Derick Rethans
832a5ea9c8 Updated to version 2026.1 (2026a) 2026-03-02 18:17:18 +00:00
Derick Rethans
5ca1598250 Empty merge
* PHP-8.4:
  Updated to version 2026.1 (2026a)
  Updated to version 2026.1 (2026a)
2026-03-02 18:17:17 +00:00
Derick Rethans
043ade6d65 Updated to version 2026.1 (2026a) 2026-03-02 18:17:16 +00:00
Derick Rethans
11e625f765 Empty merge
* PHP-8.4:
  Updated to version 2026.1 (2026a)
  Updated to version 2026.1 (2026a)
2026-03-02 18:17:15 +00:00
Derick Rethans
04897559f0 Updated to version 2026.1 (2026a) 2026-03-02 18:17:14 +00:00
Derick Rethans
9daecc18e0 Empty merge
* PHP-8.3:
  Updated to version 2026.1 (2026a)
2026-03-02 18:17:14 +00:00
Derick Rethans
f437b39060 Updated to version 2026.1 (2026a) 2026-03-02 18:17:13 +00:00
ndossche
daf1d322da Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix pcre leak test (#21327)
2026-03-02 18:51:57 +01:00
ndossche
fa3c8eed16 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix pcre leak test (#21327)
2026-03-02 18:51:52 +01:00
Nora Dossche
4e831236f8 Fix pcre leak test (#21327)
We need an uninterned string to trigger the leak. The loop is also
unnecessary.
2026-03-02 18:51:29 +01:00
Ilija Tovilo
ffd58ea601 Merge branch 'PHP-8.5'
* PHP-8.5:
  [skip ci] Reorder lines
2026-03-02 03:38:31 +01:00
Ilija Tovilo
56d515af6c Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  [skip ci] Reorder lines
2026-03-02 03:38:26 +01:00
Ilija Tovilo
e78f0d149e Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  [skip ci] Reorder lines
2026-03-02 03:38:21 +01:00
Ilija Tovilo
491bf86b09 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  [skip ci] Reorder lines
2026-03-02 03:38:17 +01:00
Ilija Tovilo
e140485178 [skip ci] Reorder lines
Makes slightly more sense, even though order is irrelevant.
2026-03-02 03:37:46 +01:00
Ilija Tovilo
41c436ad0d Merge branch 'PHP-8.5'
* PHP-8.5:
  [CI][skip ci] Fix TEST job failure when no branches changed
2026-03-02 03:35:45 +01:00
Ilija Tovilo
1da8ff9da7 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  [CI][skip ci] Fix TEST job failure when no branches changed
2026-03-02 03:35:40 +01:00
Ilija Tovilo
1553242e56 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  [CI][skip ci] Fix TEST job failure when no branches changed
2026-03-02 03:35:34 +01:00
Ilija Tovilo
ecb226c049 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  [CI][skip ci] Fix TEST job failure when no branches changed
2026-03-02 03:35:29 +01:00
Ilija Tovilo
53c718c142 [CI][skip ci] Fix TEST job failure when no branches changed 2026-03-02 03:34:34 +01:00
David Carlier
2fd3433ed0 Merge branch 'PHP-8.5'
* PHP-8.5:
  ext/pcntl: add new tests to ver invalid signals handling.
2026-02-28 20:23:11 +00:00
David Carlier
2bbca7c9b9 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  ext/pcntl: add new tests to ver invalid signals handling.
2026-02-28 20:23:00 +00:00
David Carlier
cf9d6f454a ext/pcntl: add new tests to ver invalid signals handling.
from pcntl_sigprocmask(), pcntl_sigwaitinfo(), and pcntl_sigtimedwait().

close GH-21297
2026-02-28 20:21:54 +00:00
ndossche
15a58cfe2f Merge branch 'PHP-8.5'
* PHP-8.5:
  [ci skip] Tweak SKIPIFs
2026-02-28 14:58:07 +01:00
ndossche
9200768a55 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  [ci skip] Tweak SKIPIFs
2026-02-28 14:58:02 +01:00
ndossche
cf180f237c [ci skip] Tweak SKIPIFs 2026-02-28 14:57:41 +01:00
Alex Dowad
b2bc70c4f7 Update time periods in mbstring section of EXTENSIONS 2026-02-28 09:53:43 +09:00
ndossche
c68ede953a Merge branch 'PHP-8.5'
* PHP-8.5:
  bz2: Fix truncation of total output size causing erroneous errors
2026-02-27 23:49:46 +01:00
ndossche
9248a6c70e Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  bz2: Fix truncation of total output size causing erroneous errors
2026-02-27 23:47:13 +01:00
Niels Dossche
4ee95fc2f3 bz2: Fix truncation of total output size causing erroneous errors
Also switch to uint64_t as that's used on master and makes the code
simpler to fix.

Closes GH-20807.

Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com>
2026-02-27 23:46:48 +01:00
David Carlier
114c0d6e93 Merge branch 'PHP-8.5'
* PHP-8.5:
  ext/pcre: fix mdata_used race conditions in PCRE functions
2026-02-27 22:18:56 +00:00
David Carlier
7a8a8633ce Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  ext/pcre: fix mdata_used race conditions in PCRE functions
2026-02-27 22:15:02 +00:00
David Carlier
f8114f554c ext/pcre: fix mdata_used race conditions in PCRE functions
Mirror the mdata_used protection pattern from php_pcre_replace_func_impl
in php_pcre_match_impl, php_pcre_replace_impl, php_pcre_split_impl,
and php_pcre_grep_impl.

close GH-21291
2026-02-27 22:14:41 +00:00
David Carlier
d1ff85f26f Merge branch 'PHP-8.5'
* PHP-8.5:
  ext/pcre: drop negative-length match tests
2026-02-27 19:18:35 +00:00
David Carlier
27e12b50f4 ext/pcre: drop negative-length match tests
Newer PCRE2 rejects \K in lookarounds at compile time, so the
negative-length match code path can no longer be triggered from
userland PHP. The PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK flag that would
re-enable it is only settable via the C compile context API.
2026-02-27 19:18:25 +00:00