[Bug 261488] www/php81-opcache Incorrect .ini file causes PHP Warning: PHP Startup: Invalid library

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 26 Jan 2022 07:04:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261488

            Bug ID: 261488
           Summary: www/php81-opcache Incorrect .ini file causes PHP
                    Warning:  PHP Startup: Invalid library
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: mfburdett@gmail.com
          Assignee: bofh@freebsd.org
             Flags: maintainer-feedback?(bofh@freebsd.org)

Installed www/php81-opcache with the cli lang/php81 and got this error when
running php: PHP Warning:  PHP Startup: Invalid library (appears to be a Zend
Extension, try loading using zend_extension=opcache.so from php.ini) in Unknown
on line 0

Looks like the installed /usr/local/etc/php/ext-10-opcache.ini file is
incorrect, it contains extension=opcache.so rather than
zend_extension=opcache.so

Looking at the Makefile, www/php80-opcache has this line:

USES=   php:zend,noflavors

but this line is missing for www/php81-opcache

-- 
You are receiving this mail because:
You are the assignee for the bug.