Bug #71024 [PATCH]: Unable to use PHP 7.0 x64 side-by-side with PHP 5.6 x32 on the same server
| From: | ab@php.net | Date: | Mon, 07 Dec 2015 13:44:53 +0000 |
| Subject: | Bug #71024 [PATCH]: Unable to use PHP 7.0 x64 side-by-side with PHP 5.6 x32 on the same server | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197661@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71024&edit=1
ID: 71024
Patch added by: ab@php.net
Reported by: pvasilevich at odin dot com
Summary: Unable to use PHP 7.0 x64 side-by-side with PHP 5.6
x32 on the same server
Status: Assigned
Type: Bug
Package: opcache
Operating System: Windows
PHP Version: 7.0.0
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: bug71024_system_id_integration.patch
Revision: 1449495892
URL: https://bugs.php.net/patch-display.php?bug=71024&patch=bug71024_system_id_integration.patch&revision=1449495892
Previous Comments:
------------------------------------------------------------------------
[2015-12-07 10:26:05] ab@php.net
Ups, that was just two minutes async between the comments :)
Of course, adding ZCG(system_id) for CreateFileMapping will do the most fine distinction for the
compatibility of the cache. Dmitry, I could come up with a patch, or please let me know if i have to
test one.
Thanks.
------------------------------------------------------------------------
[2015-12-07 09:03:37] dmitry@php.net
It might be better to add ZCG(system_id).
------------------------------------------------------------------------
[2015-12-07 09:02:28] ab@php.net
Making the mapping filename configurable per some environment variable or INI were probably the most
flexible solution. Fe even same user could decide to not to share cache between two separate sites
even running same PHP version.
But otherwise, ZTS factor should be counted in. Also, maybe major+minor could be enough instead of
PHP_VERSION? Or nice were even the ACCELERATOR_VERSION instead of PHP_VERSION, but
ACCELERATOR_VERSION seems to be not maintained much :)
Thanks.
------------------------------------------------------------------------
[2015-12-07 09:00:29] dmitry@php.net
Adding just a version may be not enough. The next request will ask for 32 vs 64 bit, ZTS vs non-ZTS,
and so on.
We can add ZCG(system_id), that is actually MD5 sum generated by accel_gen_system_id(), based on php
version and other sensitive information.
------------------------------------------------------------------------
[2015-12-05 16:57:56] rasmus@php.net
Yeah, this makes sense to me.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71024
--
Edit this bug report at https://bugs.php.net/bug.php?id=71024&edit=1