Dmitry Stogov
bd30eff5de
Fix type inference for FETCH_DI_UNSET
...
Fixes oss-fuzz #48507
2022-07-18 13:14:15 +03:00
David CARLIER
d830a1f6f0
random extension macOs handling update.
...
Not such as fix but taking more precautions.
Indeed, the arc4random has two little flaws in this platform,
one already caught upfront by the extension (ie size 0), also
internal use of ccrng_generate which can silently fail in few rare
cases.
Closes #7824 .
2022-07-15 12:43:43 +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
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
George Peter Banyard
8fce70ae7b
Abort LMDB transaction whe trying to delete non-existing key
2022-07-01 17:26:27 +01:00
David Carlier
b3569865b3
Fix the crypt sha apis build (with recent clang versions).
...
Removing the said subtraction by casting instead.
While at it fixing werror level on phpdbg too.
Closes #8897 .
2022-07-01 05:33:12 +01:00
Dmitry Stogov
d66d477d6f
Fix incorrect condition introdused in 7cf6f17383
2022-06-29 13:08:18 +03:00
Dmitry Stogov
7cf6f17383
Fixed bug GH-8847 (PHP hanging infinitly at 100% cpu when check php syntaxe of a valid file)
2022-06-29 12:10:46 +03:00
Derick Rethans
973c3f6e24
Fixed #80047 : DatePeriod doesn't warn with custom DateTimeImmutable
2022-06-25 17:52:14 +01:00
Grégoire Paris
13f55d5c1b
Use proper grammar in error message
...
Drop period in error messages
2 reasons:
- These error messages are not regular sentences.
- Having the offending value between parenthesis after the period looks weird.
Closes GH-8858.
2022-06-25 07:39:31 +01:00
Christoph M. Becker
9405f43ba9
Fix GH-8848: imagecopyresized() error refers to the wrong argument
...
Closes GH-8849.
2022-06-23 15:20:49 +02:00
Christoph M. Becker
a8437d08a8
Fix GH-8827: Intentionally closing std handles no longer possible
...
We revert the commits which caused this regression from the PHP-8.0 and
PHP-8.1 branches for now. We keep it in "master" because of PR #8833
which may offer a proper fix without BC break.
2022-06-20 18:01:02 +02:00
George Peter Banyard
6f87a5c633
Fix GH-8563 Different results for seek() on SplFileObject and SplTempFileObject
...
With memory streams if we get a NULL buffer we must not instantiate an empty line
2022-06-20 12:47:37 +01:00
Dmitry Stogov
229e80c6ef
Fix memory leak
...
This fixes oss-fuzz #48051
2022-06-20 10:59:37 +03:00
Jakub Zelenka
e330f443c9
Fix bug #67764 : fpm: syslog.ident does not work
2022-06-19 20:05:49 +01:00
Christoph M. Becker
651e0cc187
Fix GH-8778: Integer arithmethic with large number variants fails
...
When casting a `variant` to `int`, we need to heed the proper `zval`
type, which is an signed 64bit integer on x64, while `VT_INT` is only
a signed 32bit integer.
Closes GH-8779.
2022-06-18 11:48:49 +02:00
Pierrick Charron
d84b972658
Fixed CURLOPT_TLSAUTH_TYPE is not treated as a string option.
2022-06-17 19:51:58 -04:00
Derick Rethans
b23dfe4986
Skip tests on 32-bit
2022-06-17 09:34:27 +01:00
Derick Rethans
36990aab8e
Fixed bug #77243 (Weekdays are calculated incorrectly for negative years)
2022-06-17 09:34:27 +01:00
Remi Collet
390538af2e
Fix GH-8781 ZipArchive::close deletes zip file without updating stat cache
2022-06-15 15:37:27 +02:00
Dmitry Stogov
1cd8074743
JIT: Fix missing register store
...
This fixes oss-fuzz #48023
2022-06-14 13:57:44 +03:00
Dmitry Stogov
0b8e471b3c
Fix use after free
...
This fixes oss-fuzz #47997
2022-06-14 12:44:37 +03:00
Calvin Buckley
445d9502bf
Fix handling of single-key connection strings
...
A connection string may contain just a single key, but
PHP used ";" as the heuristic to detect if a string was a connection
string versus plain DSN. However, a single-key connection string
would get treated like a DSN name, i.e. "DSN=*LOCAL". This makes it
so that "=" is used, as a connection string must contain a key.
Closes GH-8748.
2022-06-13 14:41:50 +02:00
Pierrick Charron
df4dd82ea0
Fix bad integer promotion in mysqlnd big5 charset detection
2022-06-10 12:41:54 -04:00
Jakub Zelenka
2f78c1f9d9
Fix and improve OpenSSL VCWD path checking test for bug #50293
2022-06-09 23:01:52 +01:00
Jakub Zelenka
cb9a48a0c5
Pass signature to openssl_verify in bug81713 test
2022-06-09 20:09:08 +01:00
Jakub Zelenka
b765d4cd41
Fix bug #50293 and #81713 : file path checking in OpenSSL functions
...
It introduces a single function to check file paths passed to OpenSSL
functions. It expands the path, check null bytes and finally does
an open basedir check.
2022-06-09 19:49:59 +01:00
Pierrick Charron
e2d55f2f12
Fix LONG_CHECK_VALID_INT in socket extension
2022-06-09 13:48:02 -04:00
George Peter Banyard
52eb52d652
Backport fcba0a49fc
...
Forgot this file exists in lower branches
2022-06-08 11:43:12 +01:00
Dmitry Stogov
088e5677fb
Fix memory leak
...
This fixes oss-fuzz #47791
2022-06-06 11:35:01 +03:00
Stanislav Malyshev
e864cb61a7
Merge branch 'PHP-7.4' into PHP-8.0
2022-06-06 01:11:13 -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
Yurun
bfe63f565f
Fix dblib ghtest8626 test.
...
Follow-up of GH-8628.
Closes GH-9694.
2022-06-03 15:12:09 +01:00
Remi Collet
2eb2f9d74f
Fix GH-8685 mbstring requires pcre
2022-06-03 07:53:48 +02:00
Yurun
df52903ee0
Closes GH-8626: Fix PDOStatement->execute() failed.
...
Then execute successfully, errorInfo() information is incorrect
2022-06-02 17:32:43 +01:00
Dmitry Stogov
3a8912fb7c
Fix memory leak
...
This fixes oss-fuzz #47648
2022-05-30 11:32:17 +03:00
Derick Rethans
d5e57268a9
Fixed bug #78139 (timezone_open accepts invalid timezone string argument).
2022-05-27 14:43:04 +01:00
Derick Rethans
63a31f3377
Remove trailing whitespace from test
2022-05-27 10:55:40 +01:00
Derick Rethans
8d6a828192
Mark test as XFAIL due to wrong assumptions
2022-05-27 10:55:30 +01:00
Derick Rethans
6418eba1cd
Fixed bug #74671 (DST timezone abbreviation has incorrect offset)
2022-05-27 09:33:20 +01:00
Matteo Beccati
b90201745f
Fixed test
2022-05-27 08:36:56 +02:00
Derick Rethans
209ea3ffc7
Fixed tests
2022-05-26 14:30:22 +01:00
Derick Rethans
2dcd82162e
Fixed bug #72963 (Null-byte injection in CreateFromFormat and related functions)
2022-05-26 13:49:51 +01:00
Derick Rethans
dfd1d7a531
Fixed bug #76963 (Null-byte injection in createFromFormat)
2022-05-26 13:49:51 +01:00
David Carlier
e33de9dda8
Fix pcntl Haiku build
...
guarding SIGIO constant.
Closes GH-8612.
2022-05-24 14:59:50 +02:00
Christoph M. Becker
2a13304b2e
Fix GH-8538: SoapClient may strip parts of nmtokens
...
When stripping the namespace prefix, we can assume that this does not
contain any colons, while the rest of the name may contain colons.
Hence we must not use `strrchr()` but rather `strchr()` instead.
Closes GH-8543.
2022-05-23 16:49:12 +02:00
Ilija Tovilo
f0480eb4de
Fix undefined behavior in php_set_inet6_addr
...
Postfix `++` on `NULL` is undefined behavior
Closes GH-8607
2022-05-22 23:23:47 +02:00
Arnaud Le Blanc
c12141c860
Reduce the scope of XFAIL ( #8592 )
2022-05-20 19:11:00 +02:00
Arnaud Le Blanc
f2ac4f206a
XFAIL tests (GH-8588)
2022-05-20 13:27:24 +02:00