Dmitry Stogov
a75cf0c7e1
JIT support for opcache restart
2020-07-08 18:14:11 +03:00
George Peter Banyard
06da048622
Use HashTable directly instead of zval
2020-07-08 16:25:49 +02:00
Dmitry Stogov
ad52e4cad9
Fixed tracing JIT support for $http_response_header
2020-07-08 16:33:46 +03:00
Dmitry Stogov
9e8a8e6ab9
Use information about recorded classes for speculative FETCH_OBJ optimization
2020-07-08 14:09:28 +03:00
Nikita Popov
0e71446e7a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #79787
2020-07-08 11:22:47 +02:00
Nikita Popov
77a8a709da
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #79787
2020-07-08 11:22:18 +02:00
XXiang
3d5de7d746
Fix bug #79787
...
Closes GH-5807.
2020-07-08 11:20:58 +02:00
Dmitry Stogov
fa5355ba08
Change zend_get_known_property_offset() into zend_get_known_property_info() and cleanup
2020-07-08 12:02:37 +03:00
Nikita Popov
22be60bb25
Add declared properties to LibXMLError
...
Partially addresses bug #79804 .
2020-07-08 10:41:46 +02:00
Nikita Popov
e6160e99d8
Report len as -1 instead of INT_MAX
...
Per docs it should be -1. And would be on 32-bit systems, but
not on 64-bit systems.
(cherry picked from commit 39111585a2 )
2020-07-08 10:38:11 +02:00
Dmitry Stogov
ab5f8f4baf
More accurate reference-counter inference (with support for ext/intl/tests/bug72241.phpt)
2020-07-07 19:11:27 +03:00
Nikita Popov
15c265b789
Revert "More accurate reference-counter inference"
...
This reverts commit b35255ad21 .
Temporarily revert this, because it causes a memory leak on the
ext/intl/tests/bug72241.phpt test case, because temporary arrays
are not handled correctly.
2020-07-07 16:53:00 +02:00
Nikita Popov
e45f7053cf
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79793
2020-07-07 16:33:06 +02:00
Nikita Popov
6259eff352
Handle dim_w undefined variable notice in JIT as well
2020-07-07 15:30:43 +02:00
Nikita Popov
0e6ec974fb
Check for undef variable exception in SEND_VAR JIT
...
Add a return value to zend_jit_undefined_op_helper(), so we can
check for exception based on the return value, instead of fetching
EG(exception).
2020-07-07 15:22:46 +02:00
Nikita Popov
cdc4ea2a5c
JIT support for undefined index/offset handling
2020-07-07 15:13:03 +02:00
Nikita Popov
302933daea
Remove no_separation flag
2020-07-07 09:30:24 +02:00
Nikita Popov
e93aca7167
Explicitly create references in UConverter callbacks
...
And don't allow separation.
2020-07-07 09:29:21 +02:00
Nikita Popov
dadb92ea35
Don't allow separation in array functions
...
The only case here that might be *somewhat* sensible is the userdata
argument of array_walk(), which could be used to keep persistent state
between callback invokations -- with the WTF moment that the final
result after the walk finishes will be unchanged. Nowdays, this is
much better achieved using a closure with a use-by-reference.
2020-07-07 09:15:43 +02:00
Nikita Popov
df8119d3e1
Don't allow separation in CallbackFilterIterator
...
As the name might suggest, this is a *filter* iterator. If you want
to have a *map* iterator, write one, or use a generator.
2020-07-07 09:04:20 +02:00
Nikita Popov
632766a561
Disallow separation in a number of callbacks
...
All of these clearly do not need separation support.
2020-07-07 09:02:24 +02:00
Nikita Popov
b406b3d624
Don't allow separation in callback filter
...
This causes some tests to fail. Those tests are specifically about
the callback not being able to modify the data though, so this is
clearly not supposed to be a supported use-case.
2020-07-07 08:57:05 +02:00
George Peter Banyard
c4a0ba8d6e
Refactor levenshtein()
...
Closes GH-5816
2020-07-07 00:41:10 +02:00
Máté Kocsis
91fbd12d57
Fix a few comments
2020-07-06 21:23:35 +02:00
Max Semenik
2b5de6f839
Remove proto comments from C files
...
Closes GH-5758
2020-07-06 21:13:34 +02:00
Nikita Popov
0280b83e11
Avoid some unnecessary uses of no_separation=0
...
For the rare cases where references are part of the API,
construct them explicitly. Otherwise do not allow separation.
2020-07-06 19:05:57 +02:00
Dmitry Stogov
ff3c40206c
More accurate reference-counter inference
2020-07-06 17:55:23 +03:00
Dmitry Stogov
b35255ad21
More accurate reference-counter inference
2020-07-06 15:53:28 +03:00
Tiffany
48eb635a0f
[skip-ci] Add README for ext/mysqli tests
...
Closes GH-5804
2020-07-06 14:35:53 +02:00
Máté Kocsis
b18b2c8fe5
Add string or object ZPP macros
...
Closes GH-5788
2020-07-06 12:42:02 +02:00
Nikita Popov
a4b253c40b
ReflectionMethod::invoke() object is not optional
2020-07-06 11:53:57 +02:00
Remi Collet
ad0d2e438f
display info about system used to build and its provider
2020-07-06 10:54:43 +02:00
Christoph M. Becker
fecea7b89c
Fix sapi_windows_vt100_support() arginfo
2020-07-06 10:48:10 +02:00
Jens de Nies
58f51f8c75
Added stubs for ext/oci8
...
Closes GH-5701
2020-07-04 10:56:48 +02:00
Nikita Popov
344c077400
Use zend_string_equals API in a couple places
2020-07-03 17:02:28 +02:00
Dmitry Stogov
2ecc597259
Removed already implemented TODO comment
2020-07-03 13:40:11 +03:00
Christoph M. Becker
62f05ac01f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix tests for x86 Windows
2020-07-03 10:39:00 +02:00
Christoph M. Becker
a58d865f65
Fix tests for x86 Windows
...
`st_dev` deliberately overflows on such systems, cf.
<http://svn.php.net/viewvc?view=revision&revision=350100 >.
2020-07-03 10:37:40 +02:00
Dmitry Stogov
ca159561db
Fixed IS_UNDEF handling
2020-07-03 10:52:03 +03:00
Christoph M. Becker
807d6c0418
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Skip test if SeCreateSymbolicLinkPrivilege is not given
2020-07-03 09:10:37 +02:00
Christoph M. Becker
1b961c0c42
Skip test if SeCreateSymbolicLinkPrivilege is not given
2020-07-03 09:08:59 +02:00
Dmitry Stogov
eee9a05015
Fixed IS_INDIRECT handling
2020-07-03 00:14:09 +03:00
Dmitry Stogov
fe1052b177
Better instruction selection
2020-07-02 23:41:15 +03:00
Christoph M. Becker
e2be50001b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable readlink_realpath_* tests on Windows
2020-07-02 18:31:43 +02:00
Christoph M. Becker
6f0b73345a
Enable readlink_realpath_* tests on Windows
...
We modify _basic1.phpt so it runs on Windows as well. The other test
cases hit the issue that `readlink()` fails normally for regular files,
but succeeds on Windows[1]. Therefore, we split these tests, but still
fix the skip reasons.
[1] <http://svn.php.net/viewvc?view=revision&revision=350097 >
2020-07-02 18:24:42 +02:00
Nikita Popov
16cb88f31a
Fix func info for get_class_methods()
2020-07-02 17:23:57 +02:00
Dmitry Stogov
f1536ebbb2
JMP optimization
2020-07-02 17:42:15 +03:00
Christoph M. Becker
1f12d9da5c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable most lstat_stat_* tests on Windows
2020-07-02 15:36:43 +02:00
Christoph M. Becker
1973ca21bd
Enable most lstat_stat_* tests on Windows
...
Most of these have been skipped on Windows for no good reason (`lstat`
is available there as of PHP 4). Several others would only fail,
because the `blksize` and `blocks` elements are always `-1` on Windows,
which can easily be fixed by using `%i` format specifiers instead of
`%d`.
2020-07-02 15:36:07 +02:00
Dmitry Stogov
fe9b5ce322
Load constant value only if necessary
2020-07-02 14:43:17 +03:00