1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00
Commit Graph

128618 Commits

Author SHA1 Message Date
Max Kellermann
c1a06704da Add ZEND_THREEWAY_COMPARE() macro to fix casting underflowed unsigned to signed (#8220)
Casting a huge unsigned value to signed is implementation-defined
behavior in C.  By introducing the ZEND_THREEWAY_COMPARE() macro, we
can sidestep this integer overflow/underflow/casting problem.
2022-06-08 13:24:18 +01:00
Joe Rowell
89688b115d Add function exposing HAVE_GCC_GLOBAL_REGS (#8359) 2022-06-08 12:32:30 +01:00
Sergey Panteleev
5f035dc75b [skip ci] Auto labeling for PRs (#8693) 2022-06-08 12:28:03 +01:00
George Peter Banyard
c28d1fb1a5 Merge branch 'PHP-8.1' 2022-06-08 11:45:03 +01:00
George Peter Banyard
f800c60f13 Merge branch 'PHP-8.0' into PHP-8.1 2022-06-08 11:43:22 +01:00
George Peter Banyard
52eb52d652 Backport fcba0a49fc
Forgot this file exists in lower branches
2022-06-08 11:43:12 +01:00
George Peter Banyard
306f8d282d Merge branch 'PHP-8.1' 2022-06-08 11:38:16 +01:00
George Peter Banyard
c05c96b3fe Fix GH-8691 Add required extensions for redirected tests 2022-06-08 11:37:07 +01:00
George Peter Banyard
938049b927 PDO Common tests should not require a driver 2022-06-08 11:37:07 +01:00
David Carlier
d677cc13ce Add SO_BPF_EXTENSIONS flag to socket.
Returns the supported bpf extensions from the kernel. Linux only.
Closes GH-8713.
2022-06-08 05:14:57 +01:00
Rowan Tommins
ed6dab2040 Avoid accessing undefined variables in run-tests.php (#8669)
The $php_cgi and $phpdbg cases here are definitely real bugs, and
caused the script to bail out under certain ini settings.

The other paths may actually be unreachable in practice, but were
highlighted by PhpStorm.
2022-06-08 00:00:03 +01:00
Ben Ramsey
5a6436f0d6 [ci skip] Update RM documentation with latest notes 2022-06-07 14:51:51 -05:00
Ben Ramsey
e2aa1fbc26 Merge branch 'PHP-8.1' 2022-06-07 11:54:01 -05:00
Ben Ramsey
59a3de3786 Fix date on PHP 8.1.7 release 2022-06-07 11:28:41 -05:00
Stanislav Malyshev
a0f479f0b6 Update NEWS 2022-06-07 11:26:04 -05:00
Ilija Tovilo
120b4f7ae6 Remove code duplication in zend_std_compare_objects (#8710) 2022-06-07 18:07:26 +02:00
Sergey Panteleev
418f7211f7 Update NEWS for PHP 8.2.0 alpha2 2022-06-07 18:47:44 +03:00
Ben Ramsey
7f78f661d0 Merge branch 'PHP-8.1' 2022-06-07 10:08:40 -05:00
Ben Ramsey
a6a13139db Fix #76452: Crash while parsing blob data in firebird_fetch_blob
This reapplies 286162e9b0 to the PHP-8.1 (and up)
branches, fixing what might have been caused by a bad merge conflict resolution.
2022-06-07 09:59:17 -05:00
George Peter Banyard
80fda5ff9e [skip ci] Update UPGRADING in regards to iterable compile time alias 2022-06-07 13:48:47 +01:00
George Peter Banyard
b40ae80804 Convert iterable into an internal alias for Traversable|array (#7309)
This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP variance handling.

The arginfo generation script from stubs is updated to produce a union type when it encounters the type ``iterable``
Extension functions which do not regenerate the arginfo, or write them manually are still supported by mimicking the compile time transformation while registering the function.

Type Reflection is preserved for single ``iterable`` (and ``?iterable``) to produce a ReflectionNamedType with name ``iterable``, however usage of ``iterable`` in union types will be converted to ``array|Traversable``
2022-06-07 13:35:34 +01:00
Tim Düsterhus
94183d3e8b [skip ci] Mark *_arginfo.h as linguist-generated (#8722)
The generated `*_arginfo.h` usually cannot be usefully reviewed within a PR.
Collapse them by default by adding the `linguist-generated` attribute to reduce
the visual noise.

see https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
see https://github.com/github/linguist/blob/master/docs/overrides.md#summary
2022-06-07 12:35:09 +01:00
Derick Rethans
cd86423ac2 Merge branch 'PHP-8.1' 2022-06-07 09:48:38 +01:00
Derick Rethans
93eeec81f1 Merge branch 'PHP-8.0' into PHP-8.1 2022-06-07 09:48:29 +01:00
Derick Rethans
c15e160a65 Merge branch 'PHP-7.4' into PHP-8.0 2022-06-07 09:48:19 +01:00
Derick Rethans
8fbeadcd45 Bump version in 7.4 to 7.4.31-dev 2022-06-07 09:48:06 +01:00
Derick Rethans
74202fac91 Adding "git pull" to make sure local check out is in sync (I keep forgetting that) 2022-06-07 09:45:11 +01:00
David Carlier
6fe7ff95d9 Implements ancillary data on NetBSD.
With the couple LOCAL_CREDS/SCM_CREDS, in this system we get all the
infos needed (included the process id).
Closes GH-8700.
2022-06-06 23:06:01 +01:00
George Peter Banyard
8e00e8209b [ci skip] Drop ability to send QA reports by email (#8657)
This fails regularly and on top of that we don't look at these reports.
2022-06-06 20:48:38 +01:00
Máté Kocsis
e7c30c059c Declare ext/ldap constants in stubs (#8717) 2022-06-06 21:30:10 +02:00
Máté Kocsis
7d6ce85aa9 Declare ext/com_dotnet constants in stubs (#8675) 2022-06-06 15:56:24 +02:00
Máté Kocsis
deabd5a442 Declare ext/gmp constants in stubs (#8704)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-06-06 14:38:03 +02:00
Máté Kocsis
7e6301cd31 Declare ext/iconv constants in stubs (#8714) 2022-06-06 14:16:47 +02:00
Máté Kocsis
e7d482d896 Declare ext/imap constants in stubs (#8715) 2022-06-06 13:08:32 +02:00
Máté Kocsis
34b1010abc Merge branch 'PHP-8.1'
* PHP-8.1:
  Add missing EXTENSIONS section to new test
2022-06-06 12:21:57 +02:00
Máté Kocsis
f17a8a5aed Add missing EXTENSIONS section to new test 2022-06-06 12:21:25 +02:00
Máté Kocsis
c5ffa0a1a7 Declare ext/json constants in stubs (#8716) 2022-06-06 12:13:12 +02:00
Máté Kocsis
7c2d1fda4a Add missing SKIPIF section to new test 2022-06-06 12:05:49 +02:00
Ilija Tovilo
3f557ebd77 Revert "JIT: Add IBT support (#8636)"
This reverts commit c1fcd45eeb.

Closes GH-8711
2022-06-06 11:59:26 +02:00
Dmitry Stogov
7451b8b6b0 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix memory leak
2022-06-06 11:38:37 +03:00
Dmitry Stogov
74744f3c0d Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix memory leak
2022-06-06 11:38:29 +03:00
Dmitry Stogov
088e5677fb Fix memory leak
This fixes oss-fuzz #47791
2022-06-06 11:35:01 +03:00
Dmitry Stogov
faf3410957 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix type inference
2022-06-06 11:14:33 +03:00
Dmitry Stogov
b86c6245cc Fix type inference
This fixes oss-fuzz #47777
2022-06-06 11:13:53 +03:00
Stanislav Malyshev
70d03423c7 Merge branch 'PHP-8.1' 2022-06-06 01:11:49 -06:00
Stanislav Malyshev
98e1291b7e Merge branch 'PHP-8.0' into PHP-8.1 2022-06-06 01:11:44 -06:00
Stanislav Malyshev
e864cb61a7 Merge branch 'PHP-7.4' into PHP-8.0 2022-06-06 01:11:13 -06:00
Stanislav Malyshev
d1be9369ad Update NEWS 2022-06-06 01:00:38 -06:00
Stanislav Malyshev
58006537fc Fix bug #81719: mysqlnd/pdo password buffer overflow 2022-06-06 00:56:51 -06:00
Christoph M. Becker
55f6895f4b Fix #81720: Uninitialized array in pg_query_params() leading to RCE
We must not free parameters which we haven't initialized yet.

We also fix the not directly related issue, that we checked for the
wrong value being `NULL`, potentially causing a segfault.
2022-06-06 00:34:23 -06:00