1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Commit Graph

128938 Commits

Author SHA1 Message Date
Máté Kocsis bb5be650c6 Require zend_constants.stub.php from zend_exceptions.stubs.php
Because E_ERROR is referenced in this file
2022-07-12 10:35:03 +02:00
Máté Kocsis 0bddbab084 Make the ABI compatibility of generated arginfo files configurable (#8931) 2022-07-12 10:27:53 +02:00
Christoph M. Becker 32cceb75bf Update to libpcre2 10.40 2022-07-11 19:45:46 +02:00
Arnaud Le Blanc c654973c02 .gdbinit: Update print_ht for new compact packed arrays representation (#8966) 2022-07-11 18:04:56 +02:00
Tim Düsterhus 75a9a5f311 Add zend_array_to_list() (#8976)
* Add zend_array_to_list()

* Use `zend_array_to_list()` in `PHP_FUNCTION(array_values)`
2022-07-11 15:29:40 +02:00
Juan Morales 23654a172e QA - Test Cov - ext:pcntl - pcntl_signal() - max signal allowed (#8956)
Co-authored-by: jcm <juan.carlos.morales@tradebyte.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-07-11 13:45:42 +01:00
Ayesh Karunaratne a759a7fabc [skip ci] Readme: Add Github Actions nightly workflow status badge (#8971) 2022-07-11 14:14:39 +02:00
Mark Gallagher 327bb21986 FPM: Implement access log filtering
Adds a setting "access.suppress_path" to php-fpm pool configurations
which causes successful GET requests to the specified URIs to be
excluded from the access log. This is to reduce noise caused by
automated health checks.

Requests with response codes outwith the successful range 200 - 299,
requests made with query parameters and requests which have a
Content-Length other than 0 will ignore this setting as a security
precaution.

Closes GH-8174, #80428 [1]

[1] https://bugs.php.net/bug.php?id=80428
2022-07-10 23:21:14 +01:00
Ayesh Karunaratne 5ad056ceae [skip ci] Readme: Fix build-status icon link for Travis CI (#8970) 2022-07-10 23:09:31 +02:00
David Carlier 185d604d56 NEWS/UPGRADING changes 2022-07-10 21:30:08 +01:00
David Carlier dedad408fe sockets introduces socket_set_option SO_ZEROCOPY and MSG_ZEROCOPY for the socket_send* functions. it avoids copy b/w userland and kernel for both TCP and UDP protocols. 2022-07-10 20:06:52 +01:00
Michael Voříšek 6cd5bd1bcd Fix "%f" regex in run-tests.php (#8965)
"-.0.0" and "0." is no longer matched wrongly
2022-07-10 15:33:10 +02:00
Arnaud Le Blanc d217a669fc [ci skip] NEWS 2022-07-10 15:18:51 +02:00
Arnaud Le Blanc 77f73de5bb XFAIL test 2022-07-10 14:49:42 +02:00
Dennis Snell 492af9f88e Add ini_parse_quantity function to convert ini quantities shorthand notation to int (#8454) 2022-07-10 14:48:52 +02:00
Arnaud Le Blanc 61ad0d9136 Fix build 2022-07-09 23:30:15 +02:00
Arnaud Le Blanc da1cbd20c3 Merge branch 'PHP-8.1'
* PHP-8.1:
  [ci skip] NEWS
  Fix GH-8952: std streams can not be deliberately closed (#8953)
  intl extension, build fix for icu >= 69.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.
2022-07-09 23:01:07 +02:00
Arnaud Le Blanc d86141a891 [ci skip] NEWS 2022-07-09 23:00:52 +02:00
Arnaud Le Blanc 2dbde18b29 Fix GH-8952: std streams can not be deliberately closed (#8953) 2022-07-09 22:58:02 +02:00
David Carlier 5e0b2e537d Merge branch 'PHP-8.0' into PHP-8.1 2022-07-08 17:39:05 +01:00
David Carlier 7c3dfbb845 intl extension, build fix for icu >= 69.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. 2022-07-08 17:38:31 +01:00
Michael Voříšek e80925445c Fix GH-8924 str_split of empty string must return empty array
Closes #8945.
2022-07-08 15:49:45 +01:00
Arnaud Le Blanc 4df3dd7679 Reduce memory allocated by var_export, json_encode, serialize, and other (#8902)
smart_str uses an over-allocated string to optimize for append operations. Functions that use smart_str tend to return the over-allocated string directly. This results in unnecessary memory usage, especially for small strings.

The overhead can be up to 231 bytes for strings smaller than that, and 4095 for other strings. This can be avoided for strings smaller than `4096 - zend_string header size - 1` by reallocating the string.

This change introduces `smart_str_trim_to_size()`, and calls it in `smart_str_extract()`. Functions that use `smart_str` are updated to use `smart_str_extract()`.

Fixes GH-8896
2022-07-08 14:47:46 +02:00
George Peter Banyard eacf6f43ed Add upgrading internals entry for fgetcsv() changes 2022-07-08 13:32:01 +01:00
David Carlier 6f0dffc89f Merge branch 'PHP-8.1' 2022-07-08 13:13:10 +01:00
David Carlier 9b5a2635d6 Merge branch 'PHP-8.0' into PHP-8.1 2022-07-08 13:12:30 +01:00
Heiko Weber bd6793372b FPM: Fix possible double free on configuration load failure.
Closes #8948.
2022-07-08 13:11:37 +01:00
George Peter Banyard 4ccf0b0181 Make php_fgetcsv() return a HashTale instead of in-out zval param (#8936)
Also refactor what happens on an empty line to return NULL instead of setting the array to [NULL] which makes no design sense at all.
However, as this is the current behaviour create a BC Shim inline function to recreate this weird HashTable in the functions which currently use this API
2022-07-08 12:11:05 +01:00
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