Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111063 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20838 invoked from network); 17 Jul 2020 10:33:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jul 2020 10:33:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3689F180509 for ; Fri, 17 Jul 2020 02:26:45 -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=-1.9 required=5.0 tests=BAYES_00,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 EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073042.outbound.protection.outlook.com [40.92.73.42]) (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 ; Fri, 17 Jul 2020 02:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LqALFym9iDvIO9RFovGPWkXCHEscDO/C9u5BzH9eYVy9V9Z9FH8O8l4hbt3Hgtb5AIJdLbFkb4/tjJveROJ/SbFZS3FfuZhVP/qTrqFnHQYmVtazfbnnWixufbi4TBrfP+S9FQjhPLDuUYDzxltkjR7SuFdznU+t58FZPAtwLWiC6jGCYql7DfCxyBa7mvYoMr6LMGNXXhVjNtz2aK6eAIGgLsiaXcwh0BUBv5djyufr3wNw1PaoOqQenD0Erqy2DA4qGUcZVfhkp2K3vEwtY5f4R78Ez9wLJ4CzzBmxmvM6ri+z04GY6xUS8KyrdZtE4YuQNCA42g7HlMNwg9Z4lQ== 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=HEzDGCPJI7mS6lf1ST9uHifjN8BYzGcY7xxB2YtRVRE=; b=brfr11Jabj9hSBi0qSqK8yEPX+N5iNfzU2q+DV+vAg8fSPk2BUtK83dd4xib5xpAyeY5/+ZCEfci3ukHONO6muB5xhNtuzReG6Us8nxvzUi07We2M8r1R7YRV5Wya9Cc9Lx9qGOwU3CsSNqtqz7wqkvRwNWhCeTZLJZBC8ZjpF3DvIM2xfie41/CkxQvjfsfSgiUzSDgde35vTEYnsf1LyV1kf8e/kDNs+dCM0eIfo41cHgHU1kbT0/orX1lDQNl94dCtA4+/tmqcq2xFIGawDvp/ZN5h3auQWbR6ckKDBz9ao1kXg9Uw9NhBpaj8RuWv8to1dlWPgZme6xll7W/nw== 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=HEzDGCPJI7mS6lf1ST9uHifjN8BYzGcY7xxB2YtRVRE=; b=oHt9MooG9k4aYMk6r7nyeit2fG2pClrIV72hDRukKPCHHl7mi1MqBD2NXQLAaZYjtMqYb8/BJsXPXOxBlQb90s+rRUjqAv1SPckuQ5H6YfWfAxAIoCOAuncFHoosaql7imtcGluLuey4LehweaY/FueHw+F2uF6+k43tDkaa+v/g7CrqNbVmCs1B1g8b5jb3Axkn2ETEBX9CT8K1zDABfMAWzCeP1HC0NZ7gJ3PeRan0TiXKv6kUkkPnaU7sJun8uXWNYNSEZr4XhdYtwNYrh+iNVuCRgznXtuU6DAP93e/NK6s/woxpGdaC6uTOG3iuYblmkrHo7Sqz5cD896Yb4A== Received: from DB3EUR04FT007.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::53) by DB3EUR04HT179.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18; Fri, 17 Jul 2020 09:26:42 +0000 Received: from VI1PR02MB4703.eurprd02.prod.outlook.com (2a01:111:e400:7e0c::43) by DB3EUR04FT007.mail.protection.outlook.com (2a01:111:e400:7e0c::178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Fri, 17 Jul 2020 09:26:42 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7E6F1442633647A01823F05CC51E2887F781DFF494A8F0574C06FF37127432FE;UpperCasedChecksum:ABA5E34E32240C5F476094328A435171DA1BEA5D7AD6C5A1F801EC6E8DFD112E;SizeAsReceived:7718;Count:49 Received: from VI1PR02MB4703.eurprd02.prod.outlook.com ([fe80::140a:b085:c1f0:e35]) by VI1PR02MB4703.eurprd02.prod.outlook.com ([fe80::140a:b085:c1f0:e35%4]) with mapi id 15.20.3195.022; Fri, 17 Jul 2020 09:26:42 +0000 Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Fri, 17 Jul 2020 11:26:40 +0200 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: "G. P. B." X-Mailer: Apple Mail (2.3445.104.11) X-ClientProxiedBy: AM3PR07CA0147.eurprd07.prod.outlook.com (2603:10a6:207:8::33) To VI1PR02MB4703.eurprd02.prod.outlook.com (2603:10a6:803:8f::13) X-Microsoft-Original-Message-ID: <3A9637C3-B4D3-4FFC-A5AF-54E5B85C2266@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:7e8:cbfb:7a00:f90c:b40d:5fd3:55e1] (2001:7e8:cbfb:7a00:f90c:b40d:5fd3:55e1) by AM3PR07CA0147.eurprd07.prod.outlook.com (2603:10a6:207:8::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.16 via Frontend Transport; Fri, 17 Jul 2020 09:26:41 +0000 X-Mailer: Apple Mail (2.3445.104.11) X-Microsoft-Original-Message-ID: <3A9637C3-B4D3-4FFC-A5AF-54E5B85C2266@hotmail.com> X-TMN: [WEaggyhn3keqBmSwzpeTSZL19Y+2EqyYtX/gnvWq1/G5bSTiWGGwgoxgJoCLYSc7] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6f3a9fc3-55c2-4620-93e0-08d82a3383af X-MS-TrafficTypeDiagnostic: DB3EUR04HT179: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w5yTgGm3tRQGdWGErbbYQqCc1g9X9OHONpX6VwtUpVdyc6RlGyH5TT8OjtRRutNXnJ3upa+gS/oeAjWBSowt3bftLmJ3b2N98jL59f8BWOOJiEOmMqxv0KGhlsDJ3xHnAZ8zrcJV4tPVSFx3NP9OS+UK6CD5JcY/tYGThHxkT8fE2tfVpVFdW5x4tzrZ8XKRIGl3R9aghrqQlzWm3VXV7+YcwFQ1SH0kTInx/JlVVaTgwNQkVCz3lGSXhQNw118X X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR02MB4703.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: jC/YXG7cXqKfYONC0VUiSs84dQDIv7JJYPy466anjcidw37JX76Z05WlnR02oGrHUL19ddG4QfitHlVHIzuirEUJT2vA2FyZzAAHu8eUOztXexkmK0dtsvYv1sue8iLxKt5Q8xTOREfKxMKgXvAr+95ewVQ7pDlPKuNE4Qhj4e046TJdzeWvmiyxzygM8OoJNkCzaigKIVGHMTNRmtxTtg== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f3a9fc3-55c2-4620-93e0-08d82a3383af X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2020 09:26:42.1041 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT007.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT179 Subject: Re: [PHP-DEV] [RFC] [VOTE] Saner numeric strings From: bobwei9@hotmail.com (Bob Weinand) Hey George, while I agree with your RFC in general, changing the autocast behavior of t= he empty string is not acceptable for me. Empty strings often are the output of non-existing things, like default val= ue of a text field in a DB, when reading files not filled with inputs yet e= tc. It should expose a similar behaviour to all the other falsy values, i.e= . null, false, ... The current side effects can be held in mind "ah this won't break if the in= put is unexpectedly not present, should be safe" while writing code, but fi= nding places where that sort of assumption was made is next to impossible. This should be a major step backwards from the forgiveness of PHP - especia= lly in cases where "shouldn't happen, but the behaviour is nearly always wh= at I expect, and logging will allow me to improve it". I do not want to break everything in production because something happens t= o return an empty string. I'm aware that it is different from the TypeError behavior of *userland* fu= nctions (internal functions do only emit a warning). But internal functions= are the important foundation here. This is also internal, the number conve= rsions. Hence I'm voting no on this. Bob > Am 16.07.2020 um 16:18 schrieb G. P. B. : >=20 > Hello internals, >=20 > I've opened voting for the Saner Numeric strings RFC: > https://wiki.php.net/rfc/saner-numeric-strings >=20 > This will last 2 weeks until the 30th of July >=20 > Best regards >=20 > George P. Banyard