diff options
author | Jeroen van Wolffelaar <jeroen@php.net> | 2001-09-25 21:58:48 +0000 |
---|---|---|
committer | Jeroen van Wolffelaar <jeroen@php.net> | 2001-09-25 21:58:48 +0000 |
commit | c03328857394bef36ffa9678d33079ad96e4a4e4 (patch) | |
tree | c0fb250db3b1bb996fc305bf56c2b74eb6d00935 /ext/calendar/cal_unix.c | |
parent | 158d34c9a57816326e141e88e1409d9f377dc2ea (diff) | |
download | php-git-c03328857394bef36ffa9678d33079ad96e4a4e4.tar.gz |
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
Diffstat (limited to 'ext/calendar/cal_unix.c')
-rw-r--r-- | ext/calendar/cal_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c index 2bf9b2454c..5d7f99a996 100644 --- a/ext/calendar/cal_unix.c +++ b/ext/calendar/cal_unix.c @@ -40,7 +40,7 @@ PHP_FUNCTION(unixtojd) if(myargc==1) { convert_to_long(timestamp); - t = timestamp->value.lval; + t = Z_LVAL_P(timestamp); } else { t = time(NULL); } @@ -69,7 +69,7 @@ PHP_FUNCTION(jdtounix) convert_to_long(jday); - uday = jday->value.lval - 2440588 /* J.D. of 1.1.1970 */; + uday = Z_LVAL_P(jday) - 2440588 /* J.D. of 1.1.1970 */; if(uday<0) RETURN_FALSE; /* before beginning of unix epoch */ if(uday>24755) RETURN_FALSE; /* behind end of unix epoch */ |