Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105133 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80962 invoked from network); 7 Apr 2019 19:12:22 -0000 Received: from unknown (HELO smtpbgeu2.qq.com) (18.194.254.142) by pb1.pair.com with SMTP; 7 Apr 2019 19:12:22 -0000 X-QQ-mid:Yeas13t1554653316t264t21338 Received: from 14D73359B2E14ADDB4DDC3857AE32898 (me@jhdxr.com [220.255.44.152]) X-QQ-SSF:00000000000000F0F61000000000000 To: "'Andrey Andreev'" , "'Chase Peeler'" Cc: "'Christian Schneider'" , "'Dan Ackroyd'" , "'PHP internals'" References: In-Reply-To: Date: Mon, 8 Apr 2019 00:08:36 +0800 Message-ID: <00b701d4ed5c$27f77550$77e65ff0$@jhdxr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: zh-cn Thread-Index: AQI9XXP2avr9MxcY+O9x2/R0OoR+ZAJwXXhhAjNqIIICIO1sraUp1hvg X-QQ-SENDSIZE: 520 Feedback-ID: Yeas:jhdxr.com:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Subject: RE: [PHP-DEV] bool values and increment operators? From: me@jhdxr.com (=?utf-8?b?Q0hVIFpoYW93ZWk=?=) It there anyone working on this? If not, I'd like to prepare a RFC = targeting PHP 8 to address this issue. In addition, I'm thinking whether it's possible and necessary to add a = global strict mode (like "use strict" in js) in PHP 8 to deal with this = kind of unexpected surprise. I know we have declare(strict_types=3D1) = but it only works for functions and it's limited to call from current = file. -----Original Message----- From: Andrey Andreev =20 Sent: Monday, March 25, 2019 11:43 PM To: Chase Peeler Cc: Christian Schneider ; Dan Ackroyd = ; PHP internals Subject: Re: [PHP-DEV] bool values and increment operators? Hi, On Mon, Mar 25, 2019 at 5:09 PM Chase Peeler = wrote: > > 1.) Update the documentation to add booleans to the second list > 2.) Update the documentation to remove the second list - anything not=20 > in the first list is not affected. > 3.) Update the language so that ++ and -- cast booleans to ints. > 4.) Emit warnings in those cases? I don't see a problem with how it currently works, but I do see a = problem with it being silent. Cheers, Andrey. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, = visit: http://www.php.net/unsub.php =20