1
0
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 in intl_datetime_decompose()
This commit is contained in:
Niels Dossche
2025-05-24 14:56:04 +02:00
2 changed files with 4 additions and 0 deletions

3
NEWS
View File

@@ -2,6 +2,9 @@ PHP NEWS
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.4.9 ?? ??? ????, PHP 8.4.9
- Intl:
. Fix memory leak in intl_datetime_decompose() on failure. (nielsdos)
- Phar: - Phar:
. Add missing filter cleanups on phar failure. (nielsdos) . Add missing filter cleanups on phar failure. (nielsdos)

View File

@@ -118,6 +118,7 @@ U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
ZVAL_STRING(&zfuncname, "getTimestamp"); ZVAL_STRING(&zfuncname, "getTimestamp");
if (call_user_function(NULL, z, &zfuncname, &retval, 0, NULL) if (call_user_function(NULL, z, &zfuncname, &retval, 0, NULL)
!= SUCCESS || Z_TYPE(retval) != IS_LONG) { != SUCCESS || Z_TYPE(retval) != IS_LONG) {
zval_ptr_dtor(&retval);
spprintf(&message, 0, "%s: error calling ::getTimeStamp() on the " spprintf(&message, 0, "%s: error calling ::getTimeStamp() on the "
"object", func); "object", func);
intl_errors_set(err, U_INTERNAL_PROGRAM_ERROR, intl_errors_set(err, U_INTERNAL_PROGRAM_ERROR,