summaryrefslogtreecommitdiffstats
path: root/php-5.4.19-date.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-08-30 11:32:56 +0200
committerRemi Collet <fedora@famillecollet.com>2013-08-30 11:32:56 +0200
commitbaa1556f9cb482db2fc21d3a1e8586005da37240 (patch)
tree5ca4a15db027ea222ee75ee3ad2641be95555a12 /php-5.4.19-date.patch
parent18b87509e62dab3f6d56f143d1221acbf9a29f7c (diff)
php: test build for https://bugs.php.net/65564
Diffstat (limited to 'php-5.4.19-date.patch')
-rw-r--r--php-5.4.19-date.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/php-5.4.19-date.patch b/php-5.4.19-date.patch
new file mode 100644
index 0000000..6b97cd3
--- /dev/null
+++ b/php-5.4.19-date.patch
@@ -0,0 +1,47 @@
+diff --git a/ext/date/php_date.c b/ext/date/php_date.c
+index 1c97781..70960b1 100644
+--- a/ext/date/php_date.c
++++ b/ext/date/php_date.c
+@@ -2113,13 +2113,13 @@ static HashTable *date_object_get_properties(zval *object TSRMLS_DC)
+ /* first we add the date and time in ISO format */
+ MAKE_STD_ZVAL(zv);
+ ZVAL_STRING(zv, date_format("Y-m-d H:i:s", 12, dateobj->time, 1), 0);
+- zend_hash_update(props, "date", 5, &zv, sizeof(zval), NULL);
++ zend_hash_update(props, "date", 5, &zv, sizeof(zv), NULL);
+
+ /* then we add the timezone name (or similar) */
+ if (dateobj->time->is_localtime) {
+ MAKE_STD_ZVAL(zv);
+ ZVAL_LONG(zv, dateobj->time->zone_type);
+- zend_hash_update(props, "timezone_type", 14, &zv, sizeof(zval), NULL);
++ zend_hash_update(props, "timezone_type", 14, &zv, sizeof(zv), NULL);
+
+ MAKE_STD_ZVAL(zv);
+ switch (dateobj->time->zone_type) {
+@@ -2142,7 +2142,7 @@ static HashTable *date_object_get_properties(zval *object TSRMLS_DC)
+ ZVAL_STRING(zv, dateobj->time->tz_abbr, 1);
+ break;
+ }
+- zend_hash_update(props, "timezone", 9, &zv, sizeof(zval), NULL);
++ zend_hash_update(props, "timezone", 9, &zv, sizeof(zv), NULL);
+ }
+
+ return props;
+@@ -2265,7 +2265,7 @@ static HashTable *date_object_get_properties_interval(zval *object TSRMLS_DC)
+ #define PHP_DATE_INTERVAL_ADD_PROPERTY(n,f) \
+ MAKE_STD_ZVAL(zv); \
+ ZVAL_LONG(zv, (long)intervalobj->diff->f); \
+- zend_hash_update(props, n, strlen(n) + 1, &zv, sizeof(zval), NULL);
++ zend_hash_update(props, n, strlen(n) + 1, &zv, sizeof(zv), NULL);
+
+ PHP_DATE_INTERVAL_ADD_PROPERTY("y", y);
+ PHP_DATE_INTERVAL_ADD_PROPERTY("m", m);
+@@ -2282,7 +2282,7 @@ static HashTable *date_object_get_properties_interval(zval *object TSRMLS_DC)
+ } else {
+ MAKE_STD_ZVAL(zv);
+ ZVAL_FALSE(zv);
+- zend_hash_update(props, "days", 5, &zv, sizeof(zval), NULL);
++ zend_hash_update(props, "days", 5, &zv, sizeof(zv), NULL);
+ }
+ PHP_DATE_INTERVAL_ADD_PROPERTY("special_type", special.type);
+ PHP_DATE_INTERVAL_ADD_PROPERTY("special_amount", special.amount);