mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix memory leak in intl_datetime_decompose()
This commit is contained in:
commit
5e21ffe09a
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ U_CFUNC zend_result intl_datetime_decompose(zend_object *obj, double *millis, Ti
|
|||
}
|
||||
// TODO: Remove this when DateTimeInterface::getTimestamp() no longer has a tentative return type
|
||||
if (Z_TYPE(retval) != IS_LONG) {
|
||||
zval_ptr_dtor(&retval);
|
||||
spprintf(&message, 0, "%s: %s::getTimestamp() did not return an int", func, ZSTR_VAL(obj->ce->name));
|
||||
intl_errors_set(err, U_INTERNAL_PROGRAM_ERROR, message, 1);
|
||||
efree(message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue