com php-src: Fixed string length: ext/date/php_date.c

From: Date: Fri, 07 Mar 2014 13:06:13 +0000
Subject: com php-src: Fixed string length: ext/date/php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77685@lists.php.net to get a copy of this message
Commit: 97156bc141fe1cd87d4b19ef71f26fc7cb3d7f90 Author: Dmitry Stogov <dmitry@zend.com> Fri, 7 Mar 2014 17:06:13 +0400 Parents: e9855b199263c452c0be2d32752c848da54a95fd Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=97156bc141fe1cd87d4b19ef71f26fc7cb3d7f90 Log: Fixed string length Changed paths: M ext/date/php_date.c Diff: diff --git a/ext/date/php_date.c b/ext/date/php_date.c index adfb2ca..3c582b2 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -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) */

« previous php.cvs (#77685) next »