]> granicus.if.org Git - php/log
php
4 years agoAdd system ID entropy API
Sammy Kaye Powers [Thu, 16 Jul 2020 23:31:10 +0000 (16:31 -0700)]
Add system ID entropy API

The `zend_system_id` is a (true global) system ID that fingerprints a process state. When extensions add engine hooks during MINIT/startup, entropy is added the system ID for each hook. This allows extensions to identify that changes have been made to the engine since the last PHP process restart.

Closes GH-5871

4 years agoFix IMAP tests
George Peter Banyard [Fri, 18 Sep 2020 13:34:37 +0000 (15:34 +0200)]
Fix IMAP tests

Drop various ZPP checks and make them PASS
Add CONFLICT file as the tests all hit the same mailbox

4 years agoSet-up IMAP in Azure
George Peter Banyard [Thu, 17 Sep 2020 15:22:01 +0000 (17:22 +0200)]
Set-up IMAP in Azure

Closes GH-6162

4 years agoFix some tests for libmysql
Nikita Popov [Thu, 17 Sep 2020 13:55:44 +0000 (15:55 +0200)]
Fix some tests for libmysql

4 years agoDrop skipifemb.inc
Nikita Popov [Fri, 18 Sep 2020 13:49:35 +0000 (15:49 +0200)]
Drop skipifemb.inc

And drop the last remaining uses of it.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 18 Sep 2020 13:30:13 +0000 (15:30 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #78179: mysqli/mysqlnd transaction extensions

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 18 Sep 2020 13:30:06 +0000 (15:30 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #78179: mysqli/mysqlnd transaction extensions

4 years agoFix #78179: mysqli/mysqlnd transaction extensions
Daniel Black [Tue, 21 Jul 2020 06:23:14 +0000 (16:23 +1000)]
Fix #78179: mysqli/mysqlnd transaction extensions

MariaDB versioning created a mess with regarding testing
features based on version. We sidestep the problem here
by assuming the extensions are present, and if a syntax
error occurs with a SQL mode TRANS_START_READ_WRITE |
TRANS_START_READ_ONLY enabled, then output the same
warning as before.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 18 Sep 2020 13:26:04 +0000 (15:26 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Support NO_BACKSLASH_ESCAPES with newer libmysqlclient

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 18 Sep 2020 13:25:35 +0000 (15:25 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Support NO_BACKSLASH_ESCAPES with newer libmysqlclient

4 years agoSupport NO_BACKSLASH_ESCAPES with newer libmysqlclient
Nikita Popov [Fri, 18 Sep 2020 08:29:28 +0000 (10:29 +0200)]
Support NO_BACKSLASH_ESCAPES with newer libmysqlclient

Requires the use of mysql_real_escape_string_quote().

4 years agomysqli_set_charset now throws an mysqli_sql_exception when incorrect charset is provided
Dharman [Wed, 16 Sep 2020 13:20:03 +0000 (14:20 +0100)]
mysqli_set_charset now throws an mysqli_sql_exception when incorrect charset is provided

Closes GH-6142.

4 years agoAssert that all switch cases are covered
Nikita Popov [Fri, 18 Sep 2020 10:25:29 +0000 (12:25 +0200)]
Assert that all switch cases are covered

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 18 Sep 2020 12:50:11 +0000 (14:50 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Use MyISAM engine for new test

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 18 Sep 2020 12:50:02 +0000 (14:50 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Use MyISAM engine for new test

4 years agoUse MyISAM engine for new test
Nikita Popov [Fri, 18 Sep 2020 12:26:34 +0000 (14:26 +0200)]
Use MyISAM engine for new test

Travis on 7.3 is showing this error:

> The size of BLOB/TEXT data inserted in one transaction is greater
> than 10% of redo log size. Increase the redo log size using
> innodb_log_file_size.

Force MyISAM engine to avoid this.

4 years agoRun tidy
Nikita Popov [Fri, 18 Sep 2020 12:28:32 +0000 (14:28 +0200)]
Run tidy

This should fix most of the remaining issues with tabs and spaces
being mixed in tests.

4 years agoApply tidy to SKIPIF and CLEAN section as well
Nikita Popov [Fri, 18 Sep 2020 10:17:07 +0000 (12:17 +0200)]
Apply tidy to SKIPIF and CLEAN section as well

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 18 Sep 2020 10:59:10 +0000 (12:59 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix bug #80107: Handling of large compressed packets
  Bug #80107 Add test for mysqli_query() fails for ~16 MB long query when compression is enabled

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 18 Sep 2020 10:56:11 +0000 (12:56 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix bug #80107: Handling of large compressed packets
  Bug #80107 Add test for mysqli_query() fails for ~16 MB long query when compression is enabled

4 years agoFix bug #80107: Handling of large compressed packets
Nikita Popov [Wed, 16 Sep 2020 14:18:29 +0000 (16:18 +0200)]
Fix bug #80107: Handling of large compressed packets

There's two layers of packet splitting going on. First, packets
need to be split into having a payload of exactly 2^24-1 bytes or
being the last packet. If the split packet has size between 2^24-5
and 2^24-1 bytes, the compressed packets also needs to be split,
though the choice of split doesn't matter here. I'm splitting off
the first 8192 bytes, as that's what I observe libmysqlclient to be
doing.

4 years agoBug #80107 Add test for mysqli_query() fails for ~16 MB long query when compression...
Máté Kocsis [Tue, 15 Sep 2020 17:14:57 +0000 (19:14 +0200)]
Bug #80107 Add test for mysqli_query() fails for ~16 MB long query when compression is enabled

4 years agoCleanup observer API and add JIT support
Dmitry Stogov [Fri, 18 Sep 2020 09:55:58 +0000 (12:55 +0300)]
Cleanup observer API and add JIT support

4 years agoFix UNKNOWN default values in ext/pdo_pgsql
Máté Kocsis [Fri, 18 Sep 2020 08:31:48 +0000 (10:31 +0200)]
Fix UNKNOWN default values in ext/pdo_pgsql

Closes GH-6159

4 years agoUpdate the default values of xmlwriter_write_dtd_entity()
Máté Kocsis [Fri, 18 Sep 2020 08:43:21 +0000 (10:43 +0200)]
Update the default values of xmlwriter_write_dtd_entity()

Its default method handling had already been fixed not long ago, but only the stub of its method counterpart was updated.

4 years agoRemove support for EXT_NOP
Nikita Popov [Fri, 18 Sep 2020 09:02:51 +0000 (11:02 +0200)]
Remove support for EXT_NOP

This is an annoying edge case that regularly gets broken. As we're
not aware of significant users of this API, and there are other
ways to hook this, remove support for EXT_NOP.

4 years agoRemove specialization of SPEC(OBSERVER) handlers
Sammy Kaye Powers [Thu, 17 Sep 2020 21:47:36 +0000 (00:47 +0300)]
Remove specialization of SPEC(OBSERVER) handlers

4 years agoSupport for ZEND_COMPILE_EXTENDED_STMT
Dmitry Stogov [Thu, 17 Sep 2020 20:19:28 +0000 (23:19 +0300)]
Support for ZEND_COMPILE_EXTENDED_STMT

4 years agoRemove vestiges of embedded mysql from tests
Nikita Popov [Thu, 17 Sep 2020 16:55:15 +0000 (18:55 +0200)]
Remove vestiges of embedded mysql from tests

4 years agoFixed incorrect live-range construction
Dmitry Stogov [Thu, 17 Sep 2020 16:39:44 +0000 (19:39 +0300)]
Fixed incorrect live-range construction

4 years agoFixed incorrect register allocation
Dmitry Stogov [Thu, 17 Sep 2020 15:36:45 +0000 (18:36 +0300)]
Fixed incorrect register allocation

4 years agoUse ephemeral ports during curl tests with dev server
Sara Golemon [Mon, 14 Sep 2020 20:45:39 +0000 (20:45 +0000)]
Use ephemeral ports during curl tests with dev server

4 years agoSupport ephemeral ports in debug server
Sara Golemon [Mon, 14 Sep 2020 20:08:39 +0000 (20:08 +0000)]
Support ephemeral ports in debug server

4 years agoAllow http tests to run in parallel by using ephemeral ports
Sara Golemon [Tue, 15 Sep 2020 15:36:36 +0000 (15:36 +0000)]
Allow http tests to run in parallel by using ephemeral ports

4 years agoMerge branch 'PHP-7.4' into master
Christoph M. Becker [Thu, 17 Sep 2020 14:22:21 +0000 (16:22 +0200)]
Merge branch 'PHP-7.4' into master

* PHP-7.4:
  Fix bundled libpcre2 build regarding the `-fcf-protection` gcc flag

4 years agoFix bundled libpcre2 build regarding the `-fcf-protection` gcc flag
Christoph M. Becker [Thu, 17 Sep 2020 14:16:44 +0000 (16:16 +0200)]
Fix bundled libpcre2 build regarding the `-fcf-protection` gcc flag

Cf. <https://bugs.exim.org/show_bug.cgi?id=2578>.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 17 Sep 2020 14:05:33 +0000 (16:05 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix mysqli_release_savepoint() on mysqlnd

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 17 Sep 2020 14:03:26 +0000 (16:03 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix mysqli_release_savepoint() on mysqlnd

4 years agoFix mysqli_release_savepoint() on mysqlnd
Nikita Popov [Thu, 17 Sep 2020 13:59:09 +0000 (15:59 +0200)]
Fix mysqli_release_savepoint() on mysqlnd

mysqli_release_savepoint() was not actually releasing a savepoint...

4 years agoFix some tests for libmysql
Nikita Popov [Thu, 17 Sep 2020 12:49:25 +0000 (14:49 +0200)]
Fix some tests for libmysql

4 years agoRemove checks for old libmysqlclient versions in tests
Nikita Popov [Thu, 17 Sep 2020 12:58:20 +0000 (14:58 +0200)]
Remove checks for old libmysqlclient versions in tests

4 years agoFix warnings when building against libmysqlclient
Nikita Popov [Thu, 17 Sep 2020 12:23:25 +0000 (14:23 +0200)]
Fix warnings when building against libmysqlclient

At least for version 8.0 this is warning free now.

4 years agoMerge branch 'PHP-7.4' into master
Christoph M. Becker [Thu, 17 Sep 2020 12:08:32 +0000 (14:08 +0200)]
Merge branch 'PHP-7.4' into master

* PHP-7.4:
  Update to PCRE2 10.35

4 years agoUpdate to PCRE2 10.35
Christoph M. Becker [Thu, 17 Sep 2020 11:44:42 +0000 (13:44 +0200)]
Update to PCRE2 10.35

We also backport the fix for bug #79846, and add a test case for the
related bug #79363.

4 years agoEnable unixODBC in azure
Nikita Popov [Thu, 17 Sep 2020 08:44:26 +0000 (10:44 +0200)]
Enable unixODBC in azure

This only checks that it builds though.

Closes GH-6150.

4 years agoFix compilation warnings in odbc
Nikita Popov [Thu, 17 Sep 2020 08:56:45 +0000 (10:56 +0200)]
Fix compilation warnings in odbc

SQLCHAR* cast all the things.

4 years agoMerge branch 'PHP-7.4' into master
Christoph M. Becker [Thu, 17 Sep 2020 10:39:25 +0000 (12:39 +0200)]
Merge branch 'PHP-7.4' into master

* PHP-7.4:
  Fix #80115: mysqlnd.debug doesn't recognize absolute paths with slashes

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 17 Sep 2020 10:37:57 +0000 (12:37 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #80115: mysqlnd.debug doesn't recognize absolute paths with slashes

4 years agoFix #80115: mysqlnd.debug doesn't recognize absolute paths with slashes
Christoph M. Becker [Thu, 17 Sep 2020 10:37:02 +0000 (12:37 +0200)]
Fix #80115: mysqlnd.debug doesn't recognize absolute paths with slashes

4 years agoDrop support for libmysqlclient < 5.5
Nikita Popov [Thu, 17 Sep 2020 10:05:30 +0000 (12:05 +0200)]
Drop support for libmysqlclient < 5.5

Given how little maintenance the libmysqlclient driver sees, be
more aggressive in dropping old version support here.

4 years agoAdd missing mysqlnd checks to stubs
Nikita Popov [Thu, 17 Sep 2020 09:40:14 +0000 (11:40 +0200)]
Add missing mysqlnd checks to stubs

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 17 Sep 2020 09:35:03 +0000 (11:35 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  pdo_mysql/mysqli (native) libmysqlclient_r no-longer used
  mysql: native mysql-8.0 uses _Bool
  mysqli: use native api

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 17 Sep 2020 09:32:01 +0000 (11:32 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  pdo_mysql/mysqli (native) libmysqlclient_r no-longer used
  mysql: native mysql-8.0 uses _Bool
  mysqli: use native api

4 years agopdo_mysql/mysqli (native) libmysqlclient_r no-longer used
Daniel Black [Sun, 13 Sep 2020 04:09:49 +0000 (14:09 +1000)]
pdo_mysql/mysqli (native) libmysqlclient_r no-longer used

The mysqlclient_r library exists in mysql-5.6 for compatibility only.

Later versions have it removed.

4 years agomysql: native mysql-8.0 uses _Bool
Daniel Black [Sat, 12 Sep 2020 05:29:23 +0000 (15:29 +1000)]
mysql: native mysql-8.0 uses _Bool

MySQL-8.0 removes option MYSQLI_OPT_SSL_VERIFY_SERVER_CERT

4 years agomysqli: use native api
Daniel Black [Sat, 29 Aug 2020 07:18:57 +0000 (17:18 +1000)]
mysqli: use native api

Tested with:
* mysql-5.6.49-linux-glibc2.12-x86_64
* mysql-5.7.31-linux-glibc2.12-x86_64
* mysql-8.0.21-linux-glibc2.17-x86_64
* mariadb-10.5.6

configure --with-mysqli=/usr/local/$version/bin/mysql_config   --with-pdo-mysql=/usr/local/$version

MySQL-8.0 removed my_bool
Some options where deprecated in mysql-8.0

MY_CHARSET_INFO used with exposed api mysql_get_character_set_info
rather than internal structures.

4 years agoFix a few UNKNOWN default values in ext/pgsql
Máté Kocsis [Wed, 16 Sep 2020 20:33:23 +0000 (22:33 +0200)]
Fix a few UNKNOWN default values in ext/pgsql

Closes GH-6149

4 years agoFixed memory leak in ext/spl/tests/bug77263.phpt
Dmitry Stogov [Thu, 17 Sep 2020 08:55:50 +0000 (11:55 +0300)]
Fixed memory leak in ext/spl/tests/bug77263.phpt

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 17 Sep 2020 08:31:48 +0000 (10:31 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  ext/soap: Compare Set-Cookie header case-insensitively

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 17 Sep 2020 08:31:30 +0000 (10:31 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  ext/soap: Compare Set-Cookie header case-insensitively

4 years agoext/soap: Compare Set-Cookie header case-insensitively
Gabríel Arthúr Pétursson [Wed, 16 Sep 2020 14:18:00 +0000 (14:18 +0000)]
ext/soap: Compare Set-Cookie header case-insensitively

Closes GH-6143.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 17 Sep 2020 08:14:19 +0000 (10:14 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #80083

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 17 Sep 2020 08:13:42 +0000 (10:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed bug #80083

4 years agoFixed bug #80083
Nikita Popov [Thu, 17 Sep 2020 08:12:10 +0000 (10:12 +0200)]
Fixed bug #80083

Add db2_execute() to the list of functions accessing the local
scope. Ideally the API wouldn't do that, but it seems most
pragmatic to address this on the opcache side at this point.

4 years agoFixed bug #80109
Nikita Popov [Thu, 17 Sep 2020 07:59:44 +0000 (09:59 +0200)]
Fixed bug #80109

Skip over leading EXT_NOP, if it exists.

4 years agomysqli: Promote warning in field_seek
Dharman [Wed, 16 Sep 2020 14:41:02 +0000 (15:41 +0100)]
mysqli: Promote warning in field_seek

Aligning the behaviour of fetch_field and field_seek.

4 years agoChange int parameter types to bool when the parameter behaves as bool
Máté Kocsis [Wed, 16 Sep 2020 19:38:30 +0000 (21:38 +0200)]
Change int parameter types to bool when the parameter behaves as bool

Closes GH-6148

4 years agoGenerate arginfos
Máté Kocsis [Wed, 16 Sep 2020 19:28:27 +0000 (21:28 +0200)]
Generate arginfos

4 years agoDisplay string default values in stubs more uniformly
Máté Kocsis [Wed, 16 Sep 2020 19:27:01 +0000 (21:27 +0200)]
Display string default values in stubs more uniformly

Settling on using quoted string

4 years agoDisplay types in stubs more uniformly
Máté Kocsis [Wed, 16 Sep 2020 19:19:36 +0000 (21:19 +0200)]
Display types in stubs more uniformly

In preparation for generating method signatures for the manual.

This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.

4 years agoAccept GMP|string|int union in GMP functions
Nikita Popov [Wed, 16 Sep 2020 09:04:56 +0000 (11:04 +0200)]
Accept GMP|string|int union in GMP functions

This changes GMP functions to accept a GMP|string|int union with
standard semantics (and thus also uses it in function signatures).

Relative to the previous behavior, this means that GMP functions
in weak mode now also accept float and null, and in strict mode no
longer accept bool, and have full type information.

Closes GH-6139.

4 years agoUpdate xmlreader arginfo hash
Máté Kocsis [Wed, 16 Sep 2020 11:51:36 +0000 (13:51 +0200)]
Update xmlreader arginfo hash

My git client (GitHub Desktop) decided to commit and push my staged changes, so arginfo generation was not done with the previous commit.

4 years agoUpdate php_xmlreader.stub.php
Máté Kocsis [Wed, 16 Sep 2020 11:47:58 +0000 (13:47 +0200)]
Update php_xmlreader.stub.php

4 years agoXMLReader::getAttributeNs() can no longer return false
Máté Kocsis [Wed, 16 Sep 2020 11:45:13 +0000 (13:45 +0200)]
XMLReader::getAttributeNs() can no longer return false

4 years agoOptimize code for FETCH_THIS + INIT_METHOD_CALL/ASSIGN_OBJ_OP/etc
Dmitry Stogov [Wed, 16 Sep 2020 11:22:36 +0000 (14:22 +0300)]
Optimize code for FETCH_THIS + INIT_METHOD_CALL/ASSIGN_OBJ_OP/etc

4 years agoChanged the wording of the error message
Dharman [Tue, 15 Sep 2020 17:42:38 +0000 (18:42 +0100)]
Changed the wording of the error message

"cannot be used in MYSQLI_USE_RESULT mode" sounds more correct than "cannot be used with MYSQLI_USE_RESULT"

Closes GH-6137.

4 years agoRemove unused GMP_ABS() macro
Nikita Popov [Wed, 16 Sep 2020 08:42:10 +0000 (10:42 +0200)]
Remove unused GMP_ABS() macro

4 years agoExclude trait methods from call-graph
Dmitry Stogov [Wed, 16 Sep 2020 09:04:29 +0000 (12:04 +0300)]
Exclude trait methods from call-graph

4 years agoAvoid ubsan warning due to memcpy null
Nikita Popov [Wed, 16 Sep 2020 08:28:28 +0000 (10:28 +0200)]
Avoid ubsan warning due to memcpy null

This showed up in ext/mysqli/tests/mysqli_change_user.phpt on azure
today. Not seeing it locally though, and also not sure why it decided
to show up now...

4 years agoFix test
Matteo Beccati [Wed, 16 Sep 2020 08:04:14 +0000 (10:04 +0200)]
Fix test

follow-up to 7a95e94 for MySQL < 5.6

4 years agoFixed incorrect constant string access
Dmitry Stogov [Wed, 16 Sep 2020 07:49:54 +0000 (10:49 +0300)]
Fixed incorrect constant string access

4 years agoJIT for INIT_METHOD_CALL
Dmitry Stogov [Wed, 16 Sep 2020 07:25:36 +0000 (10:25 +0300)]
JIT for INIT_METHOD_CALL

4 years agomissing fix for test for new param. name
Remi Collet [Wed, 16 Sep 2020 05:58:53 +0000 (07:58 +0200)]
missing fix for test for new param. name

4 years agoAdd some ValueErrors to ext/date
George Peter Banyard [Fri, 22 May 2020 14:43:07 +0000 (16:43 +0200)]
Add some ValueErrors to ext/date

Closes GH-5613

4 years agoUpdate NEWS for 8.0.0RC1
Sara Golemon [Tue, 15 Sep 2020 18:38:15 +0000 (18:38 +0000)]
Update NEWS for 8.0.0RC1

4 years agoUpdate NEWS for PHP 8.0.0beta4
Sara Golemon [Tue, 15 Sep 2020 18:30:23 +0000 (18:30 +0000)]
Update NEWS for PHP 8.0.0beta4

4 years agoFix OSS Fuzz issue: yielding from an aborted generator
Bob Weinand [Tue, 15 Sep 2020 18:07:25 +0000 (20:07 +0200)]
Fix OSS Fuzz issue: yielding from an aborted generator

4 years agoPromote warnings to Error in MySQLi extension
George Peter Banyard [Fri, 3 Jul 2020 11:43:29 +0000 (13:43 +0200)]
Promote warnings to Error in MySQLi extension

Closes GH-5803

4 years agoFix uninitialized run-time cache when resolving named param defaults
Nikita Popov [Tue, 15 Sep 2020 14:08:14 +0000 (16:08 +0200)]
Fix uninitialized run-time cache when resolving named param defaults

Fixes oss-fuzz #25676.

4 years agoFix undef var exception handling in JMP_NULL
Nikita Popov [Tue, 15 Sep 2020 13:43:31 +0000 (15:43 +0200)]
Fix undef var exception handling in JMP_NULL

We need to initialize the result variable in the exceptional
case as well.

Fixes oss-fuzz #25526.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 15 Sep 2020 13:26:56 +0000 (15:26 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix assumption about property guard hash value

4 years agoFix assumption about property guard hash value
Nikita Popov [Tue, 15 Sep 2020 13:25:22 +0000 (15:25 +0200)]
Fix assumption about property guard hash value

The "member" string here does not necessarily have a pre-calculated
hash value. In particular this is not the case if the class has no
properties.

Fixes oss-fuzz #25546.

4 years agofix mbfl function prototypes
Remi Collet [Tue, 15 Sep 2020 11:54:27 +0000 (13:54 +0200)]
fix mbfl function prototypes
re-add mbfl_convert_filter_feed API
re-add pointer cast

4 years agoFix compile-time/run-time discrepancies with unary operators
Nikita Popov [Tue, 15 Sep 2020 13:06:56 +0000 (15:06 +0200)]
Fix compile-time/run-time discrepancies with unary operators

This addresses two issues:
 * ~ throws for a number of types, and we should not compile-time
   evaluate in that case. Add a check similar to what we do for
   binary ops.
 * Unary +/- may produce a different error message due to
   canonicalization of the constant operand to the RHS. To avoid
   this, put the constant operand on the RHS right away.

Fixes oss-fuzz #25649.

4 years agoTracing JIT for INIT_DYNAMIC_CALL (closure only)
Dmitry Stogov [Tue, 15 Sep 2020 12:57:57 +0000 (15:57 +0300)]
Tracing JIT for INIT_DYNAMIC_CALL (closure only)

4 years agoRemove unintendedly committed test
Máté Kocsis [Tue, 15 Sep 2020 12:49:30 +0000 (14:49 +0200)]
Remove unintendedly committed test

4 years agoAdjust ext/openssl parameter names
Máté Kocsis [Sat, 12 Sep 2020 21:53:15 +0000 (23:53 +0200)]
Adjust ext/openssl parameter names

Closes GH-6121

4 years agoPromote a few remaining errors in ext/standard
Máté Kocsis [Thu, 10 Sep 2020 11:28:18 +0000 (13:28 +0200)]
Promote a few remaining errors in ext/standard

Closes GH-6110

4 years agoPromote warnings to Error in SNMP extension
George Peter Banyard [Tue, 8 Sep 2020 14:59:35 +0000 (16:59 +0200)]
Promote warnings to Error in SNMP extension

4 years agoCheck `ReflectionReference::fromArrayElement` with union types
Gabriel Caruso [Mon, 14 Sep 2020 14:06:18 +0000 (16:06 +0200)]
Check `ReflectionReference::fromArrayElement` with union types

ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference
is going to be its official signature for PHP 8.0.

Closes GH-5651