mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed string length
This commit is contained in:
parent
e9855b1992
commit
97156bc141
@ -2197,7 +2197,7 @@ static HashTable *date_object_get_properties(zval *object TSRMLS_DC)
|
||||
}
|
||||
|
||||
/* first we add the date and time in ISO format */
|
||||
ZVAL_STR(&zv, date_format("Y-m-d H:i:s", 12, dateobj->time, 1));
|
||||
ZVAL_STR(&zv, date_format("Y-m-d H:i:s", sizeof("Y-m-d H:i:s")-1, dateobj->time, 1));
|
||||
zend_hash_str_update(props, "date", sizeof("date")-1, &zv);
|
||||
|
||||
/* then we add the timezone name (or similar) */
|
||||
|
Loading…
Reference in New Issue
Block a user