<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38412</bug_id>
          
          <creation_ts>2020-04-29 22:23:43 +0300</creation_ts>
          <short_desc>После обновления с 7.2 до 7.3 перестал работать opcache</short_desc>
          <delta_ts>2020-04-30 20:40:56 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>php7-opcache</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>30496</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>naf</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>189565</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-04-29 22:23:43 +0300</bug_when>
    <thetext>opcache_get_status() возвращает false

&lt;?php
$r = opcache_get_status();
if ($r === false)
    echo &quot;FALSE STATUS&quot;;
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

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189566</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-04-29 22:37:44 +0300</bug_when>
    <thetext>Проверил, что на php 7.2.30 ещё работает (на p8), а на php 7.3 (из p9) opcache не работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189567</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-04-29 22:55:52 +0300</bug_when>
    <thetext>Это потому что-то в php7-opcache-sapi-names.patch

commit 7b028de0a885b7dd021c9023ac95f9f15b0d1e8c
Author: Anton Farygin &lt;rider@altlinux.org&gt;
Date:   Sun Nov 10 10:14:28 2019 +0300

    update ALT sapi names for php-7.3.0

удалил обработку apache2-mod_php, заменив её на apache2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189568</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-04-29 23:22:06 +0300</bug_when>
    <thetext>Проверено, что обратное исправление лечит:

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[] = {
 -              &quot;apache&quot;,
-+              &quot;apache2&quot;,
++              &quot;apache2-mod_php&quot;,
                &quot;fastcgi&quot;,
                &quot;cli-server&quot;,
 -              &quot;cgi-fcgi&quot;,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189569</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2020-04-29 23:28:58 +0300</bug_when>
    <thetext>Спасибо. Отправь в репозиторий, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189602</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-04-30 20:40:56 +0300</bug_when>
    <thetext>php7-opcache-7.3.17-alt1.3 -&gt; sisyphus:

 Thu Apr 30 2020 Vitaly Lipatov &lt;lav@altlinux&gt; 7.3.17-alt1.3
 - Rebuild with php7-7.3.17-alt1.3
 Thu Apr 30 2020 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 7.3.16-alt1.3
 - fix SAPI name (ALT bug 38412)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>