1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Commit Graph

130430 Commits

Author SHA1 Message Date
Ilija Tovilo
e45afbf0ca Merge branch 'PHP-8.2'
* PHP-8.2:
  [skip ci] Skip preloading test on Windows
2022-11-09 20:22:27 +01:00
Ilija Tovilo
12e2610594 [skip ci] Skip preloading test on Windows 2022-11-09 20:22:10 +01:00
Bob Weinand
81c33eebcb Merge branch 'PHP-8.2' 2022-11-09 17:52:01 +01:00
Bob Weinand
0bfdd5691c Fix crash reading module_entry after DL_UNLOAD() when module already loaded
This occurs when the handle is different from the current handle (e.g. copy of the .so file), hence the existing test did not catch that particular case.
2022-11-09 17:51:45 +01:00
Bob Weinand
2cab4874ad Merge branch 'PHP-8.2' 2022-11-09 16:36:50 +01:00
Bob Weinand
4052bbf0e3 Fix opcache preload with observers enabled
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
2022-11-09 16:36:28 +01:00
Bob Weinand
182314c317 Do not report MINIT stage internal class aliases in extensions
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
2022-11-09 16:36:05 +01:00
Christoph M. Becker
75f372295e Merge branch 'PHP-8.2'
* PHP-8.2:
  Fix GH-9905: constant() behaves inconsistent when class is undefined
2022-11-09 15:23:51 +01:00
Christoph M. Becker
4b1feda574 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix GH-9905: constant() behaves inconsistent when class is undefined
2022-11-09 15:23:21 +01:00
Christoph M. Becker
b2186ca7c4 Fix GH-9905: constant() behaves inconsistent when class is undefined
Directly referring to a constant of an undefined throws an exception;
there is not much point in `constant()` raising a fatal error in this
case.

Closes GH-9907.
2022-11-09 15:21:50 +01:00
Bob Weinand
cda97e7a5a Merge branch 'PHP-8.2' 2022-11-09 14:19:54 +01:00
Bob Weinand
6bd8f40291 Move observer_declared_function_notify until after pass_two()
For early observing, there already exists a op_array_ctor hook on zend_extension.
However the goal of the declared_function observer is noting the time when a fully defined function starts existing in the function_tables.
This also prevents the observer being called in case there were compilation errors.

Ultimately, this now gives a consistent behaviour with respect to how it works when opcache is enabled:
- pass_two is done, opcodes and flags are all finalized.
- similarly class_linked notifications also only happen once the class is actually finalized.
- any extension wanting to delay the observer call may add the ZEND_COMPILE_IGNORE_OBSERVER compiler_option, then call it itself.
2022-11-09 13:15:41 +01:00
Pierrick Charron
4c372ec600 [ci skip] Order NEWS sections alphabetically 2022-11-09 00:15:51 -05:00
Sara Golemon
4407f401c6 Merge branch 'PHP-8.2'
* PHP-8.2:
  Bump for 8.0.27
2022-11-08 22:11:59 +00:00
Sara Golemon
d3b22722a0 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Bump for 8.0.27
2022-11-08 22:11:53 +00:00
Sara Golemon
e1c52d1a7c Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Bump for 8.0.27
2022-11-08 22:11:39 +00:00
Sara Golemon
ac508301c9 Bump for 8.0.27 2022-11-08 22:10:29 +00:00
Pierrick Charron
34c2a2925a Merge branch 'PHP-8.2'
* PHP-8.2:
  PHP-8.2 is now for PHP 8.2.1-dev and prepare NEWS for 8.2.0
2022-11-08 15:50:32 -05:00
Pierrick Charron
44d652c00a PHP-8.2 is now for PHP 8.2.1-dev and prepare NEWS for 8.2.0 2022-11-08 13:26:35 -05:00
Patrick Allaert
a4e0ac4c96 Merge branch 'PHP-8.2' 2022-11-08 17:58:22 +01:00
Patrick Allaert
631b04387d Merge branch 'PHP-8.1' into PHP-8.2 2022-11-08 17:57:58 +01:00
Patrick Allaert
540488c74e PHP-8.1 is now for PHP 8.1.14-dev 2022-11-08 17:57:34 +01:00
Sergey Panteleev
4244258a62 [ci skip] Update NEWS for PHP 8.2.0 2022-11-08 09:24:02 +03:00
Bob Weinand
b3f3414ce9 Merge branch 'PHP-8.2' 2022-11-07 16:43:24 +01:00
Bob Weinand
5d7b64be1d Fix cross-compilation for copy_file_range 2022-11-07 16:39:08 +01:00
Christoph M. Becker
aef9430e80 Merge branch 'PHP-8.2'
* PHP-8.2:
  Don't skip test on Windows due to missing ext/posix
2022-11-07 15:10:46 +01:00
Christoph M. Becker
3c102469de Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Don't skip test on Windows due to missing ext/posix
2022-11-07 15:07:53 +01:00
Christoph M. Becker
31cdda2440 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Don't skip test on Windows due to missing ext/posix
2022-11-07 15:07:09 +01:00
Christoph M. Becker
4c35d6440b Don't skip test on Windows due to missing ext/posix
ext/posix is not available on Windows, but there is no need to check
for root (i.e. elevated privileges) on this platform, either.

Closes GH-9886.
2022-11-07 15:01:25 +01:00
Chen, Hu
37b84b7e32 Fiber: add shadow stack support
Shadow stack is part of Intel's Control-Flow Enforcement Technology (CET).

Whenever a function is called, the return address is pushed onto both
the regular stack and the shadow stack. When that function returns, the
return addresses are popped off both stacks and compared; if they fail
to match, #CP raised.

With this commit, we create shadow stack for each fiber context and
switch the shadow stack accordingly during fcontext switch.

Signed-off-by: Chen, Hu <hu1.chen@intel.com>

Closes GH-9283.
2022-11-07 14:48:27 +01:00
Dmitry Stogov
08f9b50a9c Merge branch 'PHP-8.2'
* PHP-8.2:
  Don't check "fake" closures (fix assertion)
2022-11-07 12:21:03 +03:00
Dmitry Stogov
05b63b1593 Don't check "fake" closures (fix assertion)
Fixes oss-fuzz #53078
2022-11-07 12:19:54 +03:00
Dmitry Stogov
5e23cf9381 Merge branch 'PHP-8.2'
* PHP-8.2:
  Fix memory leak
2022-11-07 11:10:05 +03:00
Dmitry Stogov
de4b502fef Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix memory leak
2022-11-07 11:08:54 +03:00
Dmitry Stogov
f31f464cec Fix memory leak
Fixes oss-fuzz #52999
2022-11-07 11:07:58 +03:00
Arnaud Le Blanc
02ed12240e Merge branch 'PHP-8.2'
* PHP-8.2:
  [ci skip] NEWS
  [ci skip] NEWS
  [ci skip] NEWS
  Fix generator memory leaks when interrupted during argument evaluation (#9756)
2022-11-04 16:06:42 +01:00
Arnaud Le Blanc
94f6a0c1dc [ci skip] NEWS 2022-11-04 16:02:41 +01:00
Arnaud Le Blanc
34a85fbea0 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  [ci skip] NEWS
  [ci skip] NEWS
  Fix generator memory leaks when interrupted during argument evaluation (#9756)
2022-11-04 16:02:04 +01:00
Arnaud Le Blanc
1cd217038e [ci skip] NEWS 2022-11-04 16:01:52 +01:00
Arnaud Le Blanc
4011657719 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  [ci skip] NEWS
  Fix generator memory leaks when interrupted during argument evaluation (#9756)
2022-11-04 15:59:14 +01:00
Arnaud Le Blanc
1d67e34c49 [ci skip] NEWS 2022-11-04 15:58:07 +01:00
Arnaud Le Blanc
5d1f3e047c Fix generator memory leaks when interrupted during argument evaluation (#9756) 2022-11-04 15:55:55 +01:00
Ilija Tovilo
1fb40b501d Disable CLI server pdeathsig test on 32-bit GitHub actions 2022-11-03 21:16:34 +01:00
Ilija Tovilo
f669a556c9 Merge branch 'PHP-8.2'
* PHP-8.2:
  Really fix test this time
2022-11-03 16:34:13 +01:00
Ilija Tovilo
f45c8bd34e Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Really fix test this time
2022-11-03 16:34:03 +01:00
Ilija Tovilo
35167af771 Really fix test this time 2022-11-03 16:33:07 +01:00
Ilija Tovilo
6d176ee87b Merge branch 'PHP-8.2'
* PHP-8.2:
  Fix ext section
2022-11-03 15:20:31 +01:00
Ilija Tovilo
46d693b82f Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix ext section
2022-11-03 15:20:22 +01:00
Ilija Tovilo
bca1e1f557 Fix ext section
Ugh, sorry.
2022-11-03 15:19:44 +01:00
Ilija Tovilo
eeefdf2f77 Merge branch 'PHP-8.2'
* PHP-8.2:
  Fix duplicate SKIPIF section
2022-11-03 15:18:55 +01:00