Req #80812 [NEW]: opcache.cache_id should be PHP_INI_PERDIR

From: Date: Sun, 28 Feb 2021 14:26:50 +0000
Subject: Req #80812 [NEW]: opcache.cache_id should be PHP_INI_PERDIR
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232433@lists.php.net to get a copy of this message
From:             aschmidt at anamera dot net
Operating system: Windows
PHP version:      7.4.15
Package:          opcache
Bug Type:         Feature/Change Request
Bug description:opcache.cache_id should be PHP_INI_PERDIR

Description:
------------
I have a Windows Service (PHP 7.4 CLI), plus two IIS web sites,
configured to run under the same Windows User ID with network
privileges, because they need to access a certain network share.

One web site was using PHP 7.3, and one web site PHP 7.4 (because it's a
development/staging site). 

In the 7.4 php.ini "cache_id" is set.

When I attempt to run the first web site also under 7.4, then scripts
will start failing, due to "Fatal Error Cannot create mutex". I'm
assuming, since both IIS sites (with different application code
versions) now share the same PHP version and UserID, this results in a
clash?

If so, would the solution be to allow different/unique "cache_id"s to be
configured in the .user.ini of each IIS site, rather than only being
able to configure a common one in the system-wide php.ini?



-- 
Edit bug report at https://bugs.php.net/bug.php?id=80812&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80812&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80812&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80812&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80812&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80812&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80812&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80812&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80812&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80812&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80812&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80812&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80812&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80812&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80812&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80812&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80812&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80812&r=mysqlcfg


Thread (11 messages)

« previous php.bugs (#232433) next »