summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2015-03-31 16:35:03 +0100
committerDerick Rethans <github@derickrethans.nl>2015-03-31 16:35:03 +0100
commitffbd380e4483a5b36733cfd99fab779008082d11 (patch)
tree9a67ab3ce9211c46c3a320b30e615acf761531f4 /ext/date/php_date.c
parent97a1b343004058404915e9a77c5f57743dd215a8 (diff)
downloadphp-git-ffbd380e4483a5b36733cfd99fab779008082d11.tar.gz
Fixed bug #69336 (Issues with "last day of <monthname>").
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 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);
}