Christoph M. Becker
3eae7aa77e
Don't separate array parameter
...
Closes GH-6243.
2020-10-05 23:11:36 +02:00
Sammy Kaye Powers
a9e96a378d
Expose php_during_module_startup() and php_during_module_shutdown()
...
This can be handy when trying to determine if it is safe to access request globals amongst other things.
Closes GH-6265
2020-10-05 14:01:43 -07:00
Dmitry Stogov
31f54586b5
Use range inference to eliminate useless comparisons
2020-10-05 22:33:45 +03:00
Dmitry Stogov
90b80c8278
Fix trace range inference
2020-10-05 22:33:18 +03:00
Christoph M. Becker
9fe5479eeb
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #46050 : odbc_next_result corrupts prepared resource
2020-10-05 17:48:44 +02:00
Christoph M. Becker
c6e7969f05
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #46050 : odbc_next_result corrupts prepared resource
2020-10-05 17:47:35 +02:00
Christoph M. Becker
69ba81d183
Fix #46050 : odbc_next_result corrupts prepared resource
...
When resetting the result's values, we also have to reset its numcols.
2020-10-05 17:46:37 +02:00
Nikita Popov
47ef51cb45
Add @generate-legacy-arginfo tag
2020-10-05 16:33:54 +02:00
Nikita Popov
0f3698173e
Update PDO parameter names
...
Followup to previous changes:
* Use camel case, as PDO uses a camel case OO API.
* Use &$var instead of &$bind_var or &$param.
* Use $column instead of $index. We have cases (both inside PDO
and in other DB exts) where columns can also be represented as
strings, so $column is the safer generic name.
Closes GH-6272.
2020-10-05 15:51:36 +02:00
Remi Collet
dba6715598
Improve gen_stub.php - drop --legacy option, generate file is exists - add --help option - add debug "Saved ..." message
2020-10-05 15:41:08 +02:00
Nikita Popov
6ea870f5fb
Fix bug #80184
2020-10-05 15:24:51 +02:00
Máté Kocsis
4982964224
Review parameter names in ext/pspell
...
Closes GH-6257
2020-10-05 15:22:15 +02:00
Máté Kocsis
e9c707298b
Review parameter names in ext/zlib
...
Closes GH-6250
2020-10-05 15:20:27 +02:00
Nikita Popov
faea5ab837
Throw from XmlReader::expand() if DOM extension missing
...
Otherwise it is hard to uphold the arginfo contract for this
function -- we cannot simply mirror the zpp call, as the class
entry it is based on does not exist.
2020-10-05 12:31:48 +02:00
Nikita Popov
d3cf597328
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix -Wimplicit-function-declaration in configure
2020-10-05 10:48:04 +02:00
Nikita Popov
9ad5381a2f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix -Wimplicit-function-declaration in configure
2020-10-05 10:46:46 +02:00
Nikita Popov
aa405b7da2
Fix -Wimplicit-function-declaration in configure
...
As this is an error with xcode 12, see bug #80171 .
2020-10-05 10:43:58 +02:00
Remi Collet
107962208a
add note about is_callable change
2020-10-03 07:27:08 +02:00
Christoph M. Becker
54435c9b43
Fix #64060 : lstat_stat_variation7.phpt fails on certain file systems
...
Closes GH-6194.
2020-10-02 18:54:10 +02:00
Nikita Popov
2d234d111a
Declare FFI\CType in namespace
...
Now that it is supported, declare that CType is part of the FFI
namespace, not a freestanding class.
2020-10-02 17:54:34 +02:00
George Peter Banyard
e0b17ba219
Use a subrountine to check for valid OID strings
...
Closes 6260
2020-10-02 16:32:06 +01:00
Nikita Popov
dfa6d1c22e
Support specifying linkage for generate-function-entries
...
The linkage can be specified as the argument to the
@generate-function-entries tag. Test this on zend_test.
2020-10-02 17:21:16 +02:00
Nikita Popov
924ac2b98a
Add partial namespace support to gen_stub
2020-10-02 17:08:50 +02:00
Nikita Popov
2e32a09541
Add gen_stub --legacy flag
...
This flag generates an arginfo file that discards all type and
default value information. As such, it is compatible with old
(and very old) PHP versions.
Intended for use by extensions to generate one arginfo file for
PHP 8 and one for older versions.
2020-10-02 15:14:02 +02:00
Christoph M. Becker
c137f4b6e4
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix out-of-bounds write
2020-10-02 15:10:19 +02:00
Christoph M. Becker
c00816a38f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix out-of-bounds write
2020-10-02 15:04:38 +02:00
K.Kosako
bf6873a18e
Fix out-of-bounds write
...
Fixes CVE-2020-26159.
Backported from <https://github.com/kkos/oniguruma/commit/cbe9f8bd9cfc6c3c87a60fbae58fa1a85db59df0 >.
2020-10-02 15:02:35 +02:00
Máté Kocsis
c9c7820f74
Review parameter names in ext/ftp
...
Closes GH-6254
2020-10-02 14:26:39 +02:00
Nikita Popov
ae77c7b057
Return correct result code for division by zero
...
Turns out we do need to return FAILURE here on div by zero
exception. Use a three-way return value from div_function_base.
Fixes oss-fuzz #25975 .
2020-10-02 12:09:14 +02:00
Máté Kocsis
4f42519571
Review parameter names in ext/exif
...
Closes GH-6256
2020-10-02 11:56:16 +02:00
Máté Kocsis
811f6dd8e5
Review parameter names in ext/enchant
...
Closes GH-6258
2020-10-02 11:55:46 +02:00
Máté Kocsis
6b00196e04
Review parameter names in ext/pcre
...
Closes GH-6259
2020-10-02 11:55:23 +02:00
Dmitry Stogov
109fb3e57d
Copy optimization for (BINARY_OP/ACCIGN + SEND_VAL)
2020-10-02 12:06:02 +03:00
Dmitry Stogov
b0e77066bd
Fixed JIT for BINARY_OP with expected overflow
2020-10-02 11:01:35 +03:00
Dmitry Stogov
fbf153a210
Fixed possible incorrect register usage
2020-10-02 10:48:45 +03:00
Nikita Popov
d7243ce291
Add UPGRADING note for substr() behavior
...
[ci skip]
2020-10-02 09:41:05 +02:00
Matteo Beccati
902f63486e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
[ci skip] moved soap fix to 7.4.11
[ci skip] moved soap fix to 7.3.23
2020-10-02 09:34:32 +02:00
Matteo Beccati
7c48479f62
[ci skip] moved soap fix to 7.4.11
...
When committing I didn't notice that version had been just bumped
2020-10-02 09:33:50 +02:00
Matteo Beccati
233b66c3d2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
[ci skip] moved soap fix to 7.3.23
2020-10-02 09:33:20 +02:00
Matteo Beccati
1666cfcca0
[ci skip] moved soap fix to 7.3.23
...
When committing I didn't notice that version had been just bumped
2020-10-02 09:32:52 +02:00
Máté Kocsis
4a30c76845
Review parameter names in ext/sysvshm
...
Closes GH-6249
2020-10-01 23:09:56 +02:00
Máté Kocsis
85949d749b
Review parameter names in ext/sysvsem
...
Closes GH-6248
2020-10-01 23:09:31 +02:00
Máté Kocsis
ceef8ad490
Review parameter names in ext/sysvmsg
...
Closes GH-6247
2020-10-01 23:08:20 +02:00
Dmitry Stogov
29dd1240f3
Clenup BINARY_OP + SEND_VAL optimization
2020-10-01 22:39:58 +03:00
Nikita Popov
62c6d6952e
Add test instantiating all objects
...
Intended to find issues in opaque object destructors.
Closes GH-6251.
2020-10-01 18:37:24 +02:00
Nikita Popov
d96219c185
Fixed bug #80121
...
The issue affected both CurlHandle and CurlMultiHandle. I'll have
to double check this for other resource->object conversions as well.
2020-10-01 17:05:23 +02:00
Nikita Popov
f82414e935
Fix out of bounds offset handling with empty needle
...
For strrpos with positive out of bounds offsets was not detected.
2020-10-01 16:41:51 +02:00
Christian Schneider
7af24eaedd
Allow empty needle in grapheme_str*pos, grapheme_str*str
...
For consistency with str* and mb_str* functions.
Closes GH-6245.
Closes php/php-tasks#20 .
2020-10-01 16:33:58 +02:00
Nikita Popov
2c1b5c4365
Support GC for AppendIterator
...
This also requires adding GC support for ArrayIterator internal
iterators.
2020-10-01 16:18:23 +02:00
Nikita Popov
afab9eb48c
Fix bug #65387
...
Add GC support to dual_it. This is still missing AppendIterator
support.
2020-10-01 16:12:56 +02:00