Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103496 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28387 invoked from network); 25 Nov 2018 21:43:46 -0000 Received: from unknown (HELO mail-io1-f45.google.com) (209.85.166.45) by pb1.pair.com with SMTP; 25 Nov 2018 21:43:46 -0000 Received: by mail-io1-f45.google.com with SMTP id m19so12160227ioh.3 for ; Sun, 25 Nov 2018 10:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QQK67Va1JT8Y0FSsZzRwxooBYBUsYMh383ZtIQHsBKY=; b=UedyOcQZMxo2ZkBouffiZInbIf9JQ5ToNrY1Ge61GZs8CY4ipdhjmbJ0CxrC3AQN5Y nWip+669zrzmZufFqqcq0em72aHbKaFDpxtwMCibbJCovhoP82NNo/NVb+4yra2UuShQ 1LYZRqCHvIs7CcZbEN5+dUrZsNCc5noTLNFzrDaRWgYsIUwmxqx9bgpAiJ2tuEL4XC5d TOd3Z1Qsy2F0vgcfS+cw5GqJsjuQAN+BSCqbgVJHWWv78J+9ZVNTozSbnq3dIxk4nSeQ RUoXr4DxbeTvLXm8+/tWOtTn7Htkxyb7wN3Mb5LXQQ6eQeT0vk4HozEFxpOYG42bv5d1 WE8w== 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=QQK67Va1JT8Y0FSsZzRwxooBYBUsYMh383ZtIQHsBKY=; b=ZSUHoTwRAhgYzEreoEH549pBOEB9LFfoEvTgc1ZK76+TSAQacRN5Gbr+oemclFLmCP BXDnkaBg2KjRSjVcCoNm0dQRhIL2dkAWFBwDEvcIm/Y952Z2Fr4J4wBSY2WzdRhjcoay V4Y7JHDyCmn0HXSrYAZ4mcBwlOkXrgWeRfgmluqxaxTW6JSteZlTRhIlH1nInoZpAgOc I4Z7Ajjp42Z+o3SrXsKg7xR4nePm7vJ+4yWNHGS3AyMtQeHdw2Dc13Q8aV/uaHNfCAsM Pxqledxrm4J3P49joQnHAad0YOczYaRIvwjYZTiUJ4Gyiwhi9QVaJIj01F1UxyaGPrLK aDgA== X-Gm-Message-State: AA+aEWaNyBEFClXor+HhHe74J8es+Asg2l7ETGJqWEFKAPD2WQw9G3yn E+B91JGpTNhBZEPA4aTLIegVx6TDaNemRa8Hv/Atfg== X-Google-Smtp-Source: AFSGD/U3Zj3muX9eNkgm6/U+gJ/zjIX8O0YXIuwmCKw5tJhZysHxv9r4owSzcOPZ6QnTPvsbE8muFPJfqQZ5lirLqgM= X-Received: by 2002:a5e:df0b:: with SMTP id f11mr16728690ioq.235.1543169216785; Sun, 25 Nov 2018 10:06:56 -0800 (PST) MIME-Version: 1.0 References: <7f65012b-e26a-fb58-718b-b35569e53d03@gmail.com> <13080739.R29hdSaLfc@vulcan> In-Reply-To: <13080739.R29hdSaLfc@vulcan> Date: Sun, 25 Nov 2018 19:06:43 +0100 Message-ID: To: Larry Garfield Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000feb616057b811443" Subject: Re: [PHP-DEV] [mini-RFC] Disable opcache per script using "declare(cache=0)" From: ocramius@gmail.com (Marco Pivetta) --000000000000feb616057b811443 Content-Type: text/plain; charset="UTF-8" Even if there were definitions in said script, the same issue would arise with a directive. On Sun, 25 Nov 2018, 18:35 Larry Garfield On Saturday, November 24, 2018 11:03:01 PM CST Marco Pivetta wrote: > > Adding to the pile of "it's an edge case", since the preload scripts will > > be procedural, wouldn't it be sufficient to call > > `opcache_invalidate(__FILE__)` at the end of them? > > Are we certain that it will always be procedural? Is there a part of the > preload script design that prevents it from defining a function? > > I'd be very surprised if someone defined a class in a preload script, but > I > can definitely see a function getting defined somewhere. And if it > includes > some other file (eg, Composer may be generating one, frameworks may build > one, > etc.) then who knows what that file will have defined. > > Would that cause issues in this case? > > --Larry Garfield --000000000000feb616057b811443--