summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2015-03-31 16:36:51 +0100
committerDerick Rethans <github@derickrethans.nl>2015-03-31 16:36:51 +0100
commitd252c9f8324a1fac35aac01b7de7cc800ea76865 (patch)
treebbe072e421fd408029f6c74e3bbd5c53b9862172 /ext/date/php_date.c
parent1737e44dec534d8bbbe5f8e5beefe6edc780ff10 (diff)
parent2d3868984cc0c43dd66f5aa0d2e56a92821300a6 (diff)
downloadphp-git-d252c9f8324a1fac35aac01b7de7cc800ea76865.tar.gz
Merge branch 'PHP-5.6'
Conflicts: ext/date/lib/parse_date.c ext/date/php_date.c
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 94d3a19bcd..b3f6a27c9d 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -2967,7 +2967,7 @@ void php_date_do_return_parsed_time(INTERNAL_FUNCTION_PARAMETERS, timelib_time *
add_assoc_long(&element, "weekdays", parsed_time->relative.special.amount);
}
if (parsed_time->relative.first_last_day_of) {
- add_assoc_bool(&element, parsed_time->relative.first_last_day_of == 1 ? "first_day_of_month" : "last_day_of_month", 1);
+ add_assoc_bool(&element, parsed_time->relative.first_last_day_of == TIMELIB_SPECIAL_FIRST_DAY_OF_MONTH ? "first_day_of_month" : "last_day_of_month", 1);
}
add_assoc_zval(return_value, "relative", &element);
}