Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93344 invoked from network); 11 Feb 2018 23:42:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2018 23:42:54 -0000 Authentication-Results: pb1.pair.com header.from=pslacerda@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pslacerda@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.45 as permitted sender) X-PHP-List-Original-Sender: pslacerda@gmail.com X-Host-Fingerprint: 209.85.218.45 mail-oi0-f45.google.com Received: from [209.85.218.45] ([209.85.218.45:42789] helo=mail-oi0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/97-18020-DF4D08A5 for ; Sun, 11 Feb 2018 18:42:53 -0500 Received: by mail-oi0-f45.google.com with SMTP id u6so9892073oiv.9 for ; Sun, 11 Feb 2018 15:42:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=StX4yuqXccZhIaPj97PBH9ZgpgiJ/9aS4UYe6PFHtYY=; b=rTRSHN7r/isf/BzJDMJTI0zAbl0BSuUNPfzTE9NsMqc/pp6VdbVq13M9zQXxzrA2PT 5ItIyzY+cJNZaHiI26XCOES9pURW5eqw6Q3O1EwQcOMB6R7Y1CuLuAz6u/Dcxh8xQV2h jACY+mLhaA2ZsW8QdBplv0/82orGLWDT/tNNibg7M72nUskHS7/6IuRLzdO+pLxLLtDL GYlm0mV4wlMTK3e339hgL8jNhkf1ga3d95rx8tU9StG+YFp5MGSs+vMw7+O7z6umLF72 mVvCDOt+VADlHzhAm1OkJNyMoIBbQw60nSgzcg3o78iLJwVQDtzjupjTXlNJ33KauZxW MGNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=StX4yuqXccZhIaPj97PBH9ZgpgiJ/9aS4UYe6PFHtYY=; b=QY/KfdkPvzWg9GhLxbWpEdEFW156FWAHdoZ8JBBW74t2NmQqI4tabm4/a/X8GR8YA6 JI/zMAuCYJuuGnA2Wt5Q8gpq6yrmpE/09ED7e/pJU7jTa6QP43fSYlnQocAT+hrB610/ ktpA/YyPYy2jGqr+9GacF2iyJDW0DBffaERwg5cMn3jR/zRXbQ8ypPC9qTvSRwp/3Lu2 mNbsM1xqPccSHiXQiXrdk3I9vxOfNRWjB35DTziMn6uVJZ/1dJw+EqY2tjecdHTm/Ac6 yI7fXtNEQHxTTSlXOzwisU1KwIXIJVqHWUIgiUU4Qh3G7ZzuNK4nskePbtQuer6Xpxpu /rzA== X-Gm-Message-State: APf1xPAGo4goLH2GBYNyY482xf5izGaceD2wBjI8QKU37VvP57NNMmei xZhbhmsy5fVy7HDx2Myaz9tgcUeVNW+hANx4NGM= X-Google-Smtp-Source: AH8x226T5CHBbodeYb9D2bI+9UG/RJ8Z1WWGwYZ6wXDxbOQwB6X2T6KUNTZaSPPK85MCq4YeD3KepxugqYN4ReUo4qI= X-Received: by 10.202.199.13 with SMTP id x13mr6309867oif.68.1518392570183; Sun, 11 Feb 2018 15:42:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.7.195 with HTTP; Sun, 11 Feb 2018 15:42:29 -0800 (PST) In-Reply-To: References: Date: Sun, 11 Feb 2018 20:42:29 -0300 Message-ID: To: "Christoph M. Becker" Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="001a1134fa9ec6846c0564f85173" Subject: Re: Proposal to run all tests with and without strict_types enabled From: pslacerda@gmail.com (Pedro Lacerda) --001a1134fa9ec6846c0564f85173 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'll check magic constants and give you a response. The skip message is up to the test developer, however at first I'll probably need to change all relevant tests and your message seems appropriated to put. 2018-02-11 20:34 GMT-03:00 Christoph M. Becker : > On 12.02.2018 at 00:03, Pedro Lacerda wrote: > > > So a new function check_strict_types() was needed to expose > > ZEND_ARG_USES_STRICT_TYPES() enabling .phpt tests to check for it in th= e > > --SKIPIF-- section if needed. > > Umm, I wonder whether a magic constant (say, `__STRICT_TYPES__`) would > be more appropriate. > > > And the implementation draft is at this repository: > > > > https://github.com/php/php-src/compare/master... > pslacerda:experimental/strict_testing?diff=3Dsplit > > Please have a look at the die()s =E2=80=93 "skip" is omitted, but the res= t of > the message is printed. Something like > > die('skip strict_types is not enabled'); > > might be more appropriate. > > -- > Christoph M. Becker > --=20 Atenciosamente, Pedro Lacerda --001a1134fa9ec6846c0564f85173--