Nikita Popov
aaedbde8b4
Mark zend_jit_patch memory accesses as unaligned
...
This prevents ubsan from complaining.
2020-07-22 11:02:24 +02:00
Nikita Popov
eb04cb5f20
Move checks after zpp in opcache_is_script_cached()
2020-07-22 10:52:50 +02:00
Nikita Popov
80b4d49f90
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79881
2020-07-22 10:21:29 +02:00
Nikita Popov
657a832a77
Fixed bug #79881
2020-07-22 10:21:24 +02:00
Christopher Jones
30073ac645
Update NEWS
2020-07-22 17:30:20 +10:00
George Peter Banyard
7a3375a08c
Use ZPP callable check for oci_register_taf_callback()
2020-07-22 17:29:30 +10:00
George Peter Banyard
0d146cb3eb
Some cleanup in OCI8 extension for PHP 8
2020-07-22 17:29:30 +10:00
Christoph M. Becker
a986933dde
Disable tracing JIT on AppVeyor
...
This is a temporary measure until the current issues[1] are resolved.
[1] <0e1e991a89 (commitcomment-40805659) >
2020-07-22 08:55:52 +02:00
Dmitry Stogov
b5e2b64adc
Fix deoptimization info and corresponding memory leaks
2020-07-21 22:58:24 +03:00
Dmitry Stogov
b44169e9dd
Fixed bug #79864 (JIT segfault in Symfony OptionsResolver)
2020-07-21 20:54:33 +03:00
Tyson Andre
4cf8b6f1c9
Support optional comma in closure use list
...
RFC: https://wiki.php.net/rfc/trailing_comma_in_closure_use_list
Discussion: https://externals.io/message/110715
The release manager has agreed to allow merging of RFCs that have near-unanimous
votes. If an RFC ends up not achieving the required 2/3 majority at the time the
announced voting period closes, this implementation commit will be reverted
in time for the feature freeze.
Closes GH-5793
2020-07-21 13:01:27 -04:00
Máté Kocsis
69a5c561d0
Improve argument types and names in ext/ctype
...
Closes GH-5878
2020-07-21 16:40:47 +02:00
Nikita Popov
e079e753dc
Give zend_pass_function an arginfo
...
Now that the ZEND_ACC_VARIADIC flag is set, we should also make
sure there is a variadic arg that can be looked up.
2020-07-21 16:01:45 +02:00
Nikita Popov
df2749da70
Tweak zend_test arginfo/zpp
2020-07-21 15:33:01 +02:00
Nikita Popov
1d4e229ab7
Fix incorrect initialization in date_sunrise()
2020-07-21 15:33:01 +02:00
Dmitry Stogov
0e1e991a89
Switch to tracing JIT by default
2020-07-21 16:15:11 +03:00
Nikita Popov
f7f557926e
Fix arg/func info
...
* mysqli_get_server_info() cannot return null. The underlying API
is infallible.
* mysqli_select_db() func info is redundant.
* mb_detect_order() can only return array|true, not array|false.
Also make the func_info.phpt test that is supposed to catch these
kinds of issues actually work.
2020-07-21 15:00:33 +02:00
Máté Kocsis
5770b66722
Cleanup argument handling of Zend functions and methods
...
Closes GH-5847
2020-07-21 14:47:03 +02:00
Remi Collet
42226fcf03
add ZipArchive::CM_XZ constant (in upcoming libzip 1.8.0)
2020-07-21 14:43:52 +02:00
Dmitry Stogov
7686118212
Fix type recording and side exit information for FE_FETCH_* instructions
2020-07-21 15:39:13 +03:00
Nikita Popov
c9881fde7a
Run arginfo / zpp mismatch tests for methods as well
...
As a side-effect, this also catches issues where classes are not
prepared for use with newInstanceWithoutConstructor.
2020-07-21 14:17:29 +02:00
Nikita Popov
38fb1f8383
Check for missing arginfo arguments
...
Internal functions error when too many arguments are passed. Make
this part of the verification we do in debug builds. This will
help avoid cases where an argument is missing in the stubs,
as recently encountered in 6d96f0f .
2020-07-21 14:17:29 +02:00
Dmitry Stogov
be0d912674
Avoid recording of uninitialized variable
2020-07-21 14:11:19 +03:00
Nikita Popov
ae2b214be2
Check for redundant func info
2020-07-21 13:01:12 +02:00
Nikita Popov
ac56ca0dcc
Separate __call and __soapCall implementations
...
This is overly pedantic, but allows us to enable more arginfo
consistency checks.
2020-07-21 12:59:28 +02:00
Nikita Popov
4dd8fec073
Add stubs for PDO PGSql extension methods
2020-07-21 12:49:37 +02:00
Nikita Popov
1afcced1f0
Add stubs for PDO SQLite extension methods
...
Putting these under a dummy PDO_SQLite_Ext class.
2020-07-21 12:49:36 +02:00
Dmitry Stogov
047474c3b4
Disable JIT for PHPDBG
2020-07-21 13:26:32 +03:00
Nikita Popov
4ce9571978
Fix UConvert::getErrorMessage() leak on zpp failure
2020-07-21 12:05:44 +02:00
Nikita Popov
ae81549048
Move SOAP_SERVER_BEGIN_CODE() after zpp
...
This is still very dubious, because there are lots of other "returns"
between the BEGIN and END -- won't that end up not restoring the
original state?
2020-07-21 12:05:42 +02:00
Nikita Popov
b3ea6ce720
Make ReflectionGenerator final
...
This class is not safe against malicious extension / instantiation.
2020-07-21 11:53:00 +02:00
Nikita Popov
3a9036ac54
Stricter verification of func info against arg info
...
Make sure they're actually the same up to cases where func info
allows more accurate expressions. There are some awkward edge cases
around true/false/null limitations in union types.
2020-07-21 11:47:52 +02:00
Nikita Popov
6e09a3e203
Adjust Doctrine workaround in community job
...
[ci skip]
2020-07-21 11:28:41 +02:00
Dmitry Stogov
447a098ebb
Switch to tracing JIT by default
2020-07-21 12:22:36 +03:00
Dmitry Stogov
bb9e3dd6cc
Use different temporary register
2020-07-21 12:21:47 +03:00
Gabriel Caruso
d9227a1b44
Next is PHP 8.0.0beta1
2020-07-21 11:14:19 +02:00
Nikita Popov
e4c1366b63
Remove some redundant func info
...
This is fully covered by arginfo.
The array_merge_recursive() RC information was also wrong,
it should be the same as array_merge().
2020-07-21 11:10:07 +02:00
Gabriel Caruso
a1d88b193d
Update NEWS for PHP 8.0.0alpha3
2020-07-21 11:06:59 +02:00
Dmitry Stogov
e527478c3d
Fixed support for 64-bit constants
2020-07-21 11:49:15 +03:00
Nikita Popov
33ddc3bb96
Fix mb_ereg_search* arg and func info
2020-07-21 10:40:08 +02:00
Nikita Popov
da4262df6f
Fix readline test after callback changes
...
This one requires libedit and was probably missed for that reason.
2020-07-21 10:40:08 +02:00
Nikita Popov
be9c5daf28
Remove null from highlight_* return types
...
Also fix show_source() discrepancy in func_info.
2020-07-21 10:40:08 +02:00
Derick Rethans
69af5adc55
Merge branch 'PHP-7.4'
2020-07-21 09:24:27 +01:00
Derick Rethans
973be68c63
Prepare for 7.4.10
2020-07-21 09:23:51 +01:00
Nikita Popov
9d37a57411
Remove bool return type from assert_options
...
Not seeing any way this function can return bool.
2020-07-21 10:18:33 +02:00
Nikita Popov
fda78e5965
Fix iptcembed func info
...
This function can return true with $spool >= 2.
2020-07-21 10:18:33 +02:00
Nikita Popov
2160f5ce59
Call zpp_none in PharFileInfo::__destruct()
...
Using __destruct() with internal classes is dubious, but not so
simple to avoid here because the code extends SPL classes.
2020-07-21 10:18:33 +02:00
Christoph M. Becker
50de334d26
Merge branch 'PHP-7.4'
...
* PHP-7.4:
7.3 is now 7.3.22-dev
2020-07-21 09:53:39 +02:00
Christoph M. Becker
d85b4281d0
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
7.3 is now 7.3.22-dev
2020-07-21 09:52:04 +02:00
Christoph M. Becker
2c0a6977dd
7.3 is now 7.3.22-dev
2020-07-21 09:18:07 +02:00