Bug #71024 [PATCH]: Unable to use PHP 7.0 x64 side-by-side with PHP 5.6 x32 on the same server

From: Date: Mon, 07 Dec 2015 14:13:46 +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-197662@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_1.patch Revision: 1449497625 URL: https://bugs.php.net/patch-display.php?bug=71024&patch=bug71024_system_id_integration_1.patch&revision=1449497625 Previous Comments: ------------------------------------------------------------------------ [2015-12-07 13:44:52] ab@php.net 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 ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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

« previous php.bugs (#197662) next »