Nikita Popov
bd6feb7b12
Enforce memory limit in tracked allocation mode
...
A very basic limit (for single allocations) was already enforced.
This extends it to count the total memory allocations.
This is useful to avoid out of memory conditions while fuzzing.
2020-08-27 10:18:18 +02:00
Dmitry Stogov
3ead24ecfa
Check interrupt only if the link is a part of the loop.
2020-08-27 11:04:23 +03:00
Dmitry Stogov
c4fc453771
Rename zend_jit_var_may_be_modified_indirectly() into zend_jit_var_may_alias()
2020-08-27 10:31:39 +03:00
Dmitry Stogov
16b3b339ed
Check reference guard once
2020-08-27 00:40:55 +03:00
Dmitry Stogov
b9e3de0a32
Use "movaps" instead of "movsd" to copy the whole %xmm register.
2020-08-26 21:13:55 +03:00
Dmitry Stogov
c1f14b8a49
Fixed reference-counting
2020-08-26 18:56:54 +03:00
Nikita Popov
e069032e5c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Property handle read_property exception in fetch_property_address
2020-08-26 16:13:10 +02:00
Nikita Popov
247105ae1a
Property handle read_property exception in fetch_property_address
...
Otherwise we leak (and corrupt uninitialized_zval).
2020-08-26 16:12:34 +02:00
Christoph M. Becker
00edc3f4bc
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix com_safearray_proxy related memory management issues
2020-08-26 15:43:43 +02:00
Christoph M. Becker
8e2f219fad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix com_safearray_proxy related memory management issues
2020-08-26 15:40:57 +02:00
Christoph M. Becker
1b7ee6db88
Fix com_safearray_proxy related memory management issues
2020-08-26 15:39:32 +02:00
Nikita Popov
55798e0e39
Lowercase method name in zend_call_method()
2020-08-26 15:19:23 +02:00
Nikita Popov
86cd009718
Fix pass by ref error for named params
2020-08-26 15:10:08 +02:00
Christoph M. Becker
2f9e9d4d97
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Separate COM::__construct()s $server_name array
2020-08-26 15:02:34 +02:00
Christoph M. Becker
b087bd2404
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Separate COM::__construct()s $server_name array
2020-08-26 15:01:22 +02:00
Christoph M. Becker
75ac3f1cba
Separate COM::__construct()s $server_name array
...
This may otherwise be modified.
2020-08-26 15:00:02 +02:00
Christoph M. Becker
fc4a6cda4b
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #64130 : COM obj parameters passed by reference are not updated
2020-08-26 14:55:34 +02:00
Christoph M. Becker
1ff981d7a6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #64130 : COM obj parameters passed by reference are not updated
2020-08-26 14:53:46 +02:00
Christoph M. Becker
5ff15e2651
Fix #64130 : COM obj parameters passed by reference are not updated
...
`ITypeInfo_GetIDsOfNames()` is supposed to fail with `E_NOTIMPL` for
out-of-process servers, thus we should not remove the already available
typeinfo of the object in this case.
We also properly free the `byref_vals`.
2020-08-26 14:50:04 +02:00
George Peter Banyard
1b2ec73c1d
Drop various unused macros/APIs
...
Also convert_libmagic_pattern() to return a zend_string*
Closes GH-6029
2020-08-26 12:59:43 +02:00
Nikita Popov
ebbe333ede
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix file name clash in test
2020-08-26 12:32:22 +02:00
Nikita Popov
358721bcf7
Fix file name clash in test
2020-08-26 12:32:06 +02:00
Nikita Popov
795ad1e354
Fix memory leak on unknown named param in iterator unpack
2020-08-26 12:19:17 +02:00
Nikita Popov
eb17f996fb
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Avoid socket path clash in test
2020-08-26 12:12:23 +02:00
Nikita Popov
0487bcfac7
Avoid socket path clash in test
2020-08-26 12:11:22 +02:00
Dmitry Stogov
083f5f2005
Improved JIT for FETCH_DIM_R/IS and ISSET_DIM_OBJ
2020-08-26 13:09:16 +03:00
Nikita Popov
1003ae2692
Fix passing of undef var to named arg
...
This needs to use the previously computed argument target.
2020-08-26 11:53:02 +02:00
Nikita Popov
492621f99e
Fix memory leak on unknown named param
2020-08-26 11:44:15 +02:00
Nikita Popov
d7d2b060e1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix memory leak when yielding from non-iterable
2020-08-26 11:32:56 +02:00
Nikita Popov
bf3e772361
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix memory leak when yielding from non-iterable
2020-08-26 11:32:31 +02:00
Nikita Popov
d179e34e42
Fix memory leak when yielding from non-iterable
2020-08-26 11:32:01 +02:00
Nikita Popov
1954aed745
Fix over-eager named params optimization
...
We can't relax a named param to a positional param if we encountered
any unknown parameters in the meantime.
2020-08-26 11:01:15 +02:00
Nikita Popov
f593019819
Prevent ResourceBundle double-construction
2020-08-26 10:25:15 +02:00
Nikita Popov
6b554251f7
Prevent double-construction of NumberFormatter
2020-08-26 10:25:09 +02:00
Nikita Popov
72eaf509d3
Prevent double-construction of IntlGregorianCalendar
2020-08-26 10:24:57 +02:00
Nikita Popov
f6e5cc3391
Prevent double-construction of IntlRuleBasedBreakIterator
2020-08-26 10:03:28 +02:00
Dmitry Stogov
d4383be6fa
Use guard to check if array is packed or hash
2020-08-26 02:34:31 +03:00
Dmitry Stogov
5948a6674a
Prevent negative array index access
2020-08-26 01:07:34 +03:00
Dmitry Stogov
145aba5c83
Merge branch 'jit_match'
...
* jit_match:
Support for CASE_STRICT
JIT for MATCH and CASE_STRICT instructions
2020-08-25 22:33:52 +03:00
Dmitry Stogov
e99954492e
Avoid priniting "array [long, string] of"
2020-08-25 21:38:23 +03:00
Nikita Popov
c2c90cfc65
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't enable --with-mm in CI
2020-08-25 20:26:17 +02:00
Nikita Popov
571f6a598f
Don't enable --with-mm in CI
...
Turns out this has a large negative effect on startup time,
making tests much slower.
2020-08-25 20:25:07 +02:00
Dmitry Stogov
e86b5c872d
Record information about packed arrays
2020-08-25 19:39:42 +03:00
Máté Kocsis
ea87d0480f
Promote warnings to exceptions in ext/pcre
...
Closes GH-6006
2020-08-25 18:09:50 +02:00
Dmitry Stogov
2369f48092
Infer information about packed/hash arrays and use it for JIT
2020-08-25 18:28:23 +03:00
Nikita Popov
647fb38d58
Ensure RuleBasedBreakIterator constructor throws on failure
...
Constructors must throw on failure indepdendent of the configured
intl error mode.
2020-08-25 15:28:58 +02:00
Máté Kocsis
6c8fb123d2
Promote warnings to exceptions in ext/simplexml
...
Closes GH-6011
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2020-08-25 15:15:58 +02:00
Dmitry Stogov
f77200f5c6
Fixed JIT failure on "$a = []; $a[1] += 2;"
2020-08-25 16:08:33 +03:00
Christoph M. Becker
7e5ed818a4
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Avoid double-free
2020-08-25 13:15:06 +02:00
Christoph M. Becker
923a14626c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Avoid double-free
2020-08-25 13:12:41 +02:00