summaryrefslogtreecommitdiff
path: root/ext/calendar/cal_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/calendar/cal_unix.c')
-rw-r--r--ext/calendar/cal_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c
index 1d3401283d..4738772649 100644
--- a/ext/calendar/cal_unix.c
+++ b/ext/calendar/cal_unix.c
@@ -35,7 +35,7 @@ PHP_FUNCTION(unixtojd)
if (!ts) {
ts = time(NULL);
} else if (ts < 0) {
- zend_value_error("Timestamp must not be negative");
+ zend_argument_value_error(1, "must be greater than or equal to 0");
RETURN_THROWS();
}