]>
granicus.if.org Git - php/log
Dmitry Stogov [Wed, 7 Oct 2020 17:38:52 +0000 (20:38 +0300)]
Add more hints for register allocator
Christoph M. Becker [Wed, 7 Oct 2020 15:50:24 +0000 (17:50 +0200)]
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix #77040: tidyNode::isHtml() is completely broken
Christoph M. Becker [Wed, 7 Oct 2020 15:47:40 +0000 (17:47 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #77040: tidyNode::isHtml() is completely broken
Christoph M. Becker [Wed, 7 Oct 2020 10:45:43 +0000 (12:45 +0200)]
Fix #77040: tidyNode::isHtml() is completely broken
The documentation of `tidyNode::isHtml()` states that this method
"checks if a node is part of a HTML document". That is, of course,
nonsense, since a tidyNode is "an HTML node in an HTML file, as
detected by tidy."
What this method is actually supposed to do is to check whether a node
is an element (unless it is the root element). This has been broken by
commit
d8eeb8e [1], which assumed that `enum TidyNodeType` would
represent flags of a bitmask, what it does not.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=
d8eeb8e28673236bca3f066ded75037a5bdf6378 >
Closes GH-6290.
Remi Collet [Wed, 7 Oct 2020 14:30:18 +0000 (16:30 +0200)]
don't display default value for variadic
Dmitry Stogov [Wed, 7 Oct 2020 14:06:53 +0000 (17:06 +0300)]
Fixed incorrect behavior of observer API.
ZEND_HANDLE_EXCEPTION might call zend_observer_fcall_end() even if exception is cought by function. The fix moved zend_observer_fcall_end() into a right place and remove OBSERVER sepecialization for ZEND_HANDLE_EXCEPTION handler.
Nikita Popov [Wed, 7 Oct 2020 13:03:56 +0000 (15:03 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed bug #80194
Nikita Popov [Wed, 7 Oct 2020 13:03:12 +0000 (15:03 +0200)]
Fixed bug #80194
We should strip NOPs from unreachable_free blocks as well, to make
sure that the free really is the first op.
Christoph M. Becker [Wed, 7 Oct 2020 12:57:28 +0000 (14:57 +0200)]
Fix test
The upper limit is different for 32bit and 64bit, but we are testing
the lower limit only, so can use a placeholder.
Dmitry Stogov [Wed, 7 Oct 2020 12:23:17 +0000 (15:23 +0300)]
Optimize out MAY_BE_LONG +/- 0 and MAY_BE_DOUBLE +/- 0.0
Christoph M. Becker [Wed, 7 Oct 2020 11:28:22 +0000 (13:28 +0200)]
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix #80185: jdtounix() fails after 2037
Christoph M. Becker [Wed, 7 Oct 2020 11:24:55 +0000 (13:24 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #80185: jdtounix() fails after 2037
Christoph M. Becker [Wed, 7 Oct 2020 08:38:30 +0000 (10:38 +0200)]
Fix #80185: jdtounix() fails after 2037
There is no such thing as the "end of the unix epoch", and if it was,
it would certainly not be 2037-10-11T02:00:00. There is, however,
potential integer overflow which we need to avoid.
Closes GH-6288.
Nikita Popov [Tue, 6 Oct 2020 12:34:03 +0000 (14:34 +0200)]
Update ext/ffi parameter names
Closes GH-6282.
Nikita Popov [Tue, 6 Oct 2020 12:58:45 +0000 (14:58 +0200)]
Update ext/spl parameter names
Closes GH-6284.
Nikita Popov [Wed, 7 Oct 2020 10:13:52 +0000 (12:13 +0200)]
Avoid namespaced class symbol clashes in gen_stub
Add the namespace prefix (using underscores) to both the arginfo
name and the method declaration name.
Nikita Popov [Wed, 7 Oct 2020 09:34:14 +0000 (11:34 +0200)]
Support "static" type in gen_stub
Nikita Popov [Tue, 6 Oct 2020 12:49:04 +0000 (14:49 +0200)]
Update ext/tidy parameter names
Closes GH-6283.
Dharman [Tue, 15 Sep 2020 17:42:38 +0000 (18:42 +0100)]
Improve parameter names in ext/sqlite3
Closes GH-6264
Nikita Popov [Tue, 6 Oct 2020 14:34:02 +0000 (16:34 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix bug #80126
Nikita Popov [Tue, 6 Oct 2020 14:30:58 +0000 (16:30 +0200)]
Fix bug #80126
When performing an unlinked instanceof, we also need to consider
interfaces of parent classes, as they may not have been inherited
yet.
Dmitry Stogov [Tue, 6 Oct 2020 12:50:37 +0000 (15:50 +0300)]
Eliminate check
Nikita Popov [Tue, 6 Oct 2020 11:07:21 +0000 (13:07 +0200)]
Make $use_less_memory a boolean parameter
Nikita Popov [Tue, 6 Oct 2020 11:06:15 +0000 (13:06 +0200)]
Update ext/bz2 parameter names
Closes GH-6280.
Nikita Popov [Tue, 6 Oct 2020 09:23:13 +0000 (11:23 +0200)]
Update ext/pcntl parameter names
Closes GH-6278.
Dmitry Stogov [Tue, 6 Oct 2020 10:32:55 +0000 (13:32 +0300)]
Optimize out double memory load
Nikita Popov [Mon, 5 Oct 2020 14:53:13 +0000 (16:53 +0200)]
Update ext/sockets parameter names
Also change $max_length to $length in a number of filesystem APIs,
where our usage was inconsistent.
Closes GH-6276.
Nikita Popov [Tue, 6 Oct 2020 08:11:36 +0000 (10:11 +0200)]
Update ext/calendar parameter names
Closes GH-6277.
Nikita Popov [Tue, 6 Oct 2020 08:20:27 +0000 (10:20 +0200)]
Fixed bug #80190
Nikita Popov [Mon, 5 Oct 2020 14:34:03 +0000 (16:34 +0200)]
Update ext/posix parameter names
Closes GH-6275.
Dik Takken [Thu, 1 Oct 2020 18:55:36 +0000 (20:55 +0200)]
Review parameter names in ext/xmlreader
Closes GH-6255.
Christoph M. Becker [Sat, 3 Oct 2020 11:39:37 +0000 (13:39 +0200)]
Don't separate array parameter
Closes GH-6243.
Sammy Kaye Powers [Fri, 2 Oct 2020 22:19:07 +0000 (15:19 -0700)]
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
Dmitry Stogov [Mon, 5 Oct 2020 19:33:45 +0000 (22:33 +0300)]
Use range inference to eliminate useless comparisons
Dmitry Stogov [Mon, 5 Oct 2020 19:33:18 +0000 (22:33 +0300)]
Fix trace range inference
Christoph M. Becker [Mon, 5 Oct 2020 15:48:44 +0000 (17:48 +0200)]
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix #46050: odbc_next_result corrupts prepared resource
Christoph M. Becker [Mon, 5 Oct 2020 15:47:21 +0000 (17:47 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #46050: odbc_next_result corrupts prepared resource
Christoph M. Becker [Mon, 5 Oct 2020 15:46:37 +0000 (17:46 +0200)]
Fix #46050: odbc_next_result corrupts prepared resource
When resetting the result's values, we also have to reset its numcols.
Nikita Popov [Mon, 5 Oct 2020 13:47:26 +0000 (15:47 +0200)]
Add @generate-legacy-arginfo tag
Nikita Popov [Mon, 5 Oct 2020 11:06:59 +0000 (13:06 +0200)]
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.
Remi Collet [Mon, 5 Oct 2020 13:20:16 +0000 (15:20 +0200)]
Improve gen_stub.php - drop --legacy option, generate file is exists - add --help option - add debug "Saved ..." message
Nikita Popov [Mon, 5 Oct 2020 13:23:31 +0000 (15:23 +0200)]
Fix bug #80184
Máté Kocsis [Thu, 1 Oct 2020 21:44:33 +0000 (23:44 +0200)]
Review parameter names in ext/pspell
Closes GH-6257
Máté Kocsis [Thu, 1 Oct 2020 08:34:18 +0000 (10:34 +0200)]
Review parameter names in ext/zlib
Closes GH-6250
Nikita Popov [Mon, 5 Oct 2020 10:31:48 +0000 (12:31 +0200)]
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.
Nikita Popov [Mon, 5 Oct 2020 08:48:04 +0000 (10:48 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix -Wimplicit-function-declaration in configure
Nikita Popov [Mon, 5 Oct 2020 08:46:46 +0000 (10:46 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix -Wimplicit-function-declaration in configure
Nikita Popov [Mon, 5 Oct 2020 08:43:58 +0000 (10:43 +0200)]
Fix -Wimplicit-function-declaration in configure
As this is an error with xcode 12, see bug #80171.
Remi Collet [Fri, 2 Oct 2020 15:34:07 +0000 (17:34 +0200)]
add note about is_callable change
Christoph M. Becker [Wed, 23 Sep 2020 13:34:17 +0000 (15:34 +0200)]
Fix #64060: lstat_stat_variation7.phpt fails on certain file systems
Closes GH-6194.
Nikita Popov [Fri, 2 Oct 2020 15:53:45 +0000 (17:53 +0200)]
Declare FFI\CType in namespace
Now that it is supported, declare that CType is part of the FFI
namespace, not a freestanding class.
George Peter Banyard [Thu, 1 Oct 2020 18:02:49 +0000 (19:02 +0100)]
Use a subrountine to check for valid OID strings
Closes 6260
Nikita Popov [Fri, 2 Oct 2020 15:21:16 +0000 (17:21 +0200)]
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.
Nikita Popov [Fri, 2 Oct 2020 15:07:46 +0000 (17:07 +0200)]
Add partial namespace support to gen_stub
Nikita Popov [Fri, 2 Oct 2020 12:40:11 +0000 (14:40 +0200)]
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.
Christoph M. Becker [Fri, 2 Oct 2020 13:10:19 +0000 (15:10 +0200)]
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix out-of-bounds write
Christoph M. Becker [Fri, 2 Oct 2020 13:04:38 +0000 (15:04 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix out-of-bounds write
K.Kosako [Mon, 21 Sep 2020 03:58:29 +0000 (12:58 +0900)]
Fix out-of-bounds write
Fixes CVE-2020-26159.
Backported from <https://github.com/kkos/oniguruma/commit/
cbe9f8bd9cfc6c3c87a60fbae58fa1a85db59df0 >.
Máté Kocsis [Thu, 1 Oct 2020 18:12:22 +0000 (20:12 +0200)]
Review parameter names in ext/ftp
Closes GH-6254
Nikita Popov [Fri, 2 Oct 2020 10:08:00 +0000 (12:08 +0200)]
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.
Máté Kocsis [Thu, 1 Oct 2020 21:20:09 +0000 (23:20 +0200)]
Review parameter names in ext/exif
Closes GH-6256
Máté Kocsis [Thu, 1 Oct 2020 21:52:07 +0000 (23:52 +0200)]
Review parameter names in ext/enchant
Closes GH-6258
Máté Kocsis [Thu, 1 Oct 2020 22:20:45 +0000 (00:20 +0200)]
Review parameter names in ext/pcre
Closes GH-6259
Dmitry Stogov [Fri, 2 Oct 2020 09:06:02 +0000 (12:06 +0300)]
Copy optimization for (BINARY_OP/ACCIGN + SEND_VAL)
Dmitry Stogov [Fri, 2 Oct 2020 08:01:35 +0000 (11:01 +0300)]
Fixed JIT for BINARY_OP with expected overflow
Dmitry Stogov [Fri, 2 Oct 2020 07:48:45 +0000 (10:48 +0300)]
Fixed possible incorrect register usage
Nikita Popov [Fri, 2 Oct 2020 07:39:15 +0000 (09:39 +0200)]
Add UPGRADING note for substr() behavior
[ci skip]
Matteo Beccati [Fri, 2 Oct 2020 07:34:32 +0000 (09:34 +0200)]
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
Matteo Beccati [Fri, 2 Oct 2020 07:33:50 +0000 (09:33 +0200)]
[ci skip] moved soap fix to 7.4.11
When committing I didn't notice that version had been just bumped
Matteo Beccati [Fri, 2 Oct 2020 07:33:20 +0000 (09:33 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
[ci skip] moved soap fix to 7.3.23
Matteo Beccati [Fri, 2 Oct 2020 07:32:52 +0000 (09:32 +0200)]
[ci skip] moved soap fix to 7.3.23
When committing I didn't notice that version had been just bumped
Máté Kocsis [Thu, 1 Oct 2020 08:09:27 +0000 (10:09 +0200)]
Review parameter names in ext/sysvshm
Closes GH-6249
Máté Kocsis [Thu, 1 Oct 2020 08:00:43 +0000 (10:00 +0200)]
Review parameter names in ext/sysvsem
Closes GH-6248
Máté Kocsis [Thu, 1 Oct 2020 07:53:57 +0000 (09:53 +0200)]
Review parameter names in ext/sysvmsg
Closes GH-6247
Dmitry Stogov [Thu, 1 Oct 2020 19:39:58 +0000 (22:39 +0300)]
Clenup BINARY_OP + SEND_VAL optimization
Nikita Popov [Thu, 1 Oct 2020 15:10:56 +0000 (17:10 +0200)]
Add test instantiating all objects
Intended to find issues in opaque object destructors.
Closes GH-6251.
Nikita Popov [Thu, 1 Oct 2020 15:05:23 +0000 (17:05 +0200)]
Fixed bug #80121
The issue affected both CurlHandle and CurlMultiHandle. I'll have
to double check this for other resource->object conversions as well.
Nikita Popov [Thu, 1 Oct 2020 14:41:51 +0000 (16:41 +0200)]
Fix out of bounds offset handling with empty needle
For strrpos with positive out of bounds offsets was not detected.
Christian Schneider [Wed, 30 Sep 2020 14:52:04 +0000 (16:52 +0200)]
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.
Nikita Popov [Thu, 1 Oct 2020 14:18:23 +0000 (16:18 +0200)]
Support GC for AppendIterator
This also requires adding GC support for ArrayIterator internal
iterators.
Nikita Popov [Thu, 1 Oct 2020 14:12:56 +0000 (16:12 +0200)]
Fix bug #65387
Add GC support to dual_it. This is still missing AppendIterator
support.
Dik Takken [Thu, 24 Sep 2020 10:06:06 +0000 (12:06 +0200)]
Improve parameter names in ext/xmlwriter
Closes GH-6202.
Dmitry Stogov [Thu, 1 Oct 2020 10:19:40 +0000 (13:19 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Backport of a partial fix for bug Bug #76982 (memory leak declaring closure in included file).
Dmitry Stogov [Thu, 1 Oct 2020 10:19:27 +0000 (13:19 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Backport of a partial fix for bug Bug #76982 (memory leak declaring closure in included file).
Dmitry Stogov [Thu, 1 Oct 2020 10:18:21 +0000 (13:18 +0300)]
Backport of a partial fix for bug Bug #76982 (memory leak declaring closure in included file).
Côme Chilliet [Thu, 1 Oct 2020 08:11:43 +0000 (10:11 +0200)]
Remove deprecated functions from php-ldap
Remove ldap_control_paged_result and ldap_control_paged_result_response
which have been deprecated in PHP 7.4, in favor of new $controls
parameters for ldap request functions.
Máté Kocsis [Tue, 29 Sep 2020 20:38:27 +0000 (22:38 +0200)]
Review parameter names in ext/gettext
Closes GH-6241
Máté Kocsis [Tue, 29 Sep 2020 19:55:39 +0000 (21:55 +0200)]
Review parameter names in ext/shmop
Closes GH-6238
Máté Kocsis [Tue, 29 Sep 2020 20:21:06 +0000 (22:21 +0200)]
Review parameter names in ext/session
Closes GH-6239
Dmitry Stogov [Wed, 30 Sep 2020 09:21:15 +0000 (12:21 +0300)]
Give preference to ENTER->RECURSIVE_CALL trace over ENTER->RETURN
Máté Kocsis [Tue, 29 Sep 2020 20:32:23 +0000 (22:32 +0200)]
Review parameter names in ext/readline
Closes GH-6240
Máté Kocsis [Tue, 29 Sep 2020 19:41:37 +0000 (21:41 +0200)]
Review parameter names in ext/opcache
Closes GH-6237
Máté Kocsis [Tue, 29 Sep 2020 19:35:58 +0000 (21:35 +0200)]
Review parameter names in ext/json
Closes GH-6236
Dmitry Stogov [Wed, 30 Sep 2020 08:00:50 +0000 (11:00 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed hex char parsing
Dmitry Stogov [Wed, 30 Sep 2020 08:00:25 +0000 (11:00 +0300)]
Fixed hex char parsing
Remi Collet [Wed, 30 Sep 2020 05:42:58 +0000 (07:42 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remi Collet [Wed, 30 Sep 2020 05:42:28 +0000 (07:42 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
bump version to 7.2.35-dev
Remi Collet [Wed, 30 Sep 2020 05:42:14 +0000 (07:42 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
bump version to 7.2.35-dev
Remi Collet [Wed, 30 Sep 2020 05:38:16 +0000 (07:38 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
bump version to 7.2.35-dev
Remi Collet [Wed, 30 Sep 2020 05:37:59 +0000 (07:37 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
bump version to 7.2.35-dev