Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129904 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id A50C11A00FA for ; Fri, 23 Jan 2026 17:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769188005; bh=qA5lEQ/rPN/gDJVj0ANyBiKmiMNgj8wwb7cROwf94jw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PSOpzvfQ5sqGDTNYJlNrBs+TQmUonwDbalmWf+c5qbX75fxwZ/jVkot6LgVcgamhx 6IHyxnd/Kwg+ZUEwweNK0R6GgM1nDsbW6Sr4AlAgNuiHkaIAKhSBKv3DRl2X6c7ttT DzHqTc7LDNUcj4HDdzEXdXHGcLFjvqZolxk72KOwWrwl8R0co8LOUE5L8iAzCUdN44 +Ju2QtoZnP3Wtn2LX/kWgPTK1J18zJdVLUg6UjZqQRTGXmo4yh7m4ix6zSWMFcC89x jt6GWaxnLKBoHJnYwjcxS2A/eiTzHrHDo9+fu6DrzhFoxskPnyePcJVERjLuz8+wer tjOZ+cMIjNDIw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B56F1808D9 for ; Fri, 23 Jan 2026 17:06:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 23 Jan 2026 17:06:40 +0000 (UTC) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-65801ce918eso4984561a12.2 for ; Fri, 23 Jan 2026 09:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769187995; cv=none; d=google.com; s=arc-20240605; b=BR3fBBvI7NTXE2zvMs7UChBy7sDk68vCbDumQRlCY7TGB7hy10tAhB0NkbHTDw9cSG l7LS8IJ8VAoJwYpS3fUnPTzoovECIoEGscr06Oc4XCSv9I6j8g+KtR1qWis1oxCJhaTK 02e3eDqhS9o3Ltv+YbOBGJDGwI39BPrdAOgX1RYisrdw4GYcOdqDYdRTq1qn/sFCmCDR j/FKuNTD1AwrFB2QlNnhG/5BnJLcm/5g0Q8HTDqVAG6W0xKkmBVH7uhfxHKimz30+lhK Xrmh4YvpKFACrFpc97GpRpMbZZ8pDydm6fpZuhIzGvMBzBpLBg92OzgdwBlOTOWxVXXQ mEbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kFujMzUWL/GqCJL3SUl1vbjrtTiFZ16K/IFTTk2S7OY=; fh=Ofn+XpSLefQyxrNYeqFK5V6BgIEzMTvoqvpJ6/SQfuk=; b=MjdPHnIkgl6w9rGnXyIBDyC7hBW/EKLQUznqVsrtv7rKg+fPax5kRAVx0EaNeqMK2u iPq2m5YBQ6SDDEsBH7/bg4KYuICRsJxcS3+Gxw18Exw+cuLP1WnFEFCbKC0xHRLUiv3A EhWvO4hJ3nv+4G2mvDzp64gFZ5fcm32Q9Y3M/ZndLcwphC67e917qDYd3xOrifSbUvuK +alvsSmY9OVVshPg6tnbYoTa8eqpC9sGXbcGujsEEWlBWsPdMQiltLfoH9OBFEJmW2VY zOUq6iE+0INdL+dLTabOasl9Tj2ORYAtKP1HEZ0oqoXcXzHxJvwguRRpqsOey3rqWy4D QIVQ==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769187995; x=1769792795; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kFujMzUWL/GqCJL3SUl1vbjrtTiFZ16K/IFTTk2S7OY=; b=kXooZyWm8IKIeSpQjCrVjCVL/r8Z6iOcR8S5rMkOXNzDLvH4/qjgvqIJUv7W/u2Tie 732pOJwdAiyyHGDiAo44mKpO1Ukv67oafrQPN4vN2Ga98lEcQ2o0IcaSPBLvldFWZJX2 MUZ8PMitLnIMC81IZPX+V/LgELQAs1MgdqfcSFHM3vPqbrXOT9FCwUJRZOhIQLSSzCi4 m6cQORZIjc19cThqyPyRU7qOS8/1Mfx/3PPCgrgpB/OZ/KNXWzspZZvQQi1nD05RP9Ns XKO5wCt/zoI1qtBw1X3xb7h5RlRAzKx1Ur669Kr3KMasFdM19ElmqRzHKedPMghSSp1h dgLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769187995; x=1769792795; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kFujMzUWL/GqCJL3SUl1vbjrtTiFZ16K/IFTTk2S7OY=; b=JF+3Pbh3W4PCMFM/wI/SaVjyvYxm5eR9E270qSwBF+mLckWIUe8b6DZ9+0bJPT2SET nWndDbM9MmvPAo/D1SRe0H5nMtyaB2q4YV1CUe1YXFY9aSAsThWTR+gU51SbcFmLJtxf LQAaG2rFUeD9rFcvy2QUon6RK+PpJz3y7LdKHmt+rSDPVBgt6shdX/fmsR1lmwmOHBgI W8IrKhALQ9ESLwl8f5Qc0H0xlifsEv6+d2Y8p41yp9KeOVrio6SWOIcGAJCalj239/ZA 0eidVUqF6IDZr9G1rjJ5pELEAwt1JJpW45hH9+OF8bxyEPMuaLM3AB6BxJRtqp9k6qeA zviw== X-Gm-Message-State: AOJu0YyWGShruhHJ2yZVgl64Uv6Q2znlIPLmWEeLqtrU/yzk05ZZ2Xc9 uta9dcnAtI2rwoSYMPjgU7jgsN+Y0+uwAI1TPJsUXQ5KemXi5PU4V3W7rqi77HNlp3vo8zZwWzj tXUUzmqAc6TUKZRqAWqdDROIyys7NzCGDBQ== X-Gm-Gg: AZuq6aLWHyxuAbSzkcTzcjntt50WLiadb2fJoxSy2KSPHIWer7Rr8BpjnxjptB3guM9 y4DWjhwfvSfeqQ0XRiQbPwxth+pam3PNCZrWntyDneEuZ8bs+8jBN7nxQalTofRbU8vLibX624w 26JPnkoQjy7eFL0XSEZBbomju78+ST7yyIOdoInOqq9pHs7sXkvAxdz/lHC4UeSsOaVSwIPjB5f xGr/SPYNmTjbXBPQ7ST3zTp5ywn6RnRdsDWmq6fxYCKDA/F7gJ1x9UXjVz0Y+4MM6iuAt9tP/H0 qvaQf2UEKG0J/w== X-Received: by 2002:a05:6402:1ecf:b0:653:af6c:12c4 with SMTP id 4fb4d7f45d1cf-6584874fc06mr2422492a12.6.1769187994499; Fri, 23 Jan 2026 09:06:34 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <53f11b44-11c1-4b23-a8be-c7846262a49c@app.fastmail.com> In-Reply-To: <53f11b44-11c1-4b23-a8be-c7846262a49c@app.fastmail.com> Date: Fri, 23 Jan 2026 18:06:23 +0100 X-Gm-Features: AZwV_Qjyb5Ihc7Vu12iUr68ggUDIKJmr0AhuY2C4cFPKt3EzV1CubmdzI1Y27Oc Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.daubois+php@gmail.com (Alexandre Daubois) Hi Larry, Le ven. 23 janv. 2026 =C3=A0 17:06, Larry Garfield = a =C3=A9crit : > 1. This really feels like two separate RFCs. I'd rather see them as two = separate RFCs than one mixed RFC. Indeed, we'll be working on separating the RFCs. Let's consider this one as the fuzzy casts one, and the soon-to-be-created RFC will only talk about Stringable. > 2. I tend to agree with other commenters that we should leave the existin= g casts alone, and instead add a new, more reasonable type conversion opera= tors (for some definition of reasonable). I shared my point of view about this solution in my responses to others. Don't hesitate if something's unclear or bothers you! > 3. Unlike the other commenters, I am 100% in favor of allowing `string` t= o accept Stringable in strict mode. Strict mode basically broke Stringable= , and that's been an annoyance for a long time. I know some feel that Stri= ngable is always and forever a bad thing, amen, but I don't agree. It has = ample valid use cases, even if it can be abused. I want my Stringable obje= cts back! :-) Let's work for that! =E2=80=94 Alexandre Daubois