[ACCEPTED]-Fatal error: Call to undefined function easter_date()-php
If you use a
Dockerfile based on
php:7.1, you can install 1 the
calendar extension easily:
RUN docker-php-ext-install calendar && docker-php-ext-configure calendar
Seems like your php has been compiled without 1
I simply had to enable the calendar extension 1 in php.ini:
extension = calendar.so
Have you looked here? http://www.php.net/manual/en/calendar.installation.php
To get these functions 1 to work, you have to compile PHP with --enable-calendar .
You may but need not to recompile php with 2
--enable-calendar. You can just install php-calendar package.
For 1 your system (Linux/Ubuntu), you may run:
sudo apt-get install php-calendar
More Related questions