Yuya Hamada
a80b6d7b99
Add mb_trim function
...
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2023-11-24 08:04:51 +02:00
Derick Rethans
a4e80b09cb
Merge branch 'PHP-8.3'
2023-11-23 16:18:50 +00:00
Derick Rethans
2e4b660b27
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-23 16:18:43 +00:00
Derick Rethans
28dabaab2f
Import timelib 2022.10
2023-11-23 16:06:00 +00:00
Niels Dossche
4d32e2bb87
Remove more pspell remnants
2023-11-22 19:52:07 +01:00
Dmitry Stogov
889dadd636
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fixed regression introduced by https://github.com/php/php-src/pull/9601
2023-11-22 21:25:45 +03:00
Dmitry Stogov
adaf726373
Fixed regression introduced by https://github.com/php/php-src/pull/9601
2023-11-22 21:25:15 +03:00
SakiTakamachi
04f8c1bda8
Optimized error handling
2023-11-22 17:11:49 +00:00
SakiTakamachi
54b12bcdb4
Unified function naming conventions
2023-11-22 17:11:49 +00:00
Derick Rethans
b035cb6c8e
PSpell has been moved to PECL
...
- https://github.com/php/pecl-text-pspell
- https://pecl.php.net/package/pspell
2023-11-22 16:51:07 +00:00
Marc Bennewitz
88f2dc6268
Added DateTime[Immutable]::createFromTimestamp / date_create_[immutable]_from_timestamp
2023-11-22 15:24:13 +00:00
Derick Rethans
0dfac0e33b
Fixed whitespace and formatting
2023-11-22 14:45:58 +00:00
jorgsowa
e7e5f1f2d4
Extended tests with date constants
2023-11-22 14:41:48 +00:00
Dmitry Stogov
e9e6eb714e
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fixed GH-12748: Function JIT emits "could not convert to int" warning at the same time as invalid offset Error
2023-11-22 13:26:25 +03:00
Dmitry Stogov
6f355c6c79
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fixed GH-12748: Function JIT emits "could not convert to int" warning at the same time as invalid offset Error
2023-11-22 13:26:07 +03:00
Dmitry Stogov
2d65d714a3
Fixed GH-12748: Function JIT emits "could not convert to int" warning at the same time as invalid offset Error
2023-11-22 13:19:10 +03:00
Dmitry Stogov
b50aa63a08
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fixed GH-12747: Function JIT returns invalid error message for coalesce operator on invalid offset
2023-11-22 13:02:18 +03:00
Dmitry Stogov
f48ab6a66f
Fixed GH-12747: Function JIT returns invalid error message for coalesce operator on invalid offset
2023-11-22 13:01:35 +03:00
Dmitry Stogov
d20c8496e9
Update according to IR changes
2023-11-22 12:13:29 +03:00
Dmitry Stogov
acda3af045
Update IR
...
IR commit: 18a3192604d9475cee833c6f94079d31015a9754
2023-11-22 12:12:42 +03:00
Gina Peter Banyard
4c6e08dd09
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Mention correct bug number
2023-11-22 04:15:07 +00:00
Gina Peter Banyard
af155cf2dc
Mention correct bug number
...
I'm tired
2023-11-22 04:14:37 +00:00
Gina Peter Banyard
e5b3e37684
Merge branch 'PHP-8.3'
...
* PHP-8.3:
ext/standard: Fix GH-9316
2023-11-22 04:10:39 +00:00
Gina Peter Banyard
37f67a9a98
ext/standard: Fix GH-9316
...
http_build_query() default null argument for is implicitly coerced to string
Closes GH-9316
2023-11-22 04:09:40 +00:00
David Carlier
65b06e36b7
Merge branch 'PHP-8.3'
2023-11-21 21:02:59 +00:00
David Carlier
501f0f8b7d
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-21 21:02:10 +00:00
Muhammad Moinur Rahman
6be4ba9f90
Add host_cpu type for FreeBSD
...
In FreeBSD world x86_64 host type is identified as amd64 so add proper
checks for FreeBSD amd64 hosts.
Close GH-12736
2023-11-21 21:01:38 +00:00
Peter Kokot
5c523edffe
Remove obsolete IRIX checks ( #12737 )
...
IRIX is a discontinued and closed-source OS with last release in 2006.
2023-11-21 02:56:53 +00:00
Niels Dossche
9a34b57b28
ext/dom: Use zend_hash_add_new variant when registering classes and properties
2023-11-20 21:09:10 +01:00
Jakub Zelenka
107ed64e2e
Merge branch 'PHP-8.3'
2023-11-20 16:24:57 +00:00
Jakub Zelenka
1e66e6ae73
Revert incomplete PG pipeline addition
...
Closes GH-12735
2023-11-20 16:22:29 +00:00
Jakub Zelenka
594839b5fe
Merge branch 'PHP-8.3'
2023-11-20 13:43:43 +00:00
Peter Kokot
ff2b50889c
Refactor checks for fpathconf and pathconf
...
These two might not be available everywhere so we check them in
config.m4 when doing the configure step. Check is skipped for musl libc
due to limited implementation.
Constants that are defined into main/php_config.h:
HAVE_FPATHCONF
HAVE_PATHCONF
Implemented via GH-10238
Related to GH-10350
Fixes GH-12725
2023-11-20 13:39:21 +00:00
Saki Takamachi
239379b75b
ext/pdo_firebird: Output correct error messages
2023-11-20 13:21:43 +00:00
Máté Kocsis
ed6e289c31
Make the return type of some stream context related functions true ( #12720 )
...
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2023-11-19 20:36:42 +01:00
Niels Dossche
c15db2250d
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-11992: utf_encodings.phpt fails on Windows 32-bit
2023-11-19 16:46:13 +01:00
Niels Dossche
6176538d99
Fix GH-11992: utf_encodings.phpt fails on Windows 32-bit
...
Similar bug as before in #10776 , but now in other code.
Closes GH-12726.
2023-11-19 16:45:53 +01:00
Niels Dossche
a963b1fbd9
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-12721: SplFileInfo::getFilename() segfault in combination with GlobIterator and no directory separator
2023-11-19 11:53:21 +01:00
Niels Dossche
0a3b891ba1
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12721: SplFileInfo::getFilename() segfault in combination with GlobIterator and no directory separator
2023-11-19 11:52:58 +01:00
Niels Dossche
4d41dffb4f
Fix GH-12721: SplFileInfo::getFilename() segfault in combination with GlobIterator and no directory separator
...
This broke in 7cd8879
and 9bae9ab
. NULL is a perfectly valid return
value that should be handled.
Closes GH-12722.
2023-11-19 11:52:27 +01:00
Niels Dossche
91279cfdc0
Use binary search for cp932ext*_ucs_table lookups ( #12712 )
...
* Use binary search for cp932ext*_ucs_table lookups
A large amount of time is spent doing a linear search through these
tables in the CP932 encoding. Instead of that, we can add sorted
versions of these tables that also store the index of the non-sorted
version and perform a binary search on those sorted versions.
This reduces the time spent from 1.54s to 0.91s for the reference
benchmark [1].
[1] https://github.com/php/php-src/issues/12684#issuecomment-1813799924
* Fix search bounds
2023-11-18 12:09:12 +01:00
Niels Dossche
3ad422ebd0
Avoid temporary string allocations in php_mb_parse_encoding_list() ( #12714 )
...
This brings execution time down from 0.91s to 0.86s on the reference
benchmark [1].
[1] https://github.com/php/php-src/issues/12684#issuecomment-1813799924
2023-11-18 12:08:59 +01:00
Peter Kokot
a35a69ff0f
Clean duplicate headers check ( #12710 )
...
- AC_CHECK_HEADERS already includes the header(s) listed in the first
argument, so additional net/if.h is redundant.
- The crypt.h is checked two times and HAVE_CRYPT_H is only needed in
ext/standard.
- Remove duplicate <string.h> in ext/standard
- Remove duplicate <string.h> in getaddrinfo check in configure.ac
2023-11-18 04:20:36 +00:00
Peter Kokot
de85e4a6d3
Remove unused PDO_MYSQL_MODULE_TYPE variable ( #12711 )
2023-11-18 04:18:15 +00:00
Jakub Zelenka
500b0fee40
Merge branch 'PHP-8.3'
2023-11-17 19:44:45 +00:00
Jakub Zelenka
b3947744c7
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-17 19:43:34 +00:00
Jakub Zelenka
f90b40416f
Fix #50713 : openssl_pkcs7_verify() may ignore untrusted CAs
...
Closes GH-12499
2023-11-17 19:42:28 +00:00
Niels Dossche
6f215e0727
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix
Fix GH-12702: libxml2 2.12.0 issue building from src
2023-11-17 19:58:57 +01:00
Niels Dossche
2b42b73c0b
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix
Fix GH-12702: libxml2 2.12.0 issue building from src
2023-11-17 19:58:31 +01:00
Niels Dossche
3167d07603
Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix
...
The namespace data is freed and set to NULL, but there remain references
to the namespace declaration nodes. This (rightfully) confuses libxml2
because its invariants are broken. We also have to remove all remaining
references from the subtree. This fixes the data corruption bug.
Closes GH-12681.
2023-11-17 19:47:08 +01:00