Máté Kocsis
3df306de94
Promote warnings to exceptions in ext/pcntl
...
Closes GH-6004
2020-08-25 13:02:13 +02:00
Nikita Popov
4a98b64413
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove bogus REGISTER_LONG_CONSTANT
2020-08-25 12:36:06 +02:00
Nikita Popov
86e7aa20ad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Remove bogus REGISTER_LONG_CONSTANT
2020-08-25 12:35:54 +02:00
Nikita Popov
063082043a
Remove bogus REGISTER_LONG_CONSTANT
...
This shouldn't be in this function, probably a copy/paste mistake...
2020-08-25 12:35:38 +02:00
Máté Kocsis
be5ba20132
Promote warnings to exceptions in ext/phar
...
Closes GH-6008
2020-08-25 11:57:37 +02:00
Máté Kocsis
f068fbcf1f
Promote warnings to exceptions in ext/xmlreader
...
Closes GH-6021
2020-08-25 11:54:45 +02:00
Nikita Popov
f4e9d0e325
Don't return temporary from SXE write_property handler
...
Return the original value. If we don't return the original value,
we need to own the zval, which we don't.
For clarity also switch things to work on a zend_string* value
instead of a zval*.
2020-08-25 11:28:44 +02:00
Nikita Popov
afde6dcf5f
Simplify change_node_zval implementation
...
At this point, the value has already been converted into a string.
2020-08-25 11:01:48 +02:00
Dmitry Stogov
d384537859
Move AVOID_REFCOUNTING type info flag into a separate bit
2020-08-25 11:37:30 +03:00
Christoph M. Becker
ecf4e7063d
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix potential integer overflow detected by oss-fuzz
2020-08-24 17:38:50 +02:00
Máté Kocsis
1fb66b8114
Promote warning to exception in ext/enchant
...
Closes GH-6022
2020-08-24 17:37:20 +02:00
Christoph M. Becker
5dd1877ca1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix potential integer overflow detected by oss-fuzz
2020-08-24 17:36:50 +02:00
Christoph M. Becker
74de17f2ea
Fix potential integer overflow detected by oss-fuzz
...
We port the respective fix from upstream[1].
[1] <9ed642764c
>
2020-08-24 17:35:04 +02:00
Máté Kocsis
ffff237497
Promote warning to exception in ext/posix
...
Closes GH-6009
2020-08-24 17:34:33 +02:00
Máté Kocsis
cc35cfd2eb
Promote warnings to exceptions in ext/filter
...
Closes GH-5970
2020-08-24 17:34:32 +02:00
Nikita Popov
c557c410af
Drop a spurious zend_string_release
...
This should have been dropped in the refactoring.
2020-08-24 17:30:31 +02:00
Nikita Popov
9feb98859f
Clean up setlocale implementation
...
Factor out the core logic into a separate function and drop the
"clever" code that combines iteration through variadic arguments
and arrays.
This fixes bug #79829 as a side effect.
2020-08-24 17:09:33 +02:00
Nikita Popov
8c3574bd6c
Remove php_my_setlocale workaround
...
This works around a macro-expansion issue that is no longer
relevant in PHP 8.
2020-08-24 16:50:03 +02:00
Christoph M. Becker
c925028d49
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #79986 : str_ireplace bug with diacritics characters
2020-08-24 11:10:09 +02:00
Christoph M. Becker
5ab7b30cd6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79986 : str_ireplace bug with diacritics characters
2020-08-24 11:09:38 +02:00
Christoph M. Becker
844a2dd6ac
Fix #79986 : str_ireplace bug with diacritics characters
...
`tolower()` returns an `int`, so we must not convert to `char` which
may be `signed` and as such may be subject to overflow (actually,
implementation defined behavior).
Closes GH-6007
2020-08-24 11:08:48 +02:00
Christoph M. Becker
08d2e511e4
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #80002 : calc free space for new interned string is wrong
2020-08-24 11:04:27 +02:00
Christoph M. Becker
10df94dd0e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80002 : calc free space for new interned string is wrong
2020-08-24 11:04:03 +02:00
Christoph M. Becker
fcd26ffcc3
Fix #80002 : calc free space for new interned string is wrong
...
We need to calculate the free size in bytes.
Patch contributed by t-matsuno.
Closes GH-6024
2020-08-24 11:03:19 +02:00
Christoph M. Becker
e6044d4455
Fix #55847 : DOTNET .NET 4.0 GAC new location
...
If we do not specify the exact version of the .NET framework to use,
the default CLR is loaded, which is typically CLR 2, which is very old.
Therefore, we introduce a `PHP_INI_SYSTEM` setting, which allows users
to choose the desired .NET framework version. The value of the setting
are the first three parts of the framework's version number, separated
by dots, and prefixed with "v", e.g. "v4.0.30319". If the value of the
INI setting is `NULL` (the default) or an empty string, the default CLR
is used.
Internally, we switch from the most generic `CoCreateInstance()` to
`CorBindToRuntime()` which is implemented in mscoree.dll. To avoid the
hard dependency to that library, we load dynamically.
So this fix is supposed to be fully backwards compatible.
Closes GH-5949
2020-08-22 12:42:34 +02:00
Christoph M. Becker
969a432fd8
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #80007 : Potential type confusion in unixtojd() parameter parsing
2020-08-22 12:34:24 +02:00
Christoph M. Becker
81fffa86b2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80007 : Potential type confusion in unixtojd() parameter parsing
2020-08-22 12:31:07 +02:00
Andy Postnikov
b2a33ab06b
Fix #80007 : Potential type confusion in unixtojd() parameter parsing
...
Also it fixes test on 32-bit armv7 and x86
- Test unixtojd() function : error conditions [ext/calendar/tests/unixtojd_error1.phpt]
Closes GH-6033
2020-08-22 12:30:04 +02:00
Christopher Jones
47c787ff5b
Squash a Linux compile warning
2020-08-22 11:37:23 +10:00
David Carlier
f32653accc
fileinfo build fix proposal for haiku.
...
Haiku already defines a unichar type and different than the fileinfo's anyway.
Closed GH-5983
2020-08-21 16:13:09 +02:00
Christoph M. Becker
3c5412fc8f
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
sqlite3 linkage issue on some systems/package combination fix.
2020-08-21 15:46:30 +02:00
David Carlier
1b21b56074
sqlite3 linkage issue on some systems/package combination fix.
...
Checking the version is not enough, the function might be available
but the symbols are not present still.
Closes GH-5993
2020-08-21 15:45:51 +02:00
Christopher Jones
ff66e4945e
OCI8 classes were already renamed in 8; this now follows the new-new standard
2020-08-21 17:46:16 +10:00
Dmitry Stogov
8095a0ef7f
Better register usage for ASSIGN_DIM_OP
2020-08-21 09:50:28 +03:00
Dmitry Stogov
35a3e450bc
Better registers usage
2020-08-21 01:57:03 +03:00
Dmitry Stogov
c64cb19138
cleanup unused parameters
2020-08-20 20:43:40 +03:00
Dmitry Stogov
dd29a6e79e
efree() doesn't use line number arguments (pass zeros)
2020-08-20 20:39:13 +03:00
Máté Kocsis
4e6fbb0a12
Promote warnings to exceptions in ext/gd
...
Closes GH-6023
2020-08-20 12:07:04 +02:00
Dmitry Stogov
22982eee33
Load zval type into register to eliminate double load
2020-08-19 17:51:23 +03:00
Dmitry Stogov
bcadf9da8a
Shrink live intervals of IS_VAR/IS_TMP_VAR
2020-08-19 14:53:01 +03:00
Dmitry Stogov
c6c1682d7a
Fixed tracing JIT crash in case SSA for op_array is not provided
2020-08-19 14:51:39 +03:00
Benjamin Eberlei
9f6820f7f1
Fix #79968 : Manipulation on unattached DOMChildNode should throw DOMException
2020-08-19 11:54:41 +02:00
Dmitry Stogov
736c5dca10
Fixed memory leak (ext/hash/tests/mhash_001.phpt failure)
2020-08-19 09:30:08 +03:00
Tyson Andre
9883fec99f
Fix more basic function stubs
...
User-defined functions can't have multiple parameters with the same name.
Don't do that for var_dump/debug_zval_dump.
Consistently use array $array to match docs
Fix typo in UPGRADING
Fixes GH-6015
2020-08-18 20:23:42 -04:00
Dmitry Stogov
f559c78000
Check for exception after $this destruction
2020-08-18 21:13:18 +03:00
Dmitry Stogov
f2d8488806
Fixed register allocation for CASE instruction. CASE don't destroy first operand and it may be used later in VM or different trace.
2020-08-18 21:10:34 +03:00
Máté Kocsis
bf9ef513c0
Promote warnings to exceptions in ext/pspell
...
Closes GH-6010
2020-08-18 19:24:18 +02:00
Matteo Beccati
cf3fb14679
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #47021 : SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
2020-08-18 18:31:11 +02:00
Matteo Beccati
3877172411
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #47021 : SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
2020-08-18 18:27:26 +02:00
Matteo Beccati
f7c43b8c72
Fix #47021 : SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
2020-08-18 18:10:39 +02:00