mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
Fixed bug #48678 (DateInterval segfaults when unserialising)
This commit is contained in:
@@ -2316,6 +2316,10 @@ static HashTable *date_object_get_properties_interval(zval *object TSRMLS_DC)
|
||||
|
||||
props = intervalobj->std.properties;
|
||||
|
||||
if (!intervalobj->initialized) {
|
||||
return props;
|
||||
}
|
||||
|
||||
#define PHP_DATE_INTERVAL_ADD_PROPERTY(n,f) \
|
||||
MAKE_STD_ZVAL(zv); \
|
||||
ZVAL_LONG(zv, intervalobj->diff->f); \
|
||||
|
||||
Reference in New Issue
Block a user