mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
Fixed string length
This commit is contained in:
1 parent
e9855b1992
commit
97156bc141
1 file changed
+1
-1
+1
-1
@@ -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) */
|
||||
|
||||
Reference in new issue
Block a user