Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93138 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36365 invoked from network); 10 May 2016 04:36:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2016 04:36:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=themattficken@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=themattficken@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.51 as permitted sender) X-PHP-List-Original-Sender: themattficken@gmail.com X-Host-Fingerprint: 209.85.218.51 mail-oi0-f51.google.com Received: from [209.85.218.51] ([209.85.218.51:35222] helo=mail-oi0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/E2-11104-46561375 for ; Tue, 10 May 2016 00:36:52 -0400 Received: by mail-oi0-f51.google.com with SMTP id x19so1657731oix.2 for ; Mon, 09 May 2016 21:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=iDETjydHKdp6kzZN8xdsa+O47gNARxSaEnMu9SBenRU=; b=sZGfc00x+d3eGkZAlVPPaFv44qkogexEJUm6rJhpEAdJBZUzkPiN47ILJHZ2GiahZp h7s/FgcWamSWKyZ1v/WsQJGb24ilSfWxaMi971zSUcXirNiP8fFC63Rj0m6lehwS/ze9 4yOOxwKCtyvEehFkrhaNS0jIBkx59eta/SbSUhPviXQ+TIRGROOG1xMiPf0HEt0gEf3X gnXL4Fq/cQurfs2KF7ixgB6COxIwOiPlTNvwwPfogAZ/NaTgcwU82kMS7ebdZi9ZLCfQ BsAUcpRr2TAp9CAbwuD8Tex99MgEJZRBdMhiyvdtGeoFLqv8++mYFQiLd5Kw3jcKX2YL T+DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=iDETjydHKdp6kzZN8xdsa+O47gNARxSaEnMu9SBenRU=; b=HvFsSfUbEdK3cUvozqTOQ3TaJ9fKvaVfOHIGeZ7r47D2JYKwxQ1L3nVx5IgzwWuhox keEzKRrG8ZZSypKSLwY1dXUJh9+JhyUTNqcnOtOVJEFWNGiAQ00/WSm8JQ5Dj9FL26PO 20zGPBOIfNyQ3uqrFMsLMA0pAxEXH9kAb03VfcpwEloRw9mou9O16VppXksSrgs27Slo +X0hCrE14IwxiEM4ywd3+CaA4XpXgpMFZtJX1BGSVtZXSyyKsH/R+np6X+mah7gWgDWG CbZjIXFDX1I5p9wNhNcHdb7pz2q8I0c0tcWodnVFapVECB1TRjZB6klgiFV+IpW1w0NF QCdw== X-Gm-Message-State: AOPr4FWKP0KaU8vhO6Fgr52HT7oIeisJ35ofBJ0xex9h3AcM/AO7n1NsHzzEZ4VyBFW2H5Eq0aZBDheHtecAcQ== MIME-Version: 1.0 X-Received: by 10.202.213.148 with SMTP id m142mr14391448oig.24.1462855009701; Mon, 09 May 2016 21:36:49 -0700 (PDT) Received: by 10.202.102.31 with HTTP; Mon, 9 May 2016 21:36:49 -0700 (PDT) In-Reply-To: References: <2aa755ee-0f6b-c52a-8422-05acfa30a673@php.net> Date: Mon, 9 May 2016 21:36:49 -0700 Message-ID: To: Benjamin Eberlei Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Derick Rethans , PHP Developers Mailing List , Anatol Belski Content-Type: multipart/alternative; boundary=001a113b08503619b805327579d1 Subject: Re: [PHP-DEV] run-tests.php improvement for PHP 7.0+ From: themattficken@gmail.com (Matt Ficken) --001a113b08503619b805327579d1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable An INI section wouldn't have the extension directory path AND wouldn't have the name of the SO to load. On Windows, its zend_extension=3Dphp_opcache.DL= L. Typically the same opcache, etc... feature/test should work across os platforms. OpCache tests can just use a SKIPIF section to be skipped unless the user has configured OpCache to be loaded. Forcing OpCache to be loaded makes sure that test gets run during a casual test run (somebody just running `make test`). That's what a ZEND_EXTENSION section would do. There are several new section types already. If you really want to add a ZEND_EXTENSIONS section, that's fine. It is important though to have SKIPIF code that checks for such zend extensions being loaded: That allows for backwards compatibility. Also, that will avoid a mismatch with PFTT... PFTT has scenarios that can load/configure extensions for all tests to be run, fe: run all tests with opcache enabled or run all tests with opcache disabled. SKIPIF code would allow such PHPTs to be skipped or not for those scenarios, otherwise there is a mismatch in features between PFTT and run-test.php. Regards -M On Mon, May 9, 2016 at 9:07 PM, Benjamin Eberlei wrote: > On Tue, May 10, 2016 at 2:51 AM, Fran=C3=A7ois Laupretre > wrote: > > > Hi Derick, > > > > > > Le 09/05/2016 =C3=A0 20:36, Derick Rethans a =C3=A9crit : > > > >> Hi! > >> > >> I've recently been having some looks at issues between xdebug and > >> opcache, and this meant that I need to write a test case for it. > >> > >> Ages ago I added support for the "--EXTENSIONS--" section in .phpt > >> files, to load extensions that the test 'depends' on. Each item would = be > >> added to the php invocation as a "-dextension=3Dname.so". For opcache > >> however, that needs to be "-dzend_extension=3Dopcache.so". > >> > >> The attached patch checks for opcache in the list of extensions and th= en > >> uses zend_extension=3D. I'd like to have this in PHP 7.0 and trunk - a= ny > >> objections? > >> > >> cheers, > >> Derick > >> > > > > I know there are not so many Zend extensions around, but I would > > definitely prefer a 'ZEND_EXTENSIONS' section. > > > > Wouldn't this work by just using --INI-- instead? > > --INI-- > zend_extension=3Dopcache.so > > greetings > Benjamin > > > > > > Regards > > > > Fran=C3=A7ois > > > > > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > --001a113b08503619b805327579d1--