The opcache PHP module works with default settings but fails when disk-caching is enabled using opcache.file_cache=path Apache will start but any php script will cause a reset on the tcp-session. http://php.net/manual/en/opcache.configuration.php#ini.opcache.file-cache The error in Apache's error-log is > /usr/local/lib/php/20160303-zts/opcache.so: Undefined symbol "zend_file_cache_script_load" FreeBSD 11.1-RC1 Apache 2.4.26 event MPM PHP 7.1.6, option ZTS enabled mod_php71
Created attachment 184007 [details] config.log As far as I can tell, it sets HAVE_OPCACHE_FILE_CACHE properly. See attached config.log output.
Hello Bernard, i can reproduce the error and will have a look at it. But i'm currently very short on time, so it will very likely take a while. Greetings, Torsten
Created attachment 184076 [details] Patch to fix issue It looks very likely that you hit this bug: https://bugs.php.net/bug.php?id=74766 Can you please check if attached patch helps you?
Hi Thorsten, Built php17-opcache with the patch and now running fine with file-caching enabled Thanks!
A commit references this bug: Author: tz Date: Thu Jul 6 12:56:15 UTC 2017 New revision: 445145 URL: https://svnweb.freebsd.org/changeset/ports/445145 Log: www/php71-opcache: Fix 'Undefined symbol "zend_file_cache_script_load"' Add patch to fix PHP bug #74766: https://bugs.php.net/bug.php?id=74766 PR: 220430 Reported by: Bernard Spil <brnrd@FreeBSD.org> MFH: 2017Q3 Changes: head/www/php71-opcache/Makefile head/www/php71-opcache/files/ head/www/php71-opcache/files/patch-zend__file__cache.c
A commit references this bug: Author: tz Date: Fri Jul 7 08:09:35 UTC 2017 New revision: 445213 URL: https://svnweb.freebsd.org/changeset/ports/445213 Log: MFH: r445145 www/php71-opcache: Fix 'Undefined symbol "zend_file_cache_script_load"' Add patch to fix PHP bug #74766: https://bugs.php.net/bug.php?id=74766 PR: 220430 Reported by: Bernard Spil <brnrd@FreeBSD.org> Approved by: ports-secteam (junovitch) Changes: _U branches/2017Q3/ branches/2017Q3/www/php71-opcache/Makefile branches/2017Q3/www/php71-opcache/files/
Committed and merged into quarterly, thanks! :)