ZendPHP January 2025 Releases
Community changes
PHP version 8.4.3 changes
-
BcMath
- Fixed bug GH-17049: Correctly compare
0and-0 - Fixed bug GH-17061:
Number::round()does not remove trailing zeros - Fixed bug GH-17064: Correctly round rounding mode with zero edge case
- Fixed bug GH-17275: Fixed the calculation logic of dividend scale
- Fixed bug GH-17049: Correctly compare
-
Core
- Fixed bug OSS-Fuzz #382922236: Duplicate dynamic properties in hooked object iterator properties table
- Fixed unstable
get_iteratorpointer for hooked classes inshmon Windows - Fixed bug GH-17106:
ZEND_MATCH_ERRORmisoptimization - Fixed bug GH-17162:
zend_array_try_init()withdtorcan cause engine UAF - Fixed bug GH-17101:
AST->stringdoes not reproduce constructor property promotion correctly - Fixed bug GH-17200: Incorrect dynamic prop offset in hooked prop iterator
- Fixed bug GH-17216: Trampoline crash on error
-
DBA
- Skip test if
inifileis disabled
- Skip test if
-
DOM
- Fixed bug GH-17145:
DOMmemory leak - Fixed bug GH-17201:
Dom\TokenListissues with interned string replace - Fixed bug GH-17224: UAF in
importNode
- Fixed bug GH-17145:
-
Embed
- Make build command for program using
embedportable
- Make build command for program using
-
FFI
- Fixed bug #79075:
FFIheader parser chokes on comments - Fix memory leak on
ZEND_FFI_TYPE_CHARconversion failure - Fixed bug GH-16013 and bug #80857: Big endian issues
- Fixed bug #79075:
-
Fileinfo
- Fixed bug GH-17039: PHP 8.4: Incorrect MIME content type
-
FPM
- Fixed bug GH-13437:
FPM: ERROR: scoreboard: failed to lock (already locked) - Fixed bug GH-17112: Macro redefinitions
- Fixed bug GH-17208:
bug64539-status-json-encoding.phptfail on 32-bits
- Fixed bug GH-13437:
-
GD
- Fixed bug GH-16255: Unexpected
nanvalue inext/gd/libgd/gd_filter.c - Ported fix for
libgdbug 276: Sometimes pixels are missing when storing images asBMPs
- Fixed bug GH-16255: Unexpected
-
Gettext
- Fixed bug GH-17202: Segmentation fault
ext/gettext/gettext.c bindtextdomain()
- Fixed bug GH-17202: Segmentation fault
-
Iconv
- Fixed bug GH-17047: UAF on
iconvfilter failure
- Fixed bug GH-17047: UAF on
-
LDAP
- Fixed bug GH-17280:
ldap_search()fails when$attributesarray has holes
- Fixed bug GH-17280:
-
LibXML
- Fixed bug GH-17223: Memory leak in
libxmlencoding handling
- Fixed bug GH-17223: Memory leak in
-
MBString
- Fixed bug GH-17112: Macro redefinitions
-
Opcache
-
opcache_get_configuration()properly reportsjit_prof_threshold - Fixed bug GH-17140: Assertion failure in JIT trace exit with
ZEND_FETCH_DIM_FUNC_ARG - Fixed bug GH-17151: Incorrect RC inference of
op1ofFETCH_OBJandINIT_METHOD_CALL - Fixed bug GH-17246: GC during
SCCPcauses segfault - Fixed bug GH-17257:
UBSANwarning inext/opcache/jit/zend_jit_vm_helpers.c
-
-
PCNTL
- Fix memory leak in cleanup code of
pcntl_exec()when a non-stringable value is encountered past the first entry
- Fix memory leak in cleanup code of
-
PgSql
- Fixed bug GH-17158:
pg_fetch_resultshows incorrectArgumentCountErrormessage when called with 1 argument - Fixed further
ArgumentCountErrorfor calls with flexible number of arguments
- Fixed bug GH-17158:
-
Phar
- Fixed bug GH-17137: Segmentation fault
ext/phar/phar.c
- Fixed bug GH-17137: Segmentation fault
-
SimpleXML
- Fixed bug GH-17040:
SimpleXML'sunsetcan breakDOMobjects - Fixed bug GH-17153:
SimpleXMLcrash when using autovivification on document
- Fixed bug GH-17040:
-
Sockets
- Fixed bug GH-16276:
socket_strerroroverflow handling withINT_MIN - Fixed overflow on
SO_LINGERvalues setting, strengthening values check onSO_SNDTIMEO/SO_RCVTIMEOforsocket_set_option()
- Fixed bug GH-16276:
-
SPL
- Fixed bug GH-17198:
SplFixedArrayassertion failure withget_object_vars - Fixed bug GH-17225:
NULLderef inspl_directory.c
- Fixed bug GH-17198:
-
Streams
- Fixed bug GH-17037: UAF in user filter when adding existing filter name due to incorrect error handling
- Fixed bug GH-16810: overflow on
fopenHTTP wrapper timeout value - Fixed bug GH-17067:
glob://wrapper doesn't cater toCWDforZTSbuilds
-
Windows
- Hardened
proc_open()againstcmd.exehijacking
- Hardened
-
XML
- Fixed bug GH-1718: unreachable program point in
zend_hash
- Fixed bug GH-1718: unreachable program point in
PHP version 8.3.16 changes
-
Core
- Fixed bug GH-17106:
ZEND_MATCH_ERRORmisoptimization - Fixed bug GH-17162:
zend_array_try_init()withdtorcan cause engine UAF - Fixed bug GH-17101:
AST->stringdoes not reproduce constructor property promotion correctly - Fixed bug GH-17211: observer segfault on function loaded with
dl() - Fixed bug GH-17216: Trampoline crash on error
- Fixed bug GH-17106:
-
Date
- Fixed bug GH-14709:
DatePeriod::__construct()overflow on recurrences
- Fixed bug GH-14709:
-
DBA
- Skip test if
inifileis disabled
- Skip test if
-
DOM
- Fixed bug GH-17224: UAF in
importNode
- Fixed bug GH-17224: UAF in
-
Embed
- Make build command for program using
embedportable
- Make build command for program using
-
FFI
- Fixed bug #79075:
FFIheader parser chokes on comments - Fix memory leak on
ZEND_FFI_TYPE_CHARconversion failure - Fixed bug GH-16013 and bug #80857: Big endian issues
- Fixed bug #79075:
-
Filter
- Fixed bug GH-16944: Fix filtering special IPv4 and IPv6 ranges, by using information from RFC 6890
-
FPM
- Fixed bug GH-13437:
FPM: ERROR: scoreboard: failed to lock (already locked) - Fixed bug GH-17112: Macro redefinitions
- Fixed bug GH-17208:
bug64539-status-json-encoding.phptfail on 32-bits
- Fixed bug GH-13437:
-
GD
- Fixed bug GH-16255: Unexpected
nanvalue inext/gd/libgd/gd_filter.c - Ported fix for
libgdbug 276: Sometimes pixels are missing when storing images asBMPs
- Fixed bug GH-16255: Unexpected
-
Gettext
- Fixed bug GH-17202: Segmentation fault
ext/gettext/gettext.c bindtextdomain()
- Fixed bug GH-17202: Segmentation fault
-
Iconv
- Fixed bug GH-17047: UAF on
iconvfilter failure
- Fixed bug GH-17047: UAF on
-
LDAP
- Fixed bug GH-17280:
ldap_search()fails when$attributesarray has holes
- Fixed bug GH-17280:
-
LibXML
- Fixed bug GH-17223: Memory leak in
libxmlencoding handling
- Fixed bug GH-17223: Memory leak in
-
MBString
- Fixed bug GH-17112: Macro redefinitions
-
Opcache
-
opcache_get_configuration()properly reportsjit_prof_threshold - Fixed bug GH-17246: GC during
SCCPcauses segfault
-
-
PCNTL
- Fix memory leak in cleanup code of
pcntl_exec()when a non-stringable value is encountered past the first entry
- Fix memory leak in cleanup code of
-
PgSql
- Fixed bug GH-17158:
pg_fetch_resultshows incorrectArgumentCountErrormessage when called with 1 argument - Fixed further
ArgumentCountErrorfor calls with flexible number of arguments
- Fixed bug GH-17158:
-
Phar
- Fixed bug GH-17137: Segmentation fault
ext/phar/phar.c
- Fixed bug GH-17137: Segmentation fault
-
SimpleXML
- Fixed bug GH-17040:
SimpleXML'sunsetcan breakDOMobjects - Fixed bug GH-17153:
SimpleXMLcrash when using autovivification on document
- Fixed bug GH-17040:
-
Sockets
- Fixed bug GH-16276:
socket_strerroroverflow handling withINT_MIN - Fixed overflow on
SO_LINGERvalues setting, strengthening values check onSO_SNDTIMEO/SO_RCVTIMEOforsocket_set_option()
- Fixed bug GH-16276:
-
SPL
- Fixed bug GH-17225:
NULLderef inspl_directory.c
- Fixed bug GH-17225:
-
Streams
- Fixed bug GH-17037: UAF in user filter when adding existing filter name due to incorrect error handling
- Fixed bug GH-16810: overflow on
fopenHTTP wrapper timeout value - Fixed bug GH-17067:
glob://wrapper doesn't cater toCWDforZTSbuilds
-
Windows
- Hardened
proc_open()againstcmd.exehijacking
- Hardened
-
XML
- Fixed bug GH-1718: unreachable program point in
zend_hash
- Fixed bug GH-1718: unreachable program point in