From ccbeeb8a8cf1157eaf01550d4d6b479883bbcae7 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Mon, 18 May 2015 21:52:01 +0200 Subject: [PATCH] php: enable opcache extension in php.ini if selected Add a line to load the opcache extension in php.ini, at the bottom of the "dynamic extensions" section. Signed-off-by: Floris Bos Signed-off-by: Peter Korsgaard --- package/php/php.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/php/php.mk b/package/php/php.mk index bc3794af88..6e0e216ea0 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -301,6 +301,9 @@ define PHP_INSTALL_FIXUP $(TARGET_DIR)/etc/php.ini $(SED) 's%;date.timezone =.*%date.timezone = $(PHP_LOCALTIME)%' \ $(TARGET_DIR)/etc/php.ini + $(if $(BR2_PACKAGE_PHP_EXT_OPCACHE), + $(SED) '/;extension=php_xsl.dll/azend_extension=opcache.so' \ + $(TARGET_DIR)/etc/php.ini) endef PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP -- 2.30.2