Ilija Tovilo
3962f00b01
Fix spl test cleanup
2022-07-21 17:20:30 +02:00
Ilija Tovilo
ad136e6a6d
Re-add MSAN in nightly
...
This was lost when migrating to GitHub actions. I'll move this one to
GitHub as well at a later point.
2022-07-21 16:49:52 +02:00
George Peter Banyard
5b83b3a933
Fix memory leak in LMDB driver
2022-07-21 14:05:48 +01:00
Heiko Weber
3b7babf9b3
Fix GH-9017: php_stream_sock_open_from_socket could return NULL
...
Closes GH-9020.
2022-07-19 17:06:02 +02:00
Gabriel Caruso
a670d2be74
Prepare for PHP 8.0.23
2022-07-19 10:31:08 +02:00
David CARLIER
2a5b2cca85
Revert "FPM: Downgrade occasional "failed to acquire scoreboard" warning"
...
This reverts commit 3040f75f43
.
2022-07-18 14:21:07 +01:00
Felix Wiedemann
3040f75f43
FPM: Downgrade occasional "failed to acquire scoreboard" warning
...
With request timeouts configured, php-fpm occasionally prints the
following warning:
WARNING: failed to acquire scoreboard
This is happens when php-fpm checks the child scoreboards for timeouts,
but fails to acquire a lock immediately. As this can (and does) occur
during normal operation, this commit downgrades this to a notice.
Closes #9019 .
2022-07-18 12:40:16 +01:00
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
Arnaud Le Blanc
20473374fa
[ci skip] NEWS
2022-07-15 13:14:17 +02:00
Tobias Bachert
ede92a86f2
Fix WeakMap
object reference offset causing TypeError
( #8995 )
2022-07-15 13:00:48 +02:00
guoyiyuan
789a37f144
Prevent potential buffer overflow for large value of php_cli_server_workers_max
...
Fixes #8989 .
Closes #9000 .
2022-07-14 12:12:25 +01:00
Christoph M. Becker
77e954afaa
Fix GH-8923: error_log on Windows can hold the file write lock
...
On Windows, closing a file which is locked may not immediately remove
the lock. The `LockFileEx()` documentation states:
| Therefore, it is recommended that your process explicitly unlock all
| files it has locked when it terminates.
We comply, and also use the macro `LOCK_EX` instead of the magic number
`2`.
Closes GH-8925.
2022-07-12 13:36:20 +02: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
Heiko Weber
bd6793372b
FPM: Fix possible double free on configuration load failure.
...
Closes #8948 .
2022-07-08 13:11:37 +01:00
Remi Collet
2e58e9e60f
[ci skip] drop NEWS entry for reverted fix
2022-07-07 14:06:32 +02: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
Heiko Weber
325ca31dcf
FPM: zlog, fix free on wrong address for message prepend.
2022-06-27 23:34:58 +01:00
Derick Rethans
7166932bab
Merge remote-tracking branch 'derickr/bug80047' into PHP-8.0
2022-06-25 17:52:56 +01: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
Ilija Tovilo
b7f0950ffe
Add test coverage job
2022-06-24 00:19:35 +02: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
Gabriel Caruso
fcd69a4e2b
Prepare for 8.0.22
2022-06-21 11:33:20 +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
Heiko Weber
93a44f8c50
Fix potential use after free in php_binary_init()
...
Closes GH-8791.
2022-06-20 12:00:50 +02: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
fe97a5ae19
Merge remote-tracking branch 'derickr/bug77342' into PHP-8.0
2022-06-17 09:36:10 +01: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
Heiko Weber
a83363e361
FPM: Fix use after free in fpm_evaluate_full_path
...
Closes #8796 .
2022-06-16 12:18:01 +01:00
Remi Collet
26feb2e6f2
NEWS
2022-06-15 15:38:37 +02: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
Remi Collet
62f64141ef
[ci skip] missing CVE
2022-06-10 14:31:48 +02:00
Remi Collet
ba2d095fe6
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
[ci skip] missing CVE
2022-06-10 14:28:57 +02:00
Remi Collet
198f3f509d
[ci skip] missing CVE
2022-06-10 14:28:31 +02: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