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
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