Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115049 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37197 invoked from network); 22 Jun 2021 22:33:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Jun 2021 22:33:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 827E11804C3 for ; Tue, 22 Jun 2021 15:52:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10olkn2065.outbound.protection.outlook.com [40.92.40.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 22 Jun 2021 15:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NjLY81Zb0ZWx/FefjRRtR4TJLAZYZgL/+b+W2WPBiPbEaFMjGbzchVYg2G/Yo4Q0tEJDNkZctc9F7lEHDseDa8oRLrLATKiSqPnWW5TTXkN9vWGuRtbicUW+TssQ9xO0mH9rlYweVfU6Zzkv3p5sn27jqDVPmZZ9ttyYIi/htVHptVLofXcqkuQP6v5DTAuNwDej63OrNsGOsEpcKmwI/lnof4p9WsfgxVRXKtcs5TifCvcP3Kl59B6T0Qv0Em1xyKLa93OtlUhgoCATSuzGs4rloUuOTLMlR44SsP6b2yi/i3Sj1J2b6yi85kf5KvZTajZW62pkbp6o62x32qi0VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6SUW1s9IjJrDtugBr4F/mcFou2TtMM8tAvkMY7AcojA=; b=UcewW1UsRppyuB6doSNBydAe1pVX5nFbg2RnktVL7sCy3Qgt7F56aHTdnDGBAgl0mPCtruGV41I91PQZsdt/urKxvKAlafhV8AKxk2s4xXkdLbx30Hzh/Bgi8NAqevrA1TAb+z4uotF+g6y99t0ZhWDFs0yy82FioszFPzZqDeLTAMlLbZBBsnhxHqTgvB3V9QnVuvX6+/+h+YTHolwXK8AvPnpVOjKJm8Bff/fus+81TyH8DSjNZMiDuEMOO+CLBQVrNJ8c4r6Aw503l7RRw0eX2R8dniJ2gg76CIpZbbeyIf6Hek4VNXB8nTeST4Rk2cgdoaQS0L8qRhwrRt+teA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6SUW1s9IjJrDtugBr4F/mcFou2TtMM8tAvkMY7AcojA=; b=DGbPxd9zPTs1EtHCPP1djlQuLPKN9Xq6GfjteUn9s3pjqAC8zWckYXLHKFEZ4nwUfcWJAw45+LSRmp1nt/Ldn/for6p9DmsDpO5qkNuYnDq4YWnyuq9xlZYZdK37YHXaafdLdPvj/lZyNTFnd+tBU8k3WODJbRtlVt0pQQpzn8h/8PEcL37KYQDWzmnJz3/Z18pQdg9kzyUap38hr/XBcF1N+tbhyQfkPqUmRCtBXSl8hoXmFwGIAWZhARPNomA0KAFUwfay7EdbrjEQzc1iFI1Icf1DBQPDF3hnY05SjU7N2UhpQngpN+lTSacym0IJsNtYmRIW/8XVeVaQDGcOrg== Received: from MW2NAM10FT033.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e87::45) by MW2NAM10HT127.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e87::368) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.21; Tue, 22 Jun 2021 22:52:10 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e87::47) by MW2NAM10FT033.mail.protection.outlook.com (2a01:111:e400:7e87::195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Tue, 22 Jun 2021 22:52:10 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::20ed:6cd1:4fe2:eea7]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::20ed:6cd1:4fe2:eea7%3]) with mapi id 15.20.4242.023; Tue, 22 Jun 2021 22:52:10 +0000 To: PHP internals Thread-Topic: [PHP-DEV] [RFC] Deprecate boolean to string coercion Thread-Index: AQHXZ7OB6GZEDXMVZEGn7/p0UH3M06sgodc1 Date: Tue, 22 Jun 2021 22:52:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:625257F346E1A783188FFA5A0425694A198BA161465B5162A3FEE6E5BD785369;UpperCasedChecksum:A4376BE37F89AE261BEB77907D34D8AB2852A8B0D5E5EC7F29C4E2BB6388ADCF;SizeAsReceived:7026;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [UeghTd5PPGT4Ogi5ynvsfZaW5zzf0/aZtaHfClzws7swVo+445RBbr20aep+BDKY] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 51842503-2f07-4eca-e14c-08d935d05e3e x-ms-traffictypediagnostic: MW2NAM10HT127: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6w9lGnXI4LKvIehicg3EZYzLeGYBMFPvWXUI1MCdyyycWC6D0/uT9Pr+JPxFpkiih7oyeQJZP7SyN/IggHoREhvVcHNlfDpdF1ZOaNLfWw6MV60wuqzPJruDk1sAYKfJe4zSgQhAilKsPTlycEl7qYYizVyyC408wWJJ3yCvFYtXH2ov4//EfFR8Zy1nel8UE+5bQyKxz4zw19Mr7KWp0BZSEpRrxqJ8zJGgRmdo7E79MMERYYeBZH+AO7yAIiyASu3Yx95Da3wkg4DZd5/WUt/JTpBC/uJiiwf9uRnrgFMDDVi94v98cSOoQwPI8iVK6kDuKCiQdymbgH/LJ+OPOIiUaXDA3qWDo0OQucqZV0igxcYv0KikXLd7LWd1mhFYBIUisQT33bgvoqtjN+4PWGVeuWVdCYTOrHUlbS1itTEsuBmMzj2Qq+WdhKAQAhi5TFaqjcSQLFIOBdaHzVnLQMmcsE9Eeyvjik0u98t8MQU= x-ms-exchange-antispam-messagedata: ZORRJIup1lOIILkrdYUDIxxhBHucyK2P8l/7hrwmiJNs6FrP42n86bPhibSqe9ubK1oJ5cA/ZIsxZzb27Of26LXGgKAELGmRmejaEWlpJq/FyuOY+toX0TDH441uLPSA7LKoXiZoZYZBqL9pkVPnrVthjGmbEp/cGLK8qE6ChIcuMUJjeiQvuKdStXjwuR7PLh7j9lP/eAO1jMbhNkJxVQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: MW2NAM10FT033.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 51842503-2f07-4eca-e14c-08d935d05e3e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2021 22:52:09.9345 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM10HT127 Subject: Re: [PHP-DEV] [RFC] Deprecate boolean to string coercion From: tysonandre775@hotmail.com (tyson andre) Hi George P. Banyard,=0A= =0A= > With Ilija we are proposing a short RFC to deprecate coercion from bool t= o=0A= > string:=0A= > https://wiki.php.net/rfc/deprecate-boolean-string-coercion=0A= > =0A= > As this is the final day for any RFC to be even able to land in PHP 8.1= =0A= > the voting is expected to start in two weeks on the 6th of July.=0A= > =0A= > The implementation is yet to be done but is expected to be rather=0A= > straightforward and finished within the week.=0A= =0A= I'd agree any casts from booleans to strings are usually a bug in the appli= cation=0A= =0A= Something I'd like to see in the rfc: What's the intended behavior (notices= ) of `sprintf('%s', false);` (functions internally casting to strings)=0A= What about `echo true; print(false);`, etc.=0A= =0A= Thanks,=0A= Tyson=