Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106075 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72015 invoked from network); 26 Jun 2019 14:59:40 -0000 Received: from unknown (HELO mail-io1-f47.google.com) (209.85.166.47) by pb1.pair.com with SMTP; 26 Jun 2019 14:59:40 -0000 Received: by mail-io1-f47.google.com with SMTP id s7so1477528iob.11 for ; Wed, 26 Jun 2019 05:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kQ45FIE+3n76Us27N7YL107cRlmyEY7/abMHeU8UI50=; b=MA3SjsSlIljnL0fdDSIAXhsXJ/SPj3Asxm9US5mKOiz3VMr8MgqiKf+w0DEthGE9V4 Vrt5PVeh4J/ZZk7wM+RJ9Qe8V/aMuTMS9Irm81osE2Vs7DNOV4k8T8eW/gAqFW1rRYXZ 5hCIb/YPS0e5XYCbjeNklEJSsYNdpGMRBUTuTUjJeJhaTiXhNd3ddF+XKMX4g5Sa0/6t 2DBps9Cxb4n7bplFsx+by237iWNVmflujjNpwgHUlpTOKxXR52QNis1H8+J9+X7of4UU H/87fvtdnyOwZkFTZJTNF1XkXjQI2OhAVdExDWr2ND5TwIUu1i7UF0QZ4BJV/dXJvN7l F1xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kQ45FIE+3n76Us27N7YL107cRlmyEY7/abMHeU8UI50=; b=rNSODwbh0N9kKDkuAzP/a1qCF0LHs51Z/52b1WX20X4btWBaSx9tY1E71GlZVZd8qp xSRH/JsTaujYE9+YN7XmRtkWj9rd9fkFKdqGnQmPZiqbZsz1Jc3d1h/IJk3FVxE7hX7d skfL8nIpZuAomi8AZ1tPdneHprmdgO7HttYzusl5YVORNGGZBqHZJDugvkdoCTPr5Qrx 56bxfAF+cO1jFzH01B1ZoHXGB+0mHDdgljAjyppTDowyOhdqfIiOBS7mjb3UKvdsmMBu QxQez6nfPms/VUABzu1iJFAWKDFON+2bTAyhJ3+wiWVW86h4y98E4JsectArOYZARYAy bugQ== X-Gm-Message-State: APjAAAUILzaKyOSTNKyJS/N4EhjzxWC4nsA2nf5NaiBmHQ8B2TIGIJy1 6X3/h8A2PCluDBLcU6J/Dr1n4goi4+rA3DGqQxg= X-Google-Smtp-Source: APXvYqzX/b73bV+p6PQQN+qQ5YozTOa4v7Ce1KEF5wADzCIuPnwK+s/hgK5NwlzKrbDLxutJevjej5nQARvYmtXsLQc= X-Received: by 2002:a5d:948f:: with SMTP id v15mr4332604ioj.93.1561551363707; Wed, 26 Jun 2019 05:16:03 -0700 (PDT) MIME-Version: 1.0 References: <6D1026FF-ECF1-4604-91A8-D290D37CC238@cschneid.com> In-Reply-To: Date: Wed, 26 Jun 2019 14:15:51 +0200 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000551898058c3902bb" Subject: Re: [PHP-DEV] [RFC] Strict operators directive From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000551898058c3902bb Content-Type: text/plain; charset="UTF-8" > > Given that we already have === and !==, could the strict mode simply throw > an error for *any* use of the non-strict == and != versions? > declare(strict_operators=1); > var_dump( "11" == "11.0" ); # TypeError: "Cannot use non-strict equality > operator in strict operator mode." > var_dump( "11" === "11.0"); # bool(false) > I'm not sure whether I like the idea or not, but I thought I'd throw it out > there as a possibility. That's definitely a possibility, that I'm sure a lot of people will dislike. I personally don't have a strong opinion about it. Ben --000000000000551898058c3902bb--