1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00
Commit Graph

128910 Commits

Author SHA1 Message Date
George Peter Banyard 247de8a4de Use true/false and comment when arg correspond to silent arg 2022-07-08 11:36:59 +01:00
George Peter Banyard bb3d0933af Remove silent argument to spl_filesystem_file_read_line_ex()
true was always passed to it
2022-07-08 11:36:59 +01:00
George Peter Banyard a055c54801 Remove silent argument to spl_filesystem_file_read_line()
true was always passed to it
2022-07-08 11:36:59 +01:00
George Peter Banyard f905590764 Add support for Disjoint Normal Form (DNF) types (#8725)
RFC: https://wiki.php.net/rfc/dnf_types

This allows to combine union and intersection types together in the following form (A&B)|(X&Y)|T but not of the form (X|A)&(Y|B) or (X|A)&(Y|B)|T.

* Improve union type parsing

Co-authored-by: Sara Golemon <pollita@php.net>
2022-07-08 11:30:23 +01:00
Ayesh Karunaratne d3c86527a5 Update mime-db from 1.45.0 to 1.52.0
Updates the the mime types supported by the built-in PHP server to match the mime types available from upstream `mime-db` database.
This updates the `mime-db` version from `v1.45.0` (released in 2020 Sep) to `v1.52.0` (latest, released in 2022 Feb), and syncs the mime types by running the mime type ingestion script.
2022-07-08 07:39:38 +01:00
David CARLIER 5174ee2353 FPM add routing view global option (for FreeBSD for now).
set the route table FIB id to the sockets created within FPM up to
the max set by the system, avoiding having to use setfib command line.
Closes #8470.
2022-07-08 06:37:47 +01:00
Pierrick Charron 2ee6e0ddd0 Merge branch 'PHP-8.1'
* PHP-8.1:
  [ci skip] Update news
2022-07-07 17:10:54 -04:00
Pierrick Charron f6de748dcb [ci skip] Update news 2022-07-07 17:08:20 -04:00
Pierrick Charron 4dd66b8ce0 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fixed bug GH-8943 Reflection::getModifiersNames() with readonly modifier
2022-07-07 17:03:25 -04:00
Pierrick Charron c650e67c90 Fixed bug GH-8943 Reflection::getModifiersNames() with readonly modifier 2022-07-07 16:59:54 -04:00
Remi Collet caa13aff5d Merge branch 'PHP-8.1'
* PHP-8.1:
  [ci skip] drop NEWS entry for reverted fix
  [ci skip] drop NEWS entry for reverted fix
2022-07-07 14:07:27 +02:00
Remi Collet de202a5f2f [ci skip] drop NEWS entry for reverted fix 2022-07-07 14:07:11 +02:00
Remi Collet 0bf0698226 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  [ci skip] drop NEWS entry for reverted fix
2022-07-07 14:06:51 +02:00
Remi Collet 2e58e9e60f [ci skip] drop NEWS entry for reverted fix 2022-07-07 14:06:32 +02:00
Levi Morrison d9c49ae1c1 Improve contrast for dark mode phpinfo (#8893)
Also use CSS variable names; all browsers I can find that support
the prefers-color-scheme media query also support CSS variables.

Someone voiced they didn't want the background texture that php.net
has, so I did not include that.
2022-07-06 14:19:21 -06:00
David Carlier b22d2bf589 intl extension, build fix for icu >= 71.x release.
ubrk/ucnv_safeClone had been deprecated in favor
of ubrk/ucnv_clone which does not use user provided stacks
but remain thread safe.
Closes #8930.
2022-07-06 18:12:19 +01:00
Kamil Tekiela 012abcdb52 Update UPGRADING 2022-07-06 12:28:54 +01:00
Kamil Tekiela 1dc51c7b90 Implement mysqli_execute_query() (#8660) 2022-07-06 12:23:46 +01:00
Remi Collet b45cd10238 Fix GH-8842 don't set sensitive param in legacy arginfo 2022-07-06 08:40:10 +02:00
Ben Ramsey b107b819c8 Merge branch 'PHP-8.1' 2022-07-05 16:22:13 -05:00
Ben Ramsey 6c29ac3d11 Move NEWS entry to PHP 8.1.8 2022-07-05 16:20:23 -05:00
George Peter Banyard 6f26102bbf Merge branch 'PHP-8.1'
* PHP-8.1:
  Revert "Fix GH-8563  Different results for seek() on SplFileObject and SplTempFileObject"
  Revert "Update FreeBSD CI image."
2022-07-05 21:45:13 +01:00
George Peter Banyard e67336f46a Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Revert "Fix GH-8563  Different results for seek() on SplFileObject and SplTempFileObject"
2022-07-05 21:33:47 +01:00
George Peter Banyard 79a283240e Revert "Fix GH-8563 Different results for seek() on SplFileObject and SplTempFileObject"
Although the fix is partially correct it also breaks long standing behaviour which has been produced since PHP 5.3.

This reverts commit 6f87a5c633.
2022-07-05 21:28:59 +01:00
David CARLIER da8bfd46aa Revert "Update FreeBSD CI image."
This reverts commit f2d6e175fe.
2022-07-05 20:10:59 +01:00
David CARLIER 35ca407fcb Revert "Update FreeBSD CI image."
This reverts commit 4f4457a6e9.
2022-07-05 20:10:42 +01:00
Bob Weinand 9f29e2d7e9 Allow for arbitrary (class) attributes in stubs
This can be easily extended to other types of attributes.

Closes #8839.
2022-07-05 18:23:05 +02:00
Sergey Panteleev 82bcc94bea [ci skip] Update NEWS for PHP 8.2.0 beta1 2022-07-05 19:09:39 +03:00
Stanislav Malyshev f0c679c72c fix NEWS 2022-07-05 01:10:34 -06:00
Stanislav Malyshev 718782b8a8 Merge branch 'PHP-8.1' 2022-07-05 01:09:17 -06:00
Stanislav Malyshev 13dcd219a1 [ci skip] Update news 2022-07-05 01:08:14 -06:00
Stanislav Malyshev b2f692a9f8 Merge branch 'PHP-8.1' 2022-07-05 00:59:43 -06:00
Christoph M. Becker ca6d511fa5 Fix #81723: Memory corruption in finfo_buffer()
We need to use the same memory allocator throughout.
2022-07-05 00:44:00 -06:00
David Carlier f2d6e175fe Update FreeBSD CI image. 2022-07-04 20:32:39 +01:00
David Carlier 4f4457a6e9 Update FreeBSD CI image. 2022-07-04 20:31:55 +01:00
David Carlier dfbb425295 Use safe_*erealloc* flavor in few places to mitigate possible overflows. 2022-07-04 14:41:04 +01:00
David Carlier 0ad8b64b70 Follow up on #8897 but on master which instead does not use the old custom alloca.
Closes #8905.
2022-07-04 12:56:01 +01:00
Derick Rethans 5bccb64213 Merge branch 'PHP-8.1' 2022-07-04 10:50:39 +01:00
Derick Rethans d8ebfdc506 Merge branch 'PHP-8.0' into PHP-8.1 2022-07-04 10:50:32 +01:00
Sebastian Bergmann eb5b12c225 [ci skip] Fix typo 2022-07-03 07:16:53 +02:00
David Carlier fdc09e302a Fix GH-8907: Document forgotten API changes.
binary safe string comparisons and recent socket option addition.

Closes #8910.
2022-07-02 20:42:39 +01:00
Jakub Zelenka 583cc01e9e Fix labeler selection of SAPIs 2022-07-02 18:10:33 +01:00
George Peter Banyard 1c753a958b Pre-compute remote address length in CLI SAPI 2022-07-01 21:18:26 +01:00
George Peter Banyard b37245b8da Refactor registration of variables for the CLI SAPI 2022-07-01 21:18:26 +01:00
George Peter Banyard 55908db007 Add php_register_known_variable() for know var names 2022-07-01 21:18:26 +01:00
George Peter Banyard 1d0c287b90 Abort LMDB transaction whe trying to delete non-existing key 2022-07-01 17:28:36 +01:00
George Peter Banyard 8fce70ae7b Abort LMDB transaction whe trying to delete non-existing key 2022-07-01 17:26:27 +01:00
Ilija Tovilo 40908b10fc Merge branch 'PHP-8.1'
* PHP-8.1:
  Disallow assigning reference to  unset readonly property
2022-07-01 12:20:32 +02:00
Ilija Tovilo 110573726b Disallow assigning reference to unset readonly property
Closes GH-7942
Closes GH-8188
2022-07-01 12:16:32 +02:00
David CARLIER 1a5414cd98 Revert "Merge branch 'PHP-8.1'"
This reverts commit 6876c202ea, reversing
changes made to a193427333.
2022-07-01 06:31:55 +01:00