Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115964 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97582 invoked from network); 6 Sep 2021 14:09:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Sep 2021 14:09:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 401431804E3 for ; Mon, 6 Sep 2021 07:46:25 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 6 Sep 2021 07:46:24 -0700 (PDT) Received: by mail-ot1-f44.google.com with SMTP id v33-20020a0568300921b0290517cd06302dso8995106ott.13 for ; Mon, 06 Sep 2021 07:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SMqldqEB7jm1Gxen2UrfiBsFWn7cwIliBmZM4ubtXzo=; b=HF3uAHiSs7dr76Q+YQ8wB2GPTIethd2h53bIFNibr07Q1UNTKp1t7bxZChqeCJAF8v JjusKvi+Sz9a49Uk7DGTvC5zcOV/LKGyYVqY6A1S0z8xG4L6AUNc270w2dnNYgYBqVXN rxJx01NnBhBEL4NtN8kxgp4NTgaKRV2VltW4IygrimOczqkqBLeQQ09/us4I1chQYZk3 l+YaSppcIaeH3pbiGvWQlcbYDuhP07wZ/Jz63zME+eJIr4m2iUA/q60K5GODTP4HzWHH xfCCkPJryIoxmmf6TL/NWhckmzQia3kS4tULtXeZo75SmuhhObOOHsdIXcp1B0WB7ZK8 FzJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SMqldqEB7jm1Gxen2UrfiBsFWn7cwIliBmZM4ubtXzo=; b=eCFxPeK8GBg9h5NS5RvjW2HCCP0vJs0fy77UYPltr8uQOIAVSHBWalDhW4nCtYzbsw R83Fa+AsQp4Nli882DN1sI7kKXO0D3y6SEC7McYryBTm8ojSi5bXPEwLjtV3I33n+rwY Ns63xia9kiXY1YF49G+Qa0JbCqxGTQ9jHhWN0QDcKlFZUIroemZ8x5QeJcIJV21pfZ4E BOcbHlkoza2X79x6rJHwTuzLF6YG0sPuvSIA1IdF6ul5kOxlP+K4DtuRPNtWxVRC9SXB 9Sijxypolj8mDm2o7XFWgHEZalSABrkDLbJG9EM9hLUUCmMNJIUiJzOoLE1Ysy9SkHwD QzYw== X-Gm-Message-State: AOAM533J+gRJZ2/Qkn5NnDhylL8pKQ4hP/IxrRzAefBIZpCYJO+hEA1q E2E8XUzASoX0RU4FW1shBEABMm+yui4y5xXjSaM= X-Google-Smtp-Source: ABdhPJzRZ8LqEFq/F4a4ORoMgMWyMWEdOXJcJ97cgoSNtfvziRoOj7HybtsrxtAH2hxA/xS/u8m5hVtPDCWeh3mj/L4= X-Received: by 2002:a9d:4111:: with SMTP id o17mr10798385ote.355.1630939581722; Mon, 06 Sep 2021 07:46:21 -0700 (PDT) MIME-Version: 1.0 References: <0A048A30-444F-4DB0-A79C-9EA9BD07B1EC@cschneid.com> <569E3A48-E3F5-46FA-BA08-D2493CE4FD33@cschneid.com> <9B6A493C-DBA6-4CF0-9AE2-DAA0A700A7D2@cschneid.com> <88103087-61a5-8f89-a146-0a77d8d28e84@gmx.de> In-Reply-To: <88103087-61a5-8f89-a146-0a77d8d28e84@gmx.de> Date: Mon, 6 Sep 2021 21:46:12 +0700 Message-ID: To: "Christoph M. Becker" Cc: Benjamin Eberlei , Hans Henrik Bergan , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Adding a way to disable the stat cache From: pierre.php@gmail.com (Pierre Joye) On Mon, Sep 6, 2021 at 7:05 PM Christoph M. Becker wrote: > > On 06.09.2021 at 14:00, Pierre Joye wrote: > > > On Mon, Sep 6, 2021, 6:14 PM Benjamin Eberlei wrote: > > > >> On Fri, Sep 3, 2021 at 11:51 PM Hans Henrik Bergan > >> wrote: > >> > >> The stat cache does not necessarily solve this issues though, only in very > >> limited cases where you work with the *same* file over and over again. The > >> stat cache only ever has exactly one entry, the *last* file that was > >> accessed. So if you work with many diferent files the stat cache does not > >> do what you would expect, to store the information of all these files. It > >> overwrites the cache with a new file entry when its not the same file as > >> currently stored. > > > > that is what happened in TS mode. For every part of a path, every single > > time a path is used (like source files in a common root path). I did not > > check it lately but I suppose it still does it. > > This is the realpath cache, though. realpath(path, 1) does not do stat anymore? I mean with virtual_file_ex and co? Not so important, too long since I touched this :) Also as someone mentioned here afterwards, instead of removing it straight away, I would go with the flag first, less risky :) best, -- Pierre @pierrejoye | http://www.libgd.org