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

144858 Commits

Author SHA1 Message Date
Khaled Alam
d03d69a88a Remove duplicate #include statements (#21085)
* Remove duplicate #include statements across the codebase.

* feat: Restore conditional/unconditional include pairs in lscriu.c
2026-01-30 16:37:13 +01:00
Alexandre Daubois
e4935cf601 Merge branch 'PHP-8.5'
* PHP-8.5:
  Core: fix missing deprecation when accessing null array key with JIT (#20883)
2026-01-30 16:19:57 +01:00
Alexandre Daubois
4a6e6077ef Core: fix missing deprecation when accessing null array key with JIT (#20883) 2026-01-30 16:18:33 +01:00
cui
7fed075ba6 [skip ci] typo: sucess* to success* (GH-21092) 2026-01-30 14:28:48 +01:00
Arshid
3bff1dc875 Remove unused arg from zend_property_is_virtual() (GH-21084) 2026-01-30 14:21:11 +01:00
David Carlier
4876148bbe Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix GH-21023: CURLOPT_XFERINFOFUNCTION with invalid callback crash.
2026-01-30 13:10:35 +00:00
David Carlier
2b89919a5d Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-21023: CURLOPT_XFERINFOFUNCTION with invalid callback crash.
2026-01-30 13:10:27 +00:00
David Carlier
b156471a30 Fix GH-21023: CURLOPT_XFERINFOFUNCTION with invalid callback crash.
we check the FCC is properly initialised beforehand in its handler.

close GH-21025
2026-01-30 13:09:44 +00:00
Gina Peter Banyard
5dd9d2a348 Zend/zend_autoload.c: fix indentation
For some reason my IDE decided 3 spaces was a good indentation and nobody else noticed.
2026-01-30 12:57:07 +01:00
Arshid
9580d47898 ext/ftp: Use STANDARD_MODULE_HEADER instead of STANDARD_MODULE_HEADER_EX (#21088) 2026-01-30 09:05:43 +00:00
Máté Kocsis
df1a90eadc Update config options for real-time benchmark
Valgrind based instruction count is no longer available, but two debugging related options were recently added.
2026-01-29 22:21:37 +01:00
David CARLIER
ce798afac3 Fix GH-21058: error_log() crash on null destination argument. (#21064)
we preserve the lower branches behavior by letting php_stream_open_wrapper_ex
handling the null path and propagating the exception.

close GH-21064
2026-01-29 19:49:45 +00:00
Arshid
5ce36453d6 [skip ci] Use STANDARD_MODULE_HEADER for ext-date (GH-21080) 2026-01-29 17:19:14 +01:00
Ilija Tovilo
0dd1bdc3e5 Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix crash on (unset) cast in constant expression
2026-01-29 17:00:43 +01:00
arshidkv12
e9ae040629 Fix crash on (unset) cast in constant expression
Fixes GH-21072
Closes GH-21073
2026-01-29 17:00:06 +01:00
Ilija Tovilo
db24ca5926 Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix segfault when preloading constant AST closure
2026-01-29 13:31:38 +01:00
Ilija Tovilo
2f2b421a48 Fix segfault when preloading constant AST closure
Fixes GH-21059
Closes GH-21071
2026-01-29 13:30:41 +01:00
Tim Düsterhus
149d34d2cc Merge branch 'PHP-8.5'
* PHP-8.5:
  gen_stub: Fix compatibility with php 7.4 (in PHP-8.5+) (#21075)
2026-01-29 12:01:10 +01:00
Giovanni Giacobbi
7ec14e3ca4 gen_stub: Fix compatibility with php 7.4 (in PHP-8.5+) (#21075) 2026-01-29 12:01:01 +01:00
Tim Düsterhus
5cd759a17b Merge branch 'PHP-8.5'
* PHP-8.5:
  gen_stub: Fix compatibility with php 7.4 (in PHP-8.4) (#21076)
2026-01-29 11:59:09 +01:00
Tim Düsterhus
b2bb31c715 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  gen_stub: Fix compatibility with php 7.4 (in PHP-8.4) (#21076)
2026-01-29 11:58:45 +01:00
Giovanni Giacobbi
23f4b93523 gen_stub: Fix compatibility with php 7.4 (in PHP-8.4) (#21076) 2026-01-29 11:58:12 +01:00
Tim Düsterhus
cd1e19a385 Merge branch 'PHP-8.5'
* PHP-8.5:
  Zend/zend_call_stack.h: fix missing include on Windows (clang compat) (#20847)
2026-01-29 10:39:01 +01:00
Tim Düsterhus
59433f8d3e Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Zend/zend_call_stack.h: fix missing include on Windows (clang compat) (#20847)
2026-01-29 10:38:52 +01:00
Kévin Dunglas
371422b9b9 Zend/zend_call_stack.h: fix missing include on Windows (clang compat) (#20847)
Co-authored-by: Tim Düsterhus <tim@tideways-gmbh.com>
2026-01-29 10:38:10 +01:00
Daniel Scherzer
22c618ee00 ext/session: use STANDARD_MODULE_HEADER for module entry (#21066)
Now that the extension has no dependencies (#21060), no need to use
`STANDARD_MODULE_HEADER_EX`.
2026-01-28 20:46:11 -08:00
Calvin Buckley
4d5b651e90 Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix regression with header removal removing whole prefixes (#21020)
2026-01-28 16:50:26 -04:00
Calvin Buckley
cd32c597a7 Fix regression with header removal removing whole prefixes (#21020)
* Fix regression with header removing removing whole prefixes

The header removal code looked for the colon for key-value at the wrong
place, so it would overzealously remove headers. Tweak that condition,
and make the alternative condition only active if it's set (with the
remove prefix op case).

Fixes GH-21018.

* avoid reading past the actual length

* Rename variable to be more clear
2026-01-28 16:50:06 -04:00
David Carlier
b16e534f9a Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix GH-21055: Pdo/Pgsql typo for GSS negotiation connection status attribute.
2026-01-28 18:15:04 +00:00
David Carlier
00466a068e Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-21055: Pdo/Pgsql typo for GSS negotiation connection status attribute.
2026-01-28 18:14:53 +00:00
Loïc Saos
3037526810 Fix GH-21055: Pdo/Pgsql typo for GSS negotiation connection status attribute.
close GH-21057
2026-01-28 18:12:08 +00:00
Arnaud Le Blanc
c60c49a08b Merge branch 'PHP-8.5'
* PHP-8.5:
  Add missing clobbered registers
2026-01-28 18:20:55 +01:00
Arnaud Le Blanc
00dd02cde1 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Add missing clobbered registers
2026-01-28 18:20:48 +01:00
Arnaud Le Blanc
93d32eae27 Add missing clobbered registers
Inline assembly in zend_safe_address() clobbers flags register. Add missing
register in clobber list for aarch64 and powerpc64. Other archs were already
correct.

Fixes GH-21029
2026-01-28 18:20:07 +01:00
Peter Kokot
65fd4d83bc Remove ext/spl dependency from ext/session (#21060)
This is a follow-up of 668606816f
(GH-21001).

The SPL extension is no longer needed to be listed among dependencies.
The https://bugs.php.net/53141 is tested in
ext/session/tests/bug53141.phpt.

Additionally:
- Added missing inclusion guards to Zend/zend_autoload.h
2026-01-28 16:25:40 +00:00
Ilija Tovilo
62c94b6926 Merge branch 'PHP-8.5'
* PHP-8.5:
2026-01-28 13:56:32 +01:00
Ilija Tovilo
efc50db0f9 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  PHP-8.4 is now for PHP 8.4.19-dev
2026-01-28 13:54:04 +01:00
Gina Peter Banyard
668606816f Zend: move class autoloading from SPL to Zend (#21001)
The primary motivation for this change is that this sort of functionality should reside in core and not in an extension.
The reason being is that this causes issues in regard to extension dependencies and resolution,
something that prevents GH-14544.
2026-01-28 01:57:30 +00:00
Volker Dusch
cc50c9e928 Merge branch 'PHP-8.5'
* PHP-8.5:
  PHP-8.5 is now for PHP 8.5.4-dev
2026-01-27 17:40:53 +01:00
Volker Dusch
b5d3d8647f PHP-8.5 is now for PHP 8.5.4-dev 2026-01-27 17:37:51 +01:00
Saki Takamachi
20bb53a93b Merge branch 'PHP-8.4'
* PHP-8.4:
  PHP-8.4 is now for PHP 8.4.19-dev
2026-01-27 22:22:59 +09:00
Saki Takamachi
e6beffb6ed PHP-8.4 is now for PHP 8.4.19-dev 2026-01-27 22:21:42 +09:00
Tim Düsterhus
32088b7e30 zend_enum: Assert that the case_name is IS_STRING (#21045)
Ideally this function would return the `zend_string*` directly to avoid some
boilerplate code, but at least by including the assertion the intent is clear.
2026-01-27 14:00:18 +01:00
Daniel Scherzer
1c81973458 Merge branch 'PHP-8.5'
* PHP-8.5:
  GitHub actions: drop more 8.1 CI configuration (#20763)
2026-01-27 02:08:38 -08:00
Daniel Scherzer
9338ac0743 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  GitHub actions: drop more 8.1 CI configuration (#20763)
2026-01-27 02:06:54 -08:00
Daniel Scherzer
eb102557cc Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  GitHub actions: drop more 8.1 CI configuration (#20763)
2026-01-27 02:06:20 -08:00
Daniel Scherzer
3aef16abbd Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  GitHub actions: drop more 8.1 CI configuration (#20763)
2026-01-27 02:05:28 -08:00
Daniel Scherzer
2b49403378 GitHub actions: drop more 8.1 CI configuration (#20763)
* remove `libmysqlclient_with_mysqli` support from nightly workflow
* remove `libmysqlclient_with_mysqli` support from root workflow
* remove `withMysqli` support from `build-libmysqlclient` action
* remove `withMysqli` support from `test-libmysqlclient` action
* in root workflow, drop code checking for PHP 8.1

[skip ci]
2026-01-27 02:04:47 -08:00
Vincent Langlet
74b8fdb95b Fix getPartsIterator stub (#21003) 2026-01-26 20:37:23 +01:00
Niels Dossche
a7447c1447 Merge branch 'PHP-8.5'
* PHP-8.5:
  Fix GH-21041: Dom\HTMLDocument corrupts closing tags within scripts
2026-01-26 19:20:47 +01:00