From ffbd380e4483a5b36733cfd99fab779008082d11 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 31 Mar 2015 16:35:03 +0100 Subject: Fixed bug #69336 (Issues with "last day of "). --- ext/date/php_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/date/php_date.c') diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 0819b45df4..7f05bab99e 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2989,7 +2989,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); } -- cgit v1.2.1