| Summary: | После обновления с 7.2 до 7.3 перестал работать opcache | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Vitaly Lipatov <lav> |
| Component: | php7-opcache | Assignee: | Anton Farygin <rider> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | naf, rider |
| Version: | unstable | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Bug Depends on: | 30496 | ||
| Bug Blocks: | |||
Проверил, что на php 7.2.30 ещё работает (на p8), а на php 7.3 (из p9) opcache не работает. Это потому что-то в php7-opcache-sapi-names.patch commit 7b028de0a885b7dd021c9023ac95f9f15b0d1e8c Author: Anton Farygin <rider@altlinux.org> Date: Sun Nov 10 10:14:28 2019 +0300 update ALT sapi names for php-7.3.0 удалил обработку apache2-mod_php, заменив её на apache2. Проверено, что обратное исправление лечит:
diff --git a/php7-opcache-sapi-names.patch b/php7-opcache-sapi-names.patch
index 64a551d..fd16d9c 100644
--- a/php7-opcache-sapi-names.patch
+++ b/php7-opcache-sapi-names.patch
@@ -5,7 +5,7 @@
{
static const char *supported_sapis[] = {
- "apache",
-+ "apache2",
++ "apache2-mod_php",
"fastcgi",
"cli-server",
- "cgi-fcgi",
Спасибо. Отправь в репозиторий, пожалуйста. php7-opcache-7.3.17-alt1.3 -> sisyphus: Thu Apr 30 2020 Vitaly Lipatov <lav@altlinux> 7.3.17-alt1.3 - Rebuild with php7-7.3.17-alt1.3 Thu Apr 30 2020 Vitaly Lipatov <lav@altlinux.ru> 7.3.16-alt1.3 - fix SAPI name (ALT bug 38412) |
opcache_get_status() возвращает false <?php $r = opcache_get_status(); if ($r === false) echo "FALSE STATUS"; print_r(opcache_get_status()); phpinfo(); говорит Startup Failed Opcode Caching is only supported in Apache, FPM, FastCGI and LiteSpeed SAPIs причина опять в странном массиве supported_sapis, как было https://bugzilla.altlinux.org/show_bug.cgi?id=30496 ?