Dmitry Stogov
5a68d991ad
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix memory leak
2022-10-17 15:09:33 +03:00
Dmitry Stogov
eecbb60db6
Fix memory leak
...
Fixes oss-fuzz #52479
2022-10-17 15:08:21 +03:00
Kévin Dunglas
e6bfd7e089
Set SA_ONSTACK too when zend signals are disabled and in pcntl
...
Closes GH-9758.
2022-10-16 23:47:53 +01:00
Arnaud Le Blanc
1c1481bbb5
Merge branch 'PHP-8.2'
...
* PHP-8.2:
[ci skip] NEWS
[ci skip] NEWS
[ci skip] NEWS
Restore extra_named_params when restoring frozen call stack
2022-10-16 12:48:26 +02:00
Arnaud Le Blanc
a1295cbfce
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[ci skip] NEWS
[ci skip] NEWS
Restore extra_named_params when restoring frozen call stack
2022-10-16 12:45:41 +02:00
Arnaud Le Blanc
2831e0c624
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
[ci skip] NEWS
Restore extra_named_params when restoring frozen call stack
2022-10-16 12:43:34 +02:00
Arnaud Le Blanc
86e1fea39a
Restore extra_named_params when restoring frozen call stack
2022-10-16 12:40:09 +02:00
Máté Kocsis
1254969274
Declare remaining Zend constants in stubs ( #9730 )
2022-10-12 22:43:36 +02:00
Ben Ramsey
865161af33
PHP-8.1 is now for PHP 8.1.13-dev
2022-10-11 19:47:00 -04:00
Máté Kocsis
519c21f87a
Do not overwrite the zobj variable in ASSIGN_OBJ opcode ( #9684 )
2022-10-07 06:58:09 +02:00
George Peter Banyard
a593a456f1
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Follow-up fix for GH-9655
2022-10-04 14:25:57 +01:00
George Peter Banyard
01eb06a0de
Follow-up fix for GH-9655
...
Type needs to be rendered as a DNF type and not X&Y|null
2022-10-04 14:24:51 +01:00
Tim Starling
b8811d4ff1
Add four extra fields to gc_status() ( #9336 )
...
- running: true if garbage collection is currently running
- protected: true if the garbage collector is protected and root
additions are forbidden
- full: true if the garbage collector buffer size exceeds GC_MAX_BUF_SIZE
- buffer_size: current garbage collector buffer size
Documentation for existing fields:
- runs: the number of times the garbage collector has been run
- collected: the number of objects collected
- threshold: the number of roots in the buffer which will trigger
garbage collection
- roots: the current number of roots in the buffer
Updated manual example output:
array(8) {
["running"]=>
bool(false)
["protected"]=>
bool(false)
["full"]=>
bool(false)
["runs"]=>
int(5)
["collected"]=>
int(100002)
["threshold"]=>
int(50001)
["buffer_size"]=>
int(131072)
["roots"]=>
int(0)
}
2022-10-04 13:56:02 +01:00
Jorg Adam Sowa
db012a8ba7
Use function HT_IS_PACKED where it's missing ( #9658 )
2022-10-04 13:37:06 +01:00
David CARLIER
cf503eb374
porting ZEND_ASSUME for clang for the optimiser with ( #9651 )
...
a given condition.
using `__builtin_assume` instead of the actual generic solution,
disable `-Wassume` warning for the ZEND_ASSERT cases.
2022-10-03 22:58:06 +01:00
George Peter Banyard
8f63cc7b8b
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-9655: Allow pure intersection types to be implicitly nullable
2022-10-03 11:03:31 +01:00
HypeMC
279ffdb598
Fix GH-9655: Allow pure intersection types to be implicitly nullable
...
Closes GH-9659
2022-10-03 11:02:52 +01:00
George Peter Banyard
bb79ef775b
Fix GH-9556 "iterable" alias "array|Traversable" breaks PHP 8.1 code
...
Closes GH-9558
2022-09-30 12:50:45 +01:00
George Peter Banyard
235e152e1a
Move object/class redundancy check into union type handling
...
As such a redundancy can only happen for union types
2022-09-30 12:50:45 +01:00
George Peter Banyard
c801076d8b
Fix GH-9556 "iterable" alias "array|Traversable" breaks PHP 8.1 code
...
Closes GH-9558
2022-09-30 12:49:15 +01:00
George Peter Banyard
74ae498a4b
Move object/class redundancy check into union type handling
...
As such a redundancy can only happen for union types
2022-09-30 12:48:56 +01:00
George Peter Banyard
0f8b9eb49b
Add support for binary and octal number prefixes for INI settings
...
Closes GH-9560
2022-09-30 11:58:36 +01:00
George Peter Banyard
0d19ae4068
Add support for binary and octal number prefixes for INI settings
...
Closes GH-9560
2022-09-30 11:56:39 +01:00
twosee
fc37a8262b
Fix debug backtrace frameno ( #8761 )
2022-09-29 16:17:17 +02:00
Kévin Dunglas
cd572ae759
Set SA_ONSTACK in zend_sigaction ( #9597 )
2022-09-26 23:02:56 +02:00
Dmitry Stogov
e6831dbd82
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fixed type inference
2022-09-26 12:20:45 +03:00
Dmitry Stogov
94b8c2da9f
Fixed type inference
...
Fixes oss-fuzz #51640
2022-09-26 12:19:12 +03:00
Dmitry Stogov
c083efb779
Fix memory leak
...
Fixes oss-fuzz #51622
2022-09-26 12:02:03 +03:00
Dmitry Stogov
90db4c741e
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix memory leak
2022-09-26 11:47:41 +03:00
Dmitry Stogov
5ad8b3bcfa
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix memory leak
2022-09-26 11:47:32 +03:00
Dmitry Stogov
b20568d4fa
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix memory leak
2022-09-26 11:44:38 +03:00
Dmitry Stogov
8258b7731b
Fix memory leak
...
Fixes oss-fuzz #51622
2022-09-26 11:43:38 +03:00
Patrick Allaert
49499c512e
Merge branch 'PHP-8.2'
2022-09-22 13:17:17 +02:00
Patrick Allaert
18cd80c327
Fixed undefined macros warnings
2022-09-22 13:17:02 +02:00
Dmitry Stogov
4d5c6ca32d
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix SSA construction and type inference
2022-09-19 15:46:08 +03:00
Dmitry Stogov
7496a400aa
Fix SSA construction and type inference
...
Fixes oss-fuzz #51476
2022-09-19 15:45:34 +03:00
Dmitry Stogov
31dca2ecec
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fixed warning
2022-09-19 13:13:04 +03:00
Dmitry Stogov
33918f999d
Fixed warning
2022-09-19 13:12:49 +03:00
Dmitry Stogov
7fdf896d4b
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix memory leak
2022-09-19 13:04:18 +03:00
Dmitry Stogov
c0d49b7c7d
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix memory leak
2022-09-19 13:04:09 +03:00
Dmitry Stogov
8a1f7fa721
Fix memory leak
...
Fixes oss-fuzz #51451
2022-09-19 13:03:24 +03:00
Ilija Tovilo
80d99a6a45
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix UB pointer arithmetics on NULL
2022-09-16 18:25:33 +02:00
Ilija Tovilo
fe0eaf107a
Fix UB pointer arithmetics on NULL
...
Closes GH-9559
2022-09-16 18:24:39 +02:00
Ilija Tovilo
743d3780c6
Add clang ASAN/UBSAN push job
...
Closes GH-9507
2022-09-14 23:55:46 +02:00
Ilija Tovilo
ed202b2a50
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Don't throw CompileError after parsing
2022-09-14 23:06:05 +02:00
Ilija Tovilo
7e860eaef0
Don't throw CompileError after parsing
...
Aborting parsing is not safe, a fatal error is necessary.
See https://github.com/php/php-src/commit/b9f7123c5e4ccdc3c381ab949ff01e3c14f3465c
2022-09-14 23:05:41 +02:00
Bob Weinand
5a0b68bed7
Revert "Store default object handlers alongside the class entry"
...
This reverts commit 9e6eab3c13 .
Reverted along a01dd9feda .
2022-09-14 11:18:14 +02:00
Bob Weinand
a01dd9feda
Revert "Port all internally used classes to use default_object_handlers"
...
This reverts commit 94ee4f9834 .
The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.
2022-09-14 11:13:23 +02:00
Sara Golemon
559da529a0
Bump for 8.0.25
2022-09-13 23:46:26 +00:00
Patrick Allaert
0f575aa698
PHP-8.1 is now for PHP 8.1.12-dev
2022-09-13 23:09:47 +02:00