mirror of
https://github.com/php/php-src.git
synced 2025-01-06 02:43:34 +08:00
2047fa858c
. support for diffing date/times through date_diff() / DateTime::diff(). . added DateInterval class to represent the difference between two date/times. . support for parsing ISO intervals for use with DateInterval. . date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an interval to an existing date/time. - MFH: Fixed bug #44742 (timezone_offset_get() causes segmentation faults).
26 lines
751 B
Plaintext
26 lines
751 B
Plaintext
dnl $Id$
|
|
dnl config.m4 for date extension
|
|
|
|
sinclude(ext/date/lib/timelib.m4)
|
|
sinclude(lib/timelib.m4)
|
|
|
|
PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
|
|
timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
|
|
lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
|
|
|
|
PHP_NEW_EXTENSION(date, php_date.c $timelib_sources, no,, $PHP_DATE_CFLAGS)
|
|
|
|
PHP_ADD_BUILD_DIR([$ext_builddir/lib], 1)
|
|
PHP_ADD_INCLUDE([$ext_builddir/lib])
|
|
PHP_ADD_INCLUDE([$ext_srcdir/lib])
|
|
|
|
PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h])
|
|
|
|
cat > $ext_builddir/lib/timelib_config.h <<EOF
|
|
#ifdef PHP_WIN32
|
|
# include "config.w32.h"
|
|
#else
|
|
# include <php_config.h>
|
|
#endif
|
|
EOF
|