Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93195 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76066 invoked from network); 11 May 2016 04:49:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2016 04:49:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.161.180 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.161.180 mail-yw0-f180.google.com Received: from [209.85.161.180] ([209.85.161.180:34801] helo=mail-yw0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/92-64493-ED9B2375 for ; Wed, 11 May 2016 00:49:34 -0400 Received: by mail-yw0-f180.google.com with SMTP id j74so32341636ywg.1 for ; Tue, 10 May 2016 21:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=XUrEl/PhylA/0PY/4OtGC//tiXqlMpk94arNY0leQrE=; b=y5HFXlr5eB9e6Y3ZJ9ED9GKwurRkjKA1HdjeTepTF5ehbA++VxMLp4o/tzsRDn1iaF s6NmoD64Jryn6zPHezqALHFJdyE16EcKUs7vMPL4+MXyNZf3xPtSXqeE2M1dBMm4BHLk lNgo5gAckacbARSlVVl414zoMPD4JWbc/7vZSfyA+umDmiFYMLQfSxV3U3Qw8un7/JO6 Wlsf8/jJ/m6FwTaKutDjKwCZAeuHadNRS2kvcVpzE1vKPcCAzFXme0Ecx/EGj7JergGx IwaUBKiKyHd3PVyYAWY2a0Vtw53qE19tDWxY+IA6abRd4nD1FLiz9xbJOhZw9Y/18Vun al9w== 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=XUrEl/PhylA/0PY/4OtGC//tiXqlMpk94arNY0leQrE=; b=V29yNYLKz1e0J2u3diGsfOFlf980oKxsa2L50Psh55PzTGMhyhZCcNL09ydNNZYAJT pMtnoYw57Fn/VJrLieJPBbZABIkt4YnwEreQgrf320x3zddfPhKelAf9+hF17YkwfE9e WLvcTSwU6ROzTkdyeyc+9B9nyjdnAqcXCkbjmIcNSSEQPUFEYCgrKxLalgIWPjQ/T6AI 77Sd6qGVVmhM9lZ+A/HOhWPgLs/xF2JJuH1JSdL5X7kKP0AybYyA9AhPmB1aID0+tgum 37pQoAW6MKyfPQi/bvFKx0pAxdMDNhJtY6ONxG9Ut7egS3JR3WmONoiDhIBFdqmoWraK qsJg== X-Gm-Message-State: AOPr4FXbE0O2/C6pKCdAx38LiwHF/MzDUAKmXt4GJ4pe6V2NB8W6jzld7+uLoFAdJL4rzpnRvylZNdQjTQ4mew== MIME-Version: 1.0 X-Received: by 10.129.33.133 with SMTP id h127mr570649ywh.169.1462942172603; Tue, 10 May 2016 21:49:32 -0700 (PDT) Received: by 10.129.109.67 with HTTP; Tue, 10 May 2016 21:49:32 -0700 (PDT) X-Originating-IP: [165.120.173.102] In-Reply-To: References: <2aa755ee-0f6b-c52a-8422-05acfa30a673@php.net> Date: Wed, 11 May 2016 05:49:32 +0100 Message-ID: To: Benjamin Eberlei Cc: Matt Ficken , =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Derick Rethans , PHP Developers Mailing List , Anatol Belski Content-Type: multipart/alternative; boundary=001a1142926286b363053289c403 Subject: Re: [PHP-DEV] run-tests.php improvement for PHP 7.0+ From: pthreads@pthreads.org (Joe Watkins) --001a1142926286b363053289c403 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Morning, I would prefer adding a zend extensions section, there might not be that many in zend extensions in the wild, but there are behind closed doors= . Cheers Joe On Tue, May 10, 2016 at 7:13 AM, Benjamin Eberlei wrote: > On Tue, May 10, 2016 at 6:36 AM, Matt Ficken > wrote: > > > 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.DLL. Typically the same opcache, etc... > > feature/test should work across os platforms. > > > > ah yes of course, sorry for the noise :) > > > > > OpCache tests can just use a SKIPIF section to be skipped unless the us= er > > 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 c= an > > load/configure extensions for all tests to be run, fe: run all tests wi= th > > opcache enabled or run all tests with opcache disabled. SKIPIF code wou= ld > > 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 wou= ld > >> be > >> >> added to the php invocation as a "-dextension=3Dname.so". For opcac= he > >> >> however, that needs to be "-dzend_extension=3Dopcache.so". > >> >> > >> >> The attached patch checks for opcache in the list of extensions and > >> then > >> >> uses zend_extension=3D. I'd like to have this in PHP 7.0 and trunk = - > any > >> >> 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 > >> > > >> > > >> > > > > > --001a1142926286b363053289c403--