Bug 220430 - www/php71-opcache: Undefined symbol "zend_file_cache_script_load"
Summary: www/php71-opcache: Undefined symbol "zend_file_cache_script_load"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Torsten Zuehlsdorff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-02 09:58 UTC by Bernard Spil
Modified: 2017-07-07 08:14 UTC (History)
0 users

See Also:
tz: maintainer-feedback+
tz: merge-quarterly+


Attachments
config.log (88.78 KB, text/plain)
2017-07-02 11:04 UTC, Bernard Spil
no flags Details
Patch to fix issue (1.13 KB, patch)
2017-07-05 13:58 UTC, Torsten Zuehlsdorff
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Spil freebsd_committer freebsd_triage 2017-07-02 09:58:45 UTC
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
Comment 1 Bernard Spil freebsd_committer freebsd_triage 2017-07-02 11:04:16 UTC
Created attachment 184007 [details]
config.log

As far as I can tell, it sets HAVE_OPCACHE_FILE_CACHE properly.
See attached config.log output.
Comment 2 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-07-03 14:27:52 UTC
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
Comment 3 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-07-05 13:58:15 UTC
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?
Comment 4 Bernard Spil freebsd_committer freebsd_triage 2017-07-06 12:31:54 UTC
Hi Thorsten,

Built php17-opcache with the patch and now running fine with file-caching enabled

Thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-07-06 12:56:30 UTC
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
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-07-07 08:10:00 UTC
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/
Comment 7 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-07-07 08:14:27 UTC
Committed and merged into quarterly, thanks! :)