1
0
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:
Ilia Alshanetsky
2009-06-25 12:41:41 +00:00
parent 068eac20ef
commit ac88f10ea0
+4
View File
@@ -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); \