Max Kellermann
ef7fbfd710
Zend/zend_API: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
9b9ea0d7c6
Zend/zend_list: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
f15747c26b
Zend/zend_objects: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
e883ba93c4
Zend/zend_gc: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
7e87551c37
Zend/zend_llist: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
921274d2b8
Zend/zend_observer: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
fc1f528e5e
Zend/zend_interfaces: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
0961715cda
Zend/zend_enum: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
a93f264526
Zend/zend_weakrefs: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
72dd94e1c6
Zend/zend_compile: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
29b2dc8964
Zend/zend_iterators: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
05c7653bba
Zend/zend_call_stack: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
5190e5c260
Zend/zend_ast: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
6b55bf228c
Zend/zend_language_scanner: include cleanup
2023-01-15 15:07:58 +00:00
Max Kellermann
184b4a12d3
main/php.h: add missing includes
2023-01-15 15:07:58 +00:00
Max Kellermann
4c31b7888a
Zend/zend_globals_macros: add missing include for BEGIN_EXTERN_C
2023-01-15 15:07:58 +00:00
Max Kellermann
d44e9680f0
ext/opcache/ZendAccelerator.h: add missing include for "INIT_FUNC_ARGS"
2023-01-15 15:07:58 +00:00
Max Kellermann
4069a5c43f
Zend/zend_execute: always include zend_globals.h
...
Commit ecc880f491 was incomplete; EG() is used in inline functions
outside of ZEND_DEBUG.
2023-01-15 15:07:58 +00:00
Niels Dossche
a60c6ee0ac
Mark constant static arrays in function bodies actually as const ( #10325 )
2023-01-15 14:51:31 +00:00
Niels
e951202a69
Remove useless check, search_str is always true here ( #10322 )
2023-01-15 00:32:51 +01:00
Jakub Zelenka
abc41c2e00
Merge branch 'PHP-8.2'
2023-01-14 15:15:12 +00:00
Jakub Zelenka
d0dd77a3c2
Merge branch 'PHP-8.1' into PHP-8.2
2023-01-14 15:14:44 +00:00
Jakub Zelenka
7d98e3e40c
Fix missing comment in FPM www.conf.in
2023-01-14 15:13:55 +00:00
Arnaud Le Blanc
a493da7b9d
Fix typo in HAVE_ macro ( #10310 )
2023-01-14 13:43:26 +01:00
Arnaud Le Blanc
2a5c03cd72
[ci skip] NEWS
2023-01-14 12:19:58 +01:00
Niels
6ab503814d
Make array_pad's $length warning less confusing ( #10149 )
...
Remove array_pad's arbitrary length restriction
The error message was wrong; it *is* possible to use a larger length.
Furthermore, there is an arbitrary restriction on the new array's
length.
Fix both by checking the length against HT_MAX_SIZE.
2023-01-14 12:15:56 +01:00
David CARLIER
690db97c6d
intl extension couple of micro optimisations for error edge cases. ( #10044 )
...
making c++ compile time few enums ranges.
2023-01-14 07:26:05 +00:00
Arnaud Le Blanc
9788244a42
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix run-tests.php hanging when a worker process dies without notice (#9931 )
2023-01-13 18:07:58 +01:00
Arnaud Le Blanc
61048f984a
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix run-tests.php hanging when a worker process dies without notice (#9931 )
2023-01-13 18:07:45 +01:00
Arnaud Le Blanc
8c0698f66b
Fix run-tests.php hanging when a worker process dies without notice ( #9931 )
...
run-tests.php with `-jN` can hang if a parallel worker dies without notice. This
can happen due to fatal errors in the worker, or if the worker is killed.
- run-tests.php (main process)
\_ run-tests.php (worker #0 ) // main process hangs if this one crashes
\_ test-001.php (test-001.phpt)
2023-01-13 17:43:17 +01:00
Arnaud Le Blanc
2b1907786c
zend_hash_check_size: allow nSize <= HT_MAX_SIZE ( #10244 )
...
This is consistent with other uses of HT_MAX_SIZE
2023-01-13 17:42:43 +01:00
Max Kellermann
7473b86f10
build/php.m4: remove test for integer types ( #10304 )
...
These are mandatory in C99, so it's a pointless waste of time to check
for them.
(Actually, the fixed-size integer types are not mandatory, but if they
are really not available on some theoretical system, PHP's fallbacks
won't work either, so nothing is gained from this check.)
2023-01-13 11:51:15 +00:00
Arnaud Le Blanc
ba091ab3c7
Merge branch 'PHP-8.2'
...
* PHP-8.2:
[ci skip] NEWS
Reduce HT_MAX_SIZE to account for the max load factor of 0.5 (#10242 )
GC fiber unfinished executions (#9810 )
2023-01-13 12:31:12 +01:00
Arnaud Le Blanc
871d9f2d70
[ci skip] NEWS
2023-01-13 12:29:51 +01:00
Arnaud Le Blanc
d89408075f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Reduce HT_MAX_SIZE to account for the max load factor of 0.5 (#10242 )
GC fiber unfinished executions (#9810 )
2023-01-13 12:28:21 +01:00
Arnaud Le Blanc
0f7625c47c
Reduce HT_MAX_SIZE to account for the max load factor of 0.5 ( #10242 )
...
zend_hash allocates a hash table twice as big as nTableSize
(HT_HASH_SIZE(HT_SIZE_TO_MASK(nTableSize)) == nTableSize*2), so HT_MAX_SIZE
must be half the max table size or less.
Fixes GH-10240
2023-01-13 12:05:51 +01:00
Arnaud Le Blanc
4fb149390a
GC fiber unfinished executions ( #9810 )
2023-01-13 12:04:28 +01:00
Jakub Zelenka
0d74362f63
Merge branch 'PHP-8.2'
2023-01-13 10:33:51 +00:00
Jakub Zelenka
a8c387e89c
Merge branch 'PHP-8.1' into PHP-8.2
2023-01-13 10:32:52 +00:00
Jakub Zelenka
120aafcc42
Fix bug #67244 : Wrong owner:group for listening unix socket
...
Update FPM www.conf to reflect the actual logic
2023-01-13 10:31:01 +00:00
Max Kellermann
061fcdb0a5
ext/opcache: use C11 atomics for "restart_in" ( #10276 )
...
Cheaper than fcntl(F_SETLK). The same is done already on Windows, so
if that works, why not use it everywhere? (Of course, only if the
compiler supports this C11 feature.)
As a bonus, the code in this commit also works on C++ via C++11
std::atomic, just in case somebody adds some C++ code to the opcache
extension one day.
2023-01-13 00:02:35 +01:00
Tim Düsterhus
4c9ae81c28
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix comment for php_safe_bcmp (#10306 )
2023-01-12 23:31:08 +01:00
Tim Düsterhus
fd7214436a
Fix comment for php_safe_bcmp ( #10306 )
...
* main: Fix comment for php_safe_bcmp
* main: Include note about php_safe_bcmp being security sensitive
This is taken from the implementation of `hash_equals()`.
2023-01-12 23:30:36 +01:00
David Carlier
9198e8894b
socket DF flag on UDP socket via IP_MTU_DISCOVER on Linux and IP_DONTFRAGMENT on FreeBSD for path MTU discovery purpose.
...
idea proposal via ml :
https://marc.info/?l=php-internals&m=167329288509393&w=2
Close GH-10282
2023-01-12 22:22:30 +00:00
David Carlier
55d19eee49
posix adding posix_fpathconf.
...
follow-up on GH-10238 but with the file descriptor flavor.
Close GH-10253
2023-01-12 22:15:31 +00:00
David Carlier
41c0304647
Merge branch 'PHP-8.2'
2023-01-12 22:01:39 +00:00
David Carlier
884e8a970a
Merge branch 'PHP-8.1' into PHP-8.2
2023-01-12 22:01:30 +00:00
Niels Dossche
833b45ac44
Fix GH-10249: Assertion `size >= page_size + 1 * page_size' failed.
...
Co-authored-by: Changochen <changochen1@gmail.com >
Closes GH-10284
2023-01-12 22:00:00 +00:00
Tim Düsterhus
8edd4a2ed8
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Revert "Make build work with newer OpenSSL"
[ci skip] Next release will be 8.0.28
[ci skip] Prepare for PHP 8.0.27 GA
2023-01-12 21:52:55 +01:00
Tim Düsterhus
8c7aacd760
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Revert "Make build work with newer OpenSSL"
[ci skip] Next release will be 8.0.28
[ci skip] Prepare for PHP 8.0.27 GA
2023-01-12 21:52:48 +01:00