Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46241 invoked from network); 3 Feb 2014 21:32:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 21:32:25 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.177 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:35326] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/45-35654-8EA00F25 for ; Mon, 03 Feb 2014 16:32:24 -0500 Received: by mail-lb0-f177.google.com with SMTP id z5so5694883lbh.22 for ; Mon, 03 Feb 2014 13:32:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=x5x7gchnajMu1Oe6qj1ilbrSWc3WdEcYJO8FMNZkplU=; b=KrPqyMdLumgfFj2+8Lp0XlBAlcKYGVP6dqJjS66yZCJWJZnYz5Hx2UzN4ypC2rwRKy MuxtWAlIUOhuTDhRICWNpMtudnMaLjL9/0BnquSHOPE2ioDTpyucMZFDMRl+bR4l7VQn xJkfXajPNwMm8v5ridDstjBqRnyG7SGuBSIrNtip8TO8BxOy6p9B0D6nK7Z6L6B8pNL9 nSyhNjiwF+9Hrpbu0NuqmYTQdImqYGHuzAum5xcvBFzK5PlMB3q59xu5QW1VNQxsu0tR xxpUAZO0IxgL+k01yc/FyFO7K93/+bgdwObmzndvmpQ7AcOzmdtYRg7KlYoQovKTsVXU +pDw== X-Received: by 10.152.170.135 with SMTP id am7mr15062531lac.23.1391463131056; Mon, 03 Feb 2014 13:32:11 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Mon, 3 Feb 2014 13:31:30 -0800 (PST) In-Reply-To: <52F0089B.4030108@lsces.co.uk> References: <52EF4BF8.60005@sugarcrm.com> <52EF7ADA.8090001@lsces.co.uk> <52F0089B.4030108@lsces.co.uk> Date: Tue, 4 Feb 2014 06:31:30 +0900 X-Google-Sender-Auth: jgSa6-L1zrgf_snxQdLNkZBuBA4 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0122797aa50fd204f187414f Subject: Re: [PHP-DEV] Declare minimum PHP version required? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e0122797aa50fd204f187414f Content-Type: text/plain; charset=UTF-8 Hi Lester, On Tue, Feb 4, 2014 at 6:22 AM, Lester Caine wrote: > Yasuo Ohgaki wrote: > >> Since it is evaluated at compile time, run time check is not needed at >> all when >> byte code cache is used. >> >> There are many code out there checks if (!extention_loaded(foo')) >> die('You need >> foo'). This is waste of CPU resources once it is checked. These >> requirements for >> scripts may be evaluated at compile time and script runs a little faster. >> > > And if the system you are running no longer has your 'byte code cache'? > I'm still running eaccelerator as it's the base for all the legacy systems. I don't think type of byte code cache matters. I could be wrong. Anyone? BTW, if you use legacy system with legacy code, there would not be declare('requirements') or like. If there is, you get E_WARNING. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e0122797aa50fd204f187414f--