Máté Kocsis
f62ec5cf6c
Fix microtime() test
2020-07-27 13:14:21 +02:00
Derick Rethans
cdc8523300
Last pass of 'More consistent parameter names for date/time functions'
2020-07-27 11:42:13 +01:00
Dmitry Stogov
c56c19cec3
Fixed incorrect reference counting (we shouldn't skip ADDREF for IS_CV result)
2020-07-27 13:18:34 +03:00
Christoph M. Becker
041cbec023
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #77932 : File extensions are case-sensitive
2020-07-27 11:56:52 +02:00
Christoph M. Becker
68aa1329eb
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77932 : File extensions are case-sensitive
2020-07-27 11:54:54 +02:00
Christoph M. Becker
6f18d7e2f9
Fix #77932 : File extensions are case-sensitive
...
The file extension to mime type mapping *must* not depend on the file
extension's case for case-insensitive file systems, and *should* not
for case-sensitive file systems.
2020-07-27 11:52:18 +02:00
Nikita Popov
08e6c20955
Fix null pointer deref in compile_return()
...
Fixes oss-fuzz #24387 .
2020-07-27 10:27:26 +02:00
Nikita Popov
3b5b288127
Add AST export support for nullsafe operator
...
Fixes oss-fuzz #24403 and variants.
2020-07-27 10:20:02 +02:00
Dmitry Stogov
d9f5c44d5f
type in comment
2020-07-27 11:13:23 +03:00
Dmitry Stogov
9aa5967a5f
Fixed memory leaks
2020-07-27 10:46:58 +03:00
Derick Rethans
f66627abff
Another pass of improving ext/date argument names
2020-07-26 10:38:53 +01:00
Derick Rethans
2b66cc95d9
Merge branch 'PHP-7.4'
2020-07-26 10:09:27 +01:00
Derick Rethans
877a351ea8
PHP-7.4 is 7.4.10-dev now
2020-07-26 10:08:52 +01:00
Tyson Andre
07db64156e
[RFC] Make string length for getTraceAsString() configurable
...
Add a `zend.exception_string_param_max_len` ini setting.
(same suffix as `log_errors_max_len`)
Allow values between 0 and 1000000 bytes.
For example, with zend.exception_string_param_max_len=0,
"" would represent the empty string, and "..." would represent something
longer than the empty string.
Previously, this was hardcoded as exactly 15 bytes.
Discussion: https://externals.io/message/110717
Closes GH-5769
2020-07-25 09:50:57 -04:00
Máté Kocsis
8664ff7ae1
Cleanup argument handling in ext/reflection
...
Closes GH-5850
2020-07-24 17:47:42 +02:00
Nikita Popov
1f8a93abaa
Support class+mask union for internal argument
2020-07-24 16:40:14 +02:00
Derick Rethans
e96e4ac726
More consistent parameter names for date/time functions
2020-07-24 11:49:01 +01:00
Dmitry Stogov
0ef8e0c115
Result of branching opcode in side trace is unknown
2020-07-24 13:26:03 +03:00
Nikita Popov
d65d3f5298
Fix bug #79108
...
Don't expose references in debug_backtrace() or exception traces.
This is regardless of whether the argument is by-reference or not.
As a side-effect of this change, exception traces may now acquire
the interior value of a reference, which may be unexpected for
some internal functions. This is what necessitated the change in
the spl_array sort implementation.
2020-07-24 12:23:34 +02:00
Nikita Popov
27ad19c3e8
Validate collator earlier during sort
...
Check this once before the sort, instead of on every compare.
Also directly store the UCollator to make things more obvious.
2020-07-24 11:58:10 +02:00
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