David CARLIER
ebace1d7d0
pcntl add ECAPMODE from FreeBSD ( #7716 )
2021-12-21 07:23:22 +01:00
Joe Watkins
898da7bee1
Merge branch 'PHP-8.1'
...
* PHP-8.1:
zend gdb detection fix on FreeBSD.
2021-12-21 07:21:59 +01:00
Joe Watkins
3ee2422cbb
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
zend gdb detection fix on FreeBSD.
2021-12-21 07:19:58 +01:00
David CARLIER
62bcb31706
zend gdb detection fix on FreeBSD.
2021-12-21 07:19:33 +01:00
David CARLIER
1a4d2dd962
zend alloc USE_ZEND_ALLOC_HUGE_PAGES option support on solaris based systems ( #7789 )
2021-12-21 07:18:11 +01:00
Arnaud Le Blanc
aa35499b1c
Use new param API in ext/pcntl ( #7751 )
2021-12-21 07:17:12 +01:00
Dmitry Stogov
9b968ffe10
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fixed compilation warning
2021-12-21 00:03:29 +03:00
Dmitry Stogov
01dc872b26
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fixed compilation warning
2021-12-21 00:03:09 +03:00
Dmitry Stogov
cb10ac1d53
Fixed compilation warning
2021-12-21 00:02:45 +03:00
Dmitry Stogov
7d37accc30
Merge branch 'PHP-8.1'
...
* PHP-8.1:
JIT: Fix incorrect JIT prologur size for CLANG/x86 build
2021-12-20 23:53:59 +03:00
Dmitry Stogov
4ffed6dbcf
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
JIT: Fix incorrect JIT prologur size for CLANG/x86 build
2021-12-20 23:53:50 +03:00
Dmitry Stogov
6d5922bed5
JIT: Fix incorrect JIT prologur size for CLANG/x86 build
...
Fixes oss-fuzz #42724
2021-12-20 23:52:46 +03:00
Alex Dowad
edc6b756c1
Merge branch 'PHP-8.1'
...
* PHP-8.1:
mb_convert_encoding will not auto-detect input string as UUEncode, Base64, QPrint
2021-12-20 22:47:18 +02:00
Alex Dowad
f07c193583
mb_convert_encoding will not auto-detect input string as UUEncode, Base64, QPrint
...
In a2bc57e0e5 , mb_detect_encoding was modified to ensure it would never
return 'UUENCODE', 'QPrint', or other non-encodings as the "detected
text encoding". Before mb_detect_encoding was enhanced so that it could
detect any supported text encoding, those were never returned, and they
are not desired. Actually, we want to eventually remove them completely
from mbstring, since PHP already contains other implementations of
UUEncode, QPrint, Base64, and HTML entities.
For more clarity on why we need to suppress UUEncode, etc. from being
detected by mb_detect_encoding, the existing UUEncode implementation
in mbstring *never* treats any input as erroneous. It just accepts
everything. This means that it would *always* be treated as a valid
choice by mb_detect_encoding, and would be returned in many, many cases
where the input is obviously not UUEncoded.
It turns out that the form of mb_convert_encoding where the user passes
multiple candidate encodings (and mbstring auto-detects which one to
use) was also affected by the same issue. Apply the same fix.
2021-12-20 22:09:33 +02:00
George Peter Banyard
d4920f4284
Move ctype test out from Zend and into ctype extension
2021-12-20 18:12:35 +00:00
Tyson Andre
32e2d97a26
Allow internal functions to declare if they support compile-time evaluation, add functions. ( #7780 )
...
https://wiki.php.net/rfc/strtolower-ascii means that these functions no longer
depend on the current locale in php 8.2. Before that, this was unsafe to
evaluate at compile time.
Followup to GH-7506
Add strcmp/strcasecmp/strtolower/strtoupper functions
Add bin2hex/hex2bin and related functions
Update test of garbage collection using strtolower to use something else to create a refcounted string
2021-12-20 09:27:06 -05:00
David Carlier
3414ae6c0c
sockets: add SO_INCOMING_CPU constant
...
get/set the cpu attached to a socket, no special treatment needed,
it is simply an integer.
Closes GH-7753.
2021-12-20 14:58:09 +01:00
Christoph M. Becker
04b9049973
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix zend_fibers.c build with ZEND_FIBER_UCONTEXT
2021-12-20 14:22:08 +01:00
Petr Sumbera
069bbf3e80
Fix zend_fibers.c build with ZEND_FIBER_UCONTEXT
...
Avoids (Solaris SPARC) issue:
zend_fibers.c:77:9: error: unknown type name 'ucontext_t'
Closes GH-7773.
2021-12-20 14:21:50 +01:00
Dmitry Stogov
e4cf3f7420
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix incorrect optimization of ASSIGN_OP that may lead to memory leak
2021-12-20 15:17:45 +03:00
Dmitry Stogov
ca3f7b0a73
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix incorrect optimization of ASSIGN_OP that may lead to memory leak
2021-12-20 15:17:30 +03:00
Dmitry Stogov
e004e844f7
Fix incorrect optimization of ASSIGN_OP that may lead to memory leak
...
Fixes oss-fuzz #42506
2021-12-20 15:06:32 +03:00
Dmitry Stogov
5c1fc017b1
Merge branch 'PHP-8.1'
...
* PHP-8.1:
JIT: Fix register clobbering
2021-12-20 12:51:02 +03:00
Dmitry Stogov
3e842172d0
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
JIT: Fix register clobbering
2021-12-20 12:49:52 +03:00
Dmitry Stogov
7c674e1aa7
JIT: Fix register clobbering
...
Fixes oss-fuzz #42657
2021-12-20 12:48:48 +03:00
Dmitry Stogov
6b60dc29de
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix type inference for INIT_ARRAY with invalid index
2021-12-20 11:46:45 +03:00
Dmitry Stogov
c8d10a8243
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix type inference for INIT_ARRAY with invalid index
2021-12-20 11:46:36 +03:00
Dmitry Stogov
f18bb2477f
Fix type inference for INIT_ARRAY with invalid index
...
Fixes oss-fuzz #42568
2021-12-20 11:40:11 +03:00
Nikita Popov
29696dd54b
Add triage label when removing feedback label
2021-12-19 22:17:12 +01:00
Christoph M. Becker
107b3112b9
[ci skip] Merge branch 'PHP-8.1'
...
* PHP-8.1:
[ci skip] Fix "The Mysterious PHP RFC Process" link.
2021-12-19 16:37:40 +01:00
Christoph M. Becker
3859bffcd2
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
[ci skip] Fix "The Mysterious PHP RFC Process" link.
2021-12-19 16:37:09 +01:00
Joe Rowell
1481d66343
[ci skip] Fix "The Mysterious PHP RFC Process" link.
...
Closes GH-7785.
2021-12-19 16:35:54 +01:00
Christoph M. Becker
2f7cd46a17
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix FILTER_FLAG_NO_RES_RANGE flag
2021-12-19 16:26:14 +01:00
Christoph M. Becker
a000af6ecc
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix FILTER_FLAG_NO_RES_RANGE flag
2021-12-19 16:25:54 +01:00
Yifan Tong
3587e13ab3
Fix FILTER_FLAG_NO_RES_RANGE flag
...
`2001:10::/28` is a reserved IPv6 range. But there's a typo in GH-7476,
which caused IPv6 address like `240b:0010::1` will be filtered by the
flag `FILTER_FLAG_NO_RES_RANGE`.
http://www.faqs.org/rfcs/rfc6890.html
Closes GH-7790.
2021-12-19 16:24:34 +01:00
Tyson Andre
9a59417445
[skip ci] Document how to quickly check if jit .dasc files transpile, how to test the jit in different architectures. ( #7768 )
2021-12-19 10:12:35 -05:00
Tyson Andre
a5f782170b
Fix typos in opcache code comments, tests ( #7794 )
2021-12-19 10:04:09 -05:00
Dmitry Stogov
98c4a42b51
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix array clobbering by user error handler
2021-12-17 12:50:48 +03:00
Dmitry Stogov
2745cd9997
Fix array clobbering by user error handler
...
Fixes oss-fuzz #42503
2021-12-17 12:49:58 +03:00
Dmitry Stogov
9a65fd0adf
Merge branch 'PHP-8.1'
...
* PHP-8.1:
JIT: Fix incorrect type store elimination
2021-12-17 12:33:55 +03:00
Dmitry Stogov
88cb659f1f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
JIT: Fix incorrect type store elimination
2021-12-17 12:32:49 +03:00
Dmitry Stogov
66306030ad
JIT: Fix incorrect type store elimination
...
Fixes oss-fuzz #42388
2021-12-17 12:31:48 +03:00
Dmitry Stogov
192ea91deb
Avoid useless symbol table reattaching on retutn from an included op_array
2021-12-16 21:44:43 +03:00
Dmitry Stogov
67bb79259b
Don't execute INCLUDE for empty op_arrays.
2021-12-16 19:42:29 +03:00
Dmitry Stogov
79fac32d6b
Don't call zend_attach/detach_symbol_table() for op_arrays without local variables
2021-12-16 17:37:01 +03:00
Dmitry Stogov
3a3eeb4f83
Fixed build in separate directory
2021-12-16 12:32:09 +03:00
Christoph M. Becker
30a3280df7
Oracle Client 10g is no longer supported
...
Thus, we drop respective config option for Windows.
2021-12-15 22:09:58 +01:00
Yannis Guyon
38460c2c94
Implement php_handle_avif() using libavifinfo
...
See #80828 and the internals@ mailing list discussion at
https://externals.io/message/116543
Use libavifinfo's AvifInfoGetFeaturesStream() in php_handle_avif() to
get the width, height, bit depth and channel count from an AVIF
payload. Implement stream reading/skipping functions and data struct.
Use libavifinfo's AvifInfoIdentifyStream() in php_is_image_avif().
Update the expected features read from "test1pix.avif" in
getimagesize.phpt.
Closes GH-7711.
2021-12-15 20:27:40 +01:00
Christoph M. Becker
78ef25b21c
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix #81679 : Tracing JIT crashes on reattaching
2021-12-15 15:40:37 +01:00
Christoph M. Becker
5910e1d6cd
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #81679 : Tracing JIT crashes on reattaching
2021-12-15 15:39:58 +01:00