]>
granicus.if.org Git - php/log
Dmitry Stogov [Thu, 8 Oct 2020 16:14:38 +0000 (19:14 +0300)]
Eliminate dead type stores
Dmitry Stogov [Thu, 8 Oct 2020 09:14:40 +0000 (12:14 +0300)]
Cleanup (expand and remove simple macros)
Nikita Popov [Thu, 8 Oct 2020 10:08:59 +0000 (12:08 +0200)]
Update ext/imap parameter names
Closes GH-6299.
Nikita Popov [Thu, 8 Oct 2020 09:08:03 +0000 (11:08 +0200)]
Update ext/snmp parameter names
Closes GH-6298.
Nikita Popov [Thu, 8 Oct 2020 15:04:48 +0000 (17:04 +0200)]
Make compression_type nullable in a few more places
Missed that this was also used elsewhere...
Nikita Popov [Tue, 6 Oct 2020 13:29:44 +0000 (15:29 +0200)]
Update ext/soap parameter names
Closes GH-6300.
Derick Rethans [Thu, 8 Oct 2020 14:19:48 +0000 (15:19 +0100)]
Updated to version 2020.2 (2020b)
Derick Rethans [Thu, 8 Oct 2020 14:19:48 +0000 (15:19 +0100)]
Empty merge
Derick Rethans [Thu, 8 Oct 2020 14:19:47 +0000 (15:19 +0100)]
Updated to version 2020.2 (2020b)
Derick Rethans [Thu, 8 Oct 2020 14:19:47 +0000 (15:19 +0100)]
Empty merge
Derick Rethans [Thu, 8 Oct 2020 14:19:46 +0000 (15:19 +0100)]
Updated to version 2020.2 (2020b)
Derick Rethans [Thu, 8 Oct 2020 14:05:40 +0000 (15:05 +0100)]
Updated to version 2020.2 (2020b)
Derick Rethans [Thu, 8 Oct 2020 14:05:40 +0000 (15:05 +0100)]
Empty merge
Derick Rethans [Thu, 8 Oct 2020 14:05:39 +0000 (15:05 +0100)]
Updated to version 2020.2 (2020b)
Derick Rethans [Thu, 8 Oct 2020 14:05:39 +0000 (15:05 +0100)]
Empty merge
Derick Rethans [Thu, 8 Oct 2020 14:05:38 +0000 (15:05 +0100)]
Updated to version 2020.2 (2020b)
Nikita Popov [Thu, 8 Oct 2020 11:12:22 +0000 (13:12 +0200)]
Make Phar $format and $compression arguments nullable
Rather than using Greg's birthday, use null to indicate that the
existing format/compression should be retained. For the format
simply using zero would be sufficient, but as the documentation
explicitly says that NULL is allowed here, we may as well make
that the truth.
Nikita Popov [Thu, 8 Oct 2020 10:35:47 +0000 (12:35 +0200)]
Accept bool in SoapClient::__doRequest
$one_way is a boolean argument.
Christoph M. Becker [Thu, 8 Oct 2020 10:32:30 +0000 (12:32 +0200)]
Fix imap test expectation which is still too strict for Windows
Christoph M. Becker [Thu, 8 Oct 2020 10:11:28 +0000 (12:11 +0200)]
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix too strict imap test expectations
Christoph M. Becker [Thu, 8 Oct 2020 10:08:35 +0000 (12:08 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix too strict imap test expectations
Christoph M. Becker [Thu, 8 Oct 2020 10:04:02 +0000 (12:04 +0200)]
Fix too strict imap test expectations
Christoph M. Becker [Thu, 8 Oct 2020 09:43:22 +0000 (11:43 +0200)]
Fix potential mail related segfault on Windows
`rpath` may be `NULL` here, in which case we must not access its
members.
Christoph M. Becker [Thu, 8 Oct 2020 09:04:29 +0000 (11:04 +0200)]
Update ext/com_dotnet parameter names
Closes GH-6296.
Nikita Popov [Thu, 8 Oct 2020 09:11:51 +0000 (11:11 +0200)]
Accept bool in snmp_set_(quick|enum)_print()
The integer parameter here is actually a boolean.
snmp_set_quick_print() already documented it as such, and
snmp_get_quick_print() was already returning a boolean.
Nikita Popov [Wed, 7 Oct 2020 15:55:46 +0000 (17:55 +0200)]
Update ext/xsl parameter names
Additionally normalize to using $namespace rather than $uri for
namespace parameters, including in XMLReader and XMLWriter. I went
with that one as it is currently used by DOM, SimpleXML and XSL --
and our DOM parameter names follow the DOM specification.
Closes GH-6295.
Nikita Popov [Thu, 8 Oct 2020 08:01:23 +0000 (10:01 +0200)]
Update ext/xml parameter names
Closes GH-6297.
Nikita Popov [Wed, 7 Oct 2020 13:14:41 +0000 (15:14 +0200)]
Update ext/dba parameter names
Closes GH-6292.
Dmitry Stogov [Wed, 7 Oct 2020 23:04:38 +0000 (02:04 +0300)]
Change calling convention of zval_update_constant[_ex]() to fastcall.
Dmitry Stogov [Wed, 7 Oct 2020 21:52:30 +0000 (00:52 +0300)]
Pass arguments to cdecl functions through preallocated stack slots
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