Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72111 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19048 invoked from network); 3 Feb 2014 19:58:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 19:58:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; 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:64260] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/4F-35654-1E4FFE25 for ; Mon, 03 Feb 2014 14:58:25 -0500 Received: by mail-lb0-f177.google.com with SMTP id z5so5576759lbh.8 for ; Mon, 03 Feb 2014 11:58:22 -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=q0zCpnSfPiNl/F2zl4m2Fh2SHcpSgaXTJLYJ9aoW3mI=; b=uBChfnls/ggFGQ2QmbiOq1kgnZULg3vvgvI1fLGwVT9kf9Ix71YByhUsSnT4dyPRdy xjUxUB8kLzc50T/o58/DF6iyI+gFz9nhCnI1+DZotS0ZWwEQFki1x7u5tCFacM64fwt4 lwvy61DFHZupgdnaCti7GHMY5K8jGwIm21gWEMsE8wdECPzSstHIr+sMk5zkH89c4hfd dz15qSzhbtk0o+ab6kaOzoROojGhGiSF9G9qOB5zqgc/9LE7x4V1ASIZ2AsPnSqZXVxn Lnvdkzcxi3TakYAejUngNnqNQ0mm4mKTwsQ7OuZrvsYLM0XGB/16FVRe2ZGJplBDgbj7 FVAw== X-Received: by 10.152.1.168 with SMTP id 8mr24943lan.74.1391457502114; Mon, 03 Feb 2014 11:58:22 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Mon, 3 Feb 2014 11:57:41 -0800 (PST) In-Reply-To: <52EFF13F.4050704@sugarcrm.com> References: <52EF4BF8.60005@sugarcrm.com> <52EF7ADA.8090001@lsces.co.uk> <52EFF13F.4050704@sugarcrm.com> Date: Tue, 4 Feb 2014 04:57:41 +0900 X-Google-Sender-Auth: QQrcUfdDV0aiUUKHhSADFmpkeJI Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e013c6b4c223c0204f185f232 Subject: Re: [PHP-DEV] Declare minimum PHP version required? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e013c6b4c223c0204f185f232 Content-Type: text/plain; charset=UTF-8 Hi Stas, On Tue, Feb 4, 2014 at 4:42 AM, Stas Malyshev wrote: > > 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. > > Managing requirements is a job for package manager, like composer, not > language compiler, IMO. I agree that good package manager should manage requirements. However, once code is installed, package manager will not check requirements. (Package manager could be made to execute requirement checks at any time, though) Therefore, there would be developers embed environmental checks to make sure not to die with function not found, etc. In addition to this, there would be SCL for RHEL7 and there are some tools like phpenv. Installing PHP does not have to be executing PHP. Even if there is good package manager, compile time requirement check is nice to have. It's nice to have and it's not must have, though. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e013c6b4c223c0204f185f232--