Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42379 invoked from network); 10 May 2016 06:13:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2016 06:13:22 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.48 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:35826] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/C3-11104-FFB71375 for ; Tue, 10 May 2016 02:13:21 -0400 Received: by mail-wm0-f48.google.com with SMTP id e201so162987984wme.0 for ; Mon, 09 May 2016 23:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ZlJZB3ZXeDIeeEXZijQ2Pxof69yYtsUgbsOJhseJdf4=; b=Mt6q+0ZGlTW7V4k07N8cK+jjvDgw91B2XBy68fZI+EYdlwWmLiCe8/Qq675HbNiu8q +fV7BzjuJxdi6xHpi/ylW5i/F3b4KpDp/Qba9Hed/r4bqayGZQfidwzq9iBTlgC5asAS AJ1f64H5seuhqX4SUu7PJIAge3021LdahxriQe5doeLYUVmuQnQNWasfz9tHtR//ZNFV GvgfUFS04pDrVlx+/4q2YC/0B/w1moRo2mXGiUdiYVaS+75AD+LDDH/jBwwRYbc2iKxr R6ipB4DPq8kV0Sa9obc8hohaKQ6gD4K7xWr5LrMk9BY4LKAtxhS9di4uyD5Nre+dFuep /4/g== 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=ZlJZB3ZXeDIeeEXZijQ2Pxof69yYtsUgbsOJhseJdf4=; b=bQwO1YH1aML8QKM3oZXBg5ti6QIG0zyajyw2WfcY6Z+xE/J+5wfpIpBBGBQ3Dg7Fo+ gZDd9jMnmYIJDrQaShJ72tTAEO9gJu32DbwWiIx51Qw9gJPIrV7Hsgo4kV9Xh9ECRdxV uB+pcTDiKPzf1yu61N5YX/esMPDq/zZ61wjHdpjYeCMkNX3rv9PGbZWlDt1In7ReEqr7 c4n3O3RqCIZR99WbK8q1liwTnbPUqmG5E6xXuaW9tSXafS5ndJ6k3txOkuOLXIX7m1w1 pCGPsKKu+H9YTNS0pO+gAiPlQdb5VFGXfYBJ07MgpQ3EWChdjeWvbohHyWogJx3EiZ/1 Qz9g== X-Gm-Message-State: AOPr4FX7lTm8dC7+HUhdIys1Su9OuEgoz4CnYRjqUBSOqEcF5ZGuwBGLRoYLwpcTO4kCRzmyvOL/K5/HfWcIRA== MIME-Version: 1.0 X-Received: by 10.194.116.9 with SMTP id js9mr42762275wjb.112.1462860796623; Mon, 09 May 2016 23:13:16 -0700 (PDT) Received: by 10.194.94.163 with HTTP; Mon, 9 May 2016 23:13:16 -0700 (PDT) X-Originating-IP: [77.11.25.174] In-Reply-To: References: <2aa755ee-0f6b-c52a-8422-05acfa30a673@php.net> Date: Tue, 10 May 2016 08:13:16 +0200 Message-ID: To: Matt Ficken Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Derick Rethans , PHP Developers Mailing List , Anatol Belski Content-Type: multipart/alternative; boundary=001a1130d218239867053276d2ac Subject: Re: [PHP-DEV] run-tests.php improvement for PHP 7.0+ From: kontakt@beberlei.de (Benjamin Eberlei) --001a1130d218239867053276d2ac Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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 ther= e > 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 >> 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 >> > >> > >> > > --001a1130d218239867053276d2ac--