mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix memory leak on ZEND_FFI_TYPE_CHAR conversion failure
This commit is contained in:
1
NEWS
1
NEWS
@@ -34,6 +34,7 @@ PHP NEWS
|
|||||||
|
|
||||||
- FFI:
|
- FFI:
|
||||||
. Fixed bug #79075 (FFI header parser chokes on comments). (nielsdos)
|
. Fixed bug #79075 (FFI header parser chokes on comments). (nielsdos)
|
||||||
|
. Fix memory leak on ZEND_FFI_TYPE_CHAR conversion failure. (nielsdos)
|
||||||
|
|
||||||
- Fileinfo:
|
- Fileinfo:
|
||||||
. Fixed bug GH-17039 (PHP 8.4: Incorrect MIME content type). (nielsdos)
|
. Fixed bug GH-17039 (PHP 8.4: Incorrect MIME content type). (nielsdos)
|
||||||
|
|||||||
@@ -808,6 +808,7 @@ again:
|
|||||||
if (ZSTR_LEN(str) == 1) {
|
if (ZSTR_LEN(str) == 1) {
|
||||||
*(char*)ptr = ZSTR_VAL(str)[0];
|
*(char*)ptr = ZSTR_VAL(str)[0];
|
||||||
} else {
|
} else {
|
||||||
|
zend_tmp_string_release(tmp_str);
|
||||||
zend_ffi_assign_incompatible(value, type);
|
zend_ffi_assign_incompatible(value, type);
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user