Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101830 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97698 invoked from network); 12 Feb 2018 01:33:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2018 01:33:19 -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 74.125.82.178 as permitted sender) X-PHP-List-Original-Sender: pslacerda@gmail.com X-Host-Fingerprint: 74.125.82.178 mail-ot0-f178.google.com Received: from [74.125.82.178] ([74.125.82.178:41974] helo=mail-ot0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/18-18020-DDEE08A5 for ; Sun, 11 Feb 2018 20:33:18 -0500 Received: by mail-ot0-f178.google.com with SMTP id r23so12608942ote.8 for ; Sun, 11 Feb 2018 17:33:17 -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:cc; bh=cvV5hYqGqCbtXhjsBJ+3KdMFi/z7EXp4Qrkupwu9nnI=; b=DgIFOakpaTAg9orv7eCowVn4ibzg4a+rN3aXcr/zx1apNANL7KooBpU/5kf6DH1sUg dDpdi4cq9tw7pSMTAhDQeuu50q70ehanOxCbs8fc09yZywOQGNK88rfYC1HxgYEI0FmT CJlg0Cp3+M72b67PhNgIwAi3eens32MpdO7JA5i1IfRLaO+Co05hw+2f4N1FV0tDyepl CcurUiQkEkrbKkIqQHkQOy+I5ViIMzTkOghGvCAIhMucr4qRYoRksNi0uBEAN5oqckxZ O/xH41rV6IrvTUfdoMyADCdof866qzSq5WpK1CRsdivRH8fp43K37WR72VqQHQ0pzjtf IRRg== 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:cc; bh=cvV5hYqGqCbtXhjsBJ+3KdMFi/z7EXp4Qrkupwu9nnI=; b=bdYNroEKtr1kLJ3D3Hdi9RZuNNVGOqI+JtJ40F2F21AUsryL0X0qE08CtRB+VZMI7U rosbple0gM563H17CpyzQE+2BJLpQMt16xRXjrug+bLefYDw/FJKD42t3wxuI13sOAKl Ww4DUVlU5ngjk3xml7NmhmGc+Py5hp+lPLrAjCNXOtY3F+a+O7tEp17x2D/3RGv+/maf VKvZwVpG9e1EILuVQpkM9KcBQihP/5AKltbgJUUQvvwfiZ/549ZrROYUv4J9VR5EJsvG 4ZG4MbL+L53tEvQkI8cEncMr2kzqyeB5ynKXOJbVfmIeHZDrS99oucps8XzAZbgqZOAI t9pg== X-Gm-Message-State: APf1xPDaXVVqhNvNuDWIPk/Q4qnhWsMh+oHVjSmXuNhTVeKTaQTEe9Ht RAyn4mTnwm8v7hIsnaMV7tzJuHCt4AOprk+fS7NeeEqN X-Google-Smtp-Source: AH8x227iqaSwdqJlZChEEwTfdiQ6Y3mSNzoUVkw4Gnf9pM2SG7zsBkmT3xtAeojMsslxagT81RdFTZP2CAUgrNjdbGs= X-Received: by 10.157.25.166 with SMTP id k35mr7100976otk.275.1518399194749; Sun, 11 Feb 2018 17:33:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.7.195 with HTTP; Sun, 11 Feb 2018 17:32:54 -0800 (PST) In-Reply-To: References: Date: Sun, 11 Feb 2018 22:32:54 -0300 Message-ID: Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="94eb2c09cfa8a162960564f9dc58" Subject: Re: Proposal to run all tests with and without strict_types enabled From: pslacerda@gmail.com (Pedro Lacerda) --94eb2c09cfa8a162960564f9dc58 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I agree with `__STRICT_TYPES__`, give me some time so I can try reimplement `check_strict_types()` as a magic constant. Maybe the idiom `if (expr) die("reason");` is a bit verbose or cluttered for a single expression `SKIPIF` section. A `die_if(expr, reason)` function could be available in that context, or even `skip_if(expr, reason)` because makes more sense there, albeit is a bit repetitive `SKIPIF skip_if`. 2018-02-11 20:42 GMT-03:00 Pedro Lacerda : > 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 t= he >> > --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 re= st of >> the message is printed. Something like >> >> die('skip strict_types is not enabled'); >> >> might be more appropriate. >> >> -- >> Christoph M. Becker >> > > > > -- > Atenciosamente, > Pedro Lacerda > --=20 Atenciosamente, Pedro Lacerda --94eb2c09cfa8a162960564f9dc58--