Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60325 invoked from network); 8 Sep 2011 13:00:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2011 13:00:32 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.174 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.174 mail-gx0-f174.google.com Received: from [209.85.161.174] ([209.85.161.174:59067] helo=mail-gx0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/08-05788-D6CB86E4 for ; Thu, 08 Sep 2011 09:00:32 -0400 Received: by gxk21 with SMTP id 21so1085466gxk.33 for ; Thu, 08 Sep 2011 06:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=VJXxIL+RnM8nNnImtKVcN4UI26JIaOwnXaOaG/KgcKg=; b=RclKFVjHbpHs6ecWtVWCetwTSu6TqNHw+OLQuLUpz6eC6LH5YkCgA0uFxPB7XWZmQ4 Ai+HvHdAQTtK93aHIjiN851NOYPDhjJejPxKB7x1w9fljiJvnuyyFgGM83vaq3u+8TG6 L03rSbFYduNubJf3Z3mpa75Up1pWxLBpho0oY= MIME-Version: 1.0 Received: by 10.147.17.13 with SMTP id u13mr589687yai.31.1315486812150; Thu, 08 Sep 2011 06:00:12 -0700 (PDT) Received: by 10.147.168.14 with HTTP; Thu, 8 Sep 2011 06:00:12 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Sep 2011 15:00:12 +0200 Message-ID: To: Alexey Shein Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH] Autoguessing TEST_PHP_EXECUTABLE if none is provided in run-tests.php From: tyra3l@gmail.com (Ferenc Kovacs) On Thu, Sep 8, 2011 at 2:07 PM, Alexey Shein wrote: > Hello! > I've made some improvements to run-tests.php: > 1) Autoguessing TEST_PHP_EXECUTABLE and TEST_PHP_CGI_EXECUTABLE if > they're not provided, i.e. assume they have value 'auto'. You can > still pass your own value as usual. > 2) Added option -n (use no php.ini) to the shebang line > (#!/usr/bin/php -n) so it would run more reliably on some hosts. My > Ubuntu setup did not have E letter in variables_order (i.e. > variables_order=3DGPCS) so $_ENV array was empty and some tests were > skipped when they could be run. > 3) Some better error handling of wrong paths > > So now you can run run-tests.php with just > $ ./run-tests.php ext > instead of > $ TEST_PHP_EXECUTABLE=3Dauto php -n run-tests.php ext > > You can also run run-tests.php from sub-dir, it will correctly guess > 'auto' as well: > $ cd ext/ > $ ../run-tests.php zlib > > Please, review this patch and, if there's no objections, I will > prepare 5.4 and 5.3 versions too. for the record, the "Don't ever guess at the PHP executable location." comments was made back in 2002 http://svn.php.net/viewvc?view=3Drevision&revision=3D82472 and at time the part of the code which guessed the php binary was pretty messy, so I think that now we would be safe to use the "auto" for default. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu