Nikita Popov
7eec281b5e
Avoid UNKNOWN default in PDO::query()
2020-07-24 11:44:47 +02:00
Máté Kocsis
70a3a909cd
Add the Z_PARAM_PATH_OR_NULL() and Z_PARAM_ZVAL_OR_NULL() macros
2020-07-24 10:37:35 +02:00
Nikita Popov
0a5b7c81b7
Make nested ternary without parentheses a compile error
...
This was deprecated in PHP 7.4.
2020-07-24 10:35:42 +02:00
Ilija Tovilo
9bf119832d
Implement nullsafe ?-> operator
...
RFC: https://wiki.php.net/rfc/nullsafe_operator
Closes GH-5619.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2020-07-24 10:05:03 +02:00
George Wang
293d2f99f1
Address some compiler warnings.
2020-07-23 17:21:24 -04:00
George Wang
78fc12a37a
Merge branch 'PHP-7.4'
2020-07-23 16:08:54 -04:00
George Wang
27bd16e71f
Merge branch 'PHP-7.3' into PHP-7.4
2020-07-23 15:54:48 -04:00
George Wang
874284d1c9
Merge branch 'PHP-7.2' into PHP-7.3
2020-07-23 15:36:35 -04:00
George Wang
c39f5fe94e
Security: update to LiteSpeed SAPI v7.7 to address an buffer overflow, and some log message tunings.
2020-07-23 15:35:32 -04:00
Dmitry Stogov
bc4201f6b7
Cleanup abstract test usage
2020-07-23 21:38:34 +03:00
Nikita Popov
86882060ab
Use zend_call_method in SoapFault::__toString()
2020-07-23 16:45:53 +02:00
Nikita Popov
a1ab7bbc3a
Simplify user_stream_create_object
2020-07-23 16:20:25 +02:00
Dmitry Stogov
b3e51b7675
Allow keeping result of FETCH_DIM_R in CPU register
2020-07-23 17:08:28 +03:00
Nikita Popov
dc30e1d812
Cleanup SPL instantiation code
2020-07-23 16:00:12 +02:00
Christoph M. Becker
fc4d462e94
Fix #78236 : convert error on receiving variables when duplicate [
...
When an input variable name contains a non matched open bracket, we not
only have to replace that with an underscore, but also all following
forbidden characters.
2020-07-23 15:48:09 +02:00
Christoph M. Becker
4293dd5d34
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79884 : PHP_CONFIG_FILE_PATH is meaningless
2020-07-23 15:43:02 +02:00
Christoph M. Becker
3deb6b555a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79884 : PHP_CONFIG_FILE_PATH is meaningless
2020-07-23 15:41:20 +02:00
Christoph M. Becker
15efb96d4c
Fix #79884 : PHP_CONFIG_FILE_PATH is meaningless
...
It does not make sense to make assumptions about `PHP_CONFIG_FILE_PATH`
during build time, since that value is never used during run time on
Windows. Since there is no `--with-config-file-path` on Windows
either, we define `PHP_CONFIG_FILE_PATH` as `""`.
2020-07-23 15:39:22 +02:00
Dmitry Stogov
96a1b409df
Don't record "fake" closures
2020-07-23 15:18:28 +03:00
Nikita Popov
93594862f4
Remove no longer needed stdint compatibility defines
...
Closes GH-5886.
2020-07-23 13:00:04 +02:00
Dmitry Stogov
14400b50d3
We track only arguments of user functions on abstract stack
2020-07-23 13:39:49 +03:00
Dmitry Stogov
7de23662df
Fixed 32-bit build
2020-07-23 12:26:34 +03:00
Dmitry Stogov
f6164b8407
Revert "Fixed DynASM failure"
...
This reverts commit 62ca6b567c .
2020-07-23 12:16:58 +03:00
Dmitry Stogov
62ca6b567c
Fixed DynASM failure
2020-07-23 12:13:33 +03:00
Dmitry Stogov
b0c3ca0e52
Avoid register reloading
2020-07-23 12:08:07 +03:00
Nikita Popov
545928e4b8
Fix some clang warnings
2020-07-23 10:35:40 +02:00
Nikita Popov
b6b6e76937
Try to fix 32-bit NTS build
2020-07-23 09:58:17 +02:00
Christopher Jones
99d2b24b15
Make test decimal to binary conversion expectation more tolerant
2020-07-23 16:31:33 +10:00
Christopher Jones
b2d1736de8
Fix cut/paste error in expected test output
2020-07-23 16:29:51 +10:00
Christoph M. Becker
1e938e8eba
Fix build
...
MSVC is pretty picky there, so we add the `ZEND_VOIDP` cast.
2020-07-22 22:57:58 +02:00
Christoph M. Becker
dd30a3d8ce
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix brittle test
2020-07-22 20:47:16 +02:00
Christoph M. Becker
0a59a71947
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix brittle test
2020-07-22 20:46:28 +02:00
Christoph M. Becker
6b99a8be4d
Fix brittle test
...
This test fails occasionally due to timing issues, because the session
file may have been unlinked by the first `session_start()`'s GC. We
adapt the test expectation to this reality.
2020-07-22 20:45:56 +02:00
Christoph M. Becker
f1436c4832
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix minor memory leak of CG(script_encoding_list)
2020-07-22 20:34:21 +02:00
Christoph M. Becker
c1a80e075a
Fix minor memory leak of CG(script_encoding_list)
...
This only leaks at the end of the process, so per se not an issue, but
the leak is caught by MSVC's CRT leak checker, so we better properly
clean up to avoid false positives.
2020-07-22 20:32:48 +02:00
Dmitry Stogov
d05e88250a
Revert "Disable tracing JIT on AppVeyor"
...
This reverts commit a986933dde .
Tracing JIT for Windows is already fixed.
2020-07-22 20:03:50 +03:00
twosee
6e92487f66
Fix warnings of strict-prototypes
...
Closes GH-5887.
2020-07-23 00:59:00 +08:00
twosee
a65ec4c2db
Change type of max_num_args to uint32_t
...
Closes GH-5885.
2020-07-23 00:55:58 +08:00
twosee
e29ee65ec0
Export zend_register_error_notify_callback() with ZEND_API
2020-07-23 00:45:06 +08:00
Nikita Popov
5febd633b9
Accept unsigned instead of enum pdo_attribute_type
...
Driver-specific options get passed to these functions, which are
not part of the pdo_attribute_type enum. Newer GCC versions don't
like that. Accept a simple integr type instead.
2020-07-22 18:28:22 +02:00
Dmitry Stogov
bc1d7b6040
Reserve WIN64 shadow space
2020-07-22 17:49:51 +03:00
Nikita Popov
9250abfb04
php.ini cleanup
...
[ci skip]
2020-07-22 15:46:03 +02:00
Dmitry Stogov
c9434a4af2
Separate and fix deoptimization code generator
2020-07-22 15:04:17 +03:00
Nikita Popov
7a3dcc3e33
Treat namespaced names as single token
...
Namespace names are now lexed as single tokens of type
T_NAME_QUALIFIED, T_NAME_FULLY_QUALIFIED or T_NAME_RELATIVE.
RFC: https://wiki.php.net/rfc/namespaced_names_as_token
Closes GH-5827.
2020-07-22 12:36:05 +02:00
Nikita Popov
acbf7802af
Improved number to string comparison semantics
...
RFC: https://wiki.php.net/rfc/string_to_number_comparison
Closes GH-3886.
2020-07-22 12:23:49 +02:00
Dmitry Stogov
2940839d28
Prevent incorrect trasing JIT TSSA usage for range() result type inference
2020-07-22 13:01:11 +03:00
Nikita Popov
e6ae1bf489
Check dual_it validity in CallbackFilterIterator::accept()
...
Avoid accessing intern->u.cbfilter null pointer, though it's
harmless here.
2020-07-22 11:31:15 +02:00
Nikita Popov
f90c735957
Drop no-op dasm_growpc() call
...
This doesn't do anything, as maxpc=0 is passed. However, ubsan
complains about the memset of a null pointer, so avoid it.
2020-07-22 11:11:36 +02:00
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