Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127484 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 6606C1A00BC for ; Tue, 27 May 2025 18:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748369148; bh=XFfAAna6X7j9sJXTvQ19uNgSEqRWmnxrgEe8o4UayD4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=anK67FH5pCr/6QzEfxncWa4NHk2bIkYKDRnC/1asI0YOQlvMe1J27+dNFFeQGDaAT tb/YrgGUGGXFzU0bPaQu+5EJtXuNQ5nwQ3frbJI/x7L6gdJk3E88w5UTqbFcFuVZcr HcJx3lqMZHGzn0OsVhPKb+1haF9x9OIkrWpfBYciDeskKt1+aff/ugR8eVuCDnNvYo s/dRrO+O1qDOlqXbALeo0vV73xjGNrv0YQPpcWayfhe4osQW6Lu5tNmN6QMIupK17x 8MVRZWOZeopsWDYFHtmkqrPLcemcCaZ4U1i3koXrPuhK2nDhgFYSq5nAhRZoewiGmu OvD/wfQhsWYGg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A64B1180061 for ; Tue, 27 May 2025 18:05:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_20,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 May 2025 18:05:47 +0000 (UTC) Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3fbaa18b810so597881b6e.2 for ; Tue, 27 May 2025 11:07:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748369273; x=1748974073; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XFfAAna6X7j9sJXTvQ19uNgSEqRWmnxrgEe8o4UayD4=; b=BKzP2yIV+MmMUfwRm0qQllBIOPHsNGRKpJJtKxmXWTWwf2rYuM8g+hfriKnx+bPa4J 5dtI061PUQbwM4eZvFeflUCYj7qFYAJ91qB/mk7+NGqmMDsBWnoTj1fTvh6SDNhqUS4e LGawDAtt5eKIp3jirnyvXsO8n3+773DPIXXXG0jAcCLmMzY37U7kQwsVoUUXlq3wfaN3 Txh4BEER66pn8EwWOFJ21I5NSr5vMJEdzgTjzXkwwNJ3Hu9d+UcR5KZmlHzYffJO6kQ/ x3T5imGLwOYxn1FNY8lwqca1mpganqRR60gHBxLIrGqzuVsGSixA6IhIfPWueHXIuwdH PVGw== X-Gm-Message-State: AOJu0Yw3ogqhxrk0RU7i8UEPy8IQTmJYgRhxnZiMqixnYEtqpXkbfD2i c1mKVi8NINYBj6bVS8KIuFF77S/vKn7yfOUkmCI7pcQeZI/8S6o5DOnMC1Nl5IMJfHJ2Yn/MjfL 9iW051zfyQpv8Gg5GQPgmLgkfJa80DFM= X-Gm-Gg: ASbGncs/KCc2ePM/LpV2r86etoun6Lw0/k6YXMrkZpVL81sK29gePrZQR0sFtcyUg4k uac9/6rgg04QWj6xMwH/2deLg7m/sYa/fa9YDAsVYp1QQpMH4f5CfgVjcWXgqQvoX588IFNmuKT QEeWEUNtPh6hahST/YFiChGuePObH3NVxYK/mNZgZegpg= X-Google-Smtp-Source: AGHT+IFqMkrYo8/3PZ7dxbXYEhjwBZ9Yo02Kbo2KmQeF46rPp1defuMaZHESD996IHitwV3mHGbjYqFkmdTdmTRMRUM= X-Received: by 2002:a05:6808:3309:b0:400:8252:a657 with SMTP id 5614622812f47-4064681c2e6mr9278855b6e.5.1748369273351; Tue, 27 May 2025 11:07:53 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <7bdbd839b20d233e26e7901ae093ce1b@bastelstu.be> In-Reply-To: <7bdbd839b20d233e26e7901ae093ce1b@bastelstu.be> Date: Tue, 27 May 2025 12:07:37 -0600 X-Gm-Features: AX0GCFt31ReS8uCp90S6CJPqbm0LOIP3yB_ABti5Rlq1fQDgDVFPR79VMpFDo3g Message-ID: Subject: Re: [PHP-DEV] [RFC] Make OPcache a non-optional part of PHP To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: php internals , Ilija Tovilo , Arnaud Le Blanc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: levim@php.net (Levi Morrison) On Mon, May 26, 2025 at 4:49=E2=80=AFAM Tim D=C3=BCsterhus wrote: > > Please find the RFC including more details at: > https://wiki.php.net/rfc/make_opcache_required Quoting from the RFC: > OPcache being a non-optional part of PHP and always being loaded does not > mean that OPcache functionality is always active. This RFC specifically > does not propose the removal of the existing INI settings, such as > opcache.enable or opcache.enable_cli. To me, being able to turn off opcache defeats the purpose of putting it int= o core. In fact, take this part of the RFC's introduction: > As an example, OPcache needs to explicitly be compiled and loaded when > using the PHP =E2=80=9CDocker Official Image=E2=80=9D, making it easy for= users to > accidentally run without OPcache when using Docker. Furthermore OPcache > being optional and just =E2=80=9Chooking=E2=80=9D into the engine also me= ans that there are > two entirely separate code-paths for core PHP functionality (such as > loading and compiling a PHP script), which can easily result in > OPcache-specific bugs (such as #17422) that are hard to detect during > testing. If opcache can still be disabled, and isn't enabled by default in CLI, then in practice we still have all of these issues. The engine may not have to care about "is opcache around?" but it still has to care "is opcache enabled?" Dropping the first part isn't that helpful if the second part sti= ll has to be asked.