Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129939 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 24DC01A00BC for ; Tue, 27 Jan 2026 11:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769512397; bh=nRaHtKNhXy5N6Lz41CDSzR4RRKftkYKnobibalbqGZI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TFlKfXJJmpojkfgkHPSNEvT/3myq4Awek+3qI5jQiTPCao3UJ6XH6E6xzf72rT+nC yASv/0WX0i2D5BgF1Q3XIMAi6En9BveVCZmjcfmyhkEYojvFoXdSA4wyjZVvWUY8bC znarPOvDFRvlLZc1rx2X160m69jAPWp1laUaauEYr/KIvjwr5AeLUa7kE1tyY0eHxA 8KzxnMaNOmPPFpWO5wu1BTDauvCxV6za9XwBugnR83h0lLzkzrMe/WoUm8MWCIKdXl hv5t3wsVG8e+bfZsmWN4+NmW9jalTUlxApfwhj8PZpqQq26ZeLSRAeGpYeIEZy796e n+Z/7V3b0FBMw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A40791801D5 for ; Tue, 27 Jan 2026 11:13:16 +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,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (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 ; Tue, 27 Jan 2026 11:13:16 +0000 (UTC) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-6611cab8ca3so1834654eaf.3 for ; Tue, 27 Jan 2026 03:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769512391; cv=none; d=google.com; s=arc-20240605; b=DSpdxm4hxP1yDQvHR7szL9molkwnGrtHBVYagDdkIlIHGtjHQO5q5XQ0HRn5T7YykV H+4F6JrUAtvaWpLGWIkDvk6Q3TooM0niceAX2C73pifgFT+X7Ps1HVzqdHGrjgCOlbA6 5GqIpX2tfsWcQewIA4kuaviS/7LKuEy+4oBs1mTVzXQ/OdrUoZPGHbVDdlhhaEKj+KVJ 4Hhr0omWzd0KQDK0qGkmMzcFVWxaSUD6j5vBhe4gVQDwZga81gTx7SwGrAPqvEB9EVnK e3MSzUMNywHLL5/TRHcggJrU7DrJufP+0vQuZFISD6NDBG3dNBOmY01sNkF1OM+MGb3r FBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=bh67wa7M2TKI2FQ0ENSnQl5vrHgGhJ8qPhzVxz8vnFQ=; fh=P7/tW8lNawnyq/6I6b8+Np5E56VC/ihc62tOGAGnA/g=; b=gxQx3XO8Re3N3aqK6jsqKbPUcht2ismavZb9f/XTgz9UUtlPvNhX9o4hKfmXvKHY+a 6huios5oa020tneqO2wD0UPhf96peDkcHInK5r3KWu44TIJ7vJbbkIg0koCtJrCjZsXO cjafYYl4SlBtBy+mENDSiyBzDyU/6r7K5+gpG1tCqToeM1UKJO3TNJcLwbpuqYnueCC2 npWRGkVafJlfMtv6IUzrVTVJID70ZqJGxX60Adh+RFUTTWm7p3LFHOxgbOI2sBok8pC1 P4XTphDJx3daeKgaEs4u6pVyc/+yDvnCPXgjNDdTHma2yRRPKEN5/mKldhdzxTi+tvi7 8uKg==; 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=1769512391; x=1770117191; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bh67wa7M2TKI2FQ0ENSnQl5vrHgGhJ8qPhzVxz8vnFQ=; b=j8oFrGEzPZlBHFlOzkjpYsXYVGz+7yuOWGnPvpFueMNCffbYfJeZvZaKkJg6/NqTLr 8Z03wMbDmOnMl2tVdP0B+WN2lsTOtHNnmdTPxd20g2+KNrJ10WdYstMz/abcYumNZ2Bk LhYzuvqegqegvEBlwQ7Db8v3csvAz0C9/9OamBeC+UMXPf/Ri5I4bsD4pyyAo2zxEaHN M/6t1L4UtxmRYrx+tpyLlilqDG85juAnVmmAUSen1gBgVcLD11qnWJVie0OfaaFQBbFM iLRH/SXBZETRB6vyx7McX6Cm3I4loWgmh0w5Z+FBPeLRZvDtb+3qPSuJJu7APui2zoY1 tYsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769512391; x=1770117191; h=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=bh67wa7M2TKI2FQ0ENSnQl5vrHgGhJ8qPhzVxz8vnFQ=; b=XySJLkkkhXyAwHr4UtOMp+U06+VHnF82jn9JoHlcwFBQYH2WKnGwDB8q+tX3B8Ll4W 1kUbD2VsWajR9ZKTD97KZucLXf2D0p0D+gQG41rd1eWaGxvxC8dRvb7pxigOfJrtdCau yQnEPVUIsEJYBWUpQ4DFb80CXVj2i4waMBTqI/g5YdfrM0T1pSy3SIMb2oRr4YXL/014 mm+65XLD+EJ/9NlmN70sPQ3WRQSJ7PAhHP9+noXVjqachn1fdArdIez84iTZ+0ohOYIp E0s7302VIau2giIk3V6WnLA0uP4LSFN+dX1+WHQmt4jj4kNY1PSyu7Ao+o2P3kK0mDXH HJ0w== X-Gm-Message-State: AOJu0YyHRGPUb+238j8sUb7Q/RttEk9uaNjo3BErJaj+u99h20tLg/Yq Mrskzc6s3l/BwCfXBtQNm3QzUNIxC6/BSriMt5AlQYx1kvzDBIFCFTKzJhJArPXInR9ycfOOeKr GOU5JlQ7mNx1IXrthCeD3ZEC9BgkndQIQrA== X-Gm-Gg: AZuq6aI5S1PALlBMQ6uyk3bl0Zn+g+emTws+ymIZUPZQv84UCyvl3ECZ/VEI+njX0sj 35PJc2m4jE5e62Ud3cwrNOmkoUBSN4+Z3ufhYmPMF9my/lmQimZAUpvi0mFVxDKTMWDayLkViek uieAvqFnDitmPTTIMeuUuzTq3F3AEkI0VK+nWoiuCYYGVbIrbRjjtzPPTTNnDzdi3HT8CTfY7vl sFKWoAAYSibGot0TxfdNvQ43Iqe4+7Iig04kLWNoNKXvbbMIv6nvcTbTfYauF2W7Qap7eeBQyac jMVhmnTzj67LxdVUrHxJDatShpVSJJhpGnNHTxPe7nS/3YCFTTHSk48= X-Received: by 2002:a05:6820:2008:b0:65c:fff0:818e with SMTP id 006d021491bc7-662f2159f16mr784775eaf.63.1769512390634; Tue, 27 Jan 2026 03:13:10 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <94dd62b3-7e5c-4162-9bef-042498ff7059@app.fastmail.com> In-Reply-To: <94dd62b3-7e5c-4162-9bef-042498ff7059@app.fastmail.com> Date: Tue, 27 Jan 2026 18:12:58 +0700 X-Gm-Features: AZwV_QjvBr-JZ-wqoxIVFAoo-dxDJCllSLaga0gDIgVLx6GPEs8l0FA8UFpbmMo Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode To: Rob Landers Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000007832e606495cb532" From: pierre.php@gmail.com (Pierre Joye) --0000000000007832e606495cb532 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Rob, On Tue, Jan 27, 2026, 4:41=E2=80=AFPM Rob > > That being said, I think the more proper solution is to simply remove > strict mode instead of making casts stricter. > Why I use "strong" and not strict. no cast magic, new operators for explicit cast as type, etc. everything else pretty much ends as less "magic" and does not remove the issues. Php was great in the early days, get some numerical string, do some math's, response and everyone was happy to get things done in a few lines of code. That time is somehow over (can still be done but not without some sanity first :) best, -- Pierre @pierrejoye | http://www.libgd.org --0000000000007832e606495cb532 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Rob,=C2=A0



=
On Tue, Jan 27, 2026, 4:41=E2=80=AFPM Rob=C2=A0

That being said, I think = the more proper solution is to simply remove strict mode instead of making = casts stricter.

<= /div>
Why I use "strong" and not strict. no cast= magic, new operators for explicit cast as type, etc.

everything else pretty much ends as less &quo= t;magic" and does not remove the issues. Php was great in the early da= ys, get some numerical string, do some math's, response and everyone wa= s happy to get things done in a few lines of code. That time is somehow ove= r (can still be done but not without some sanity first=C2=A0 :)

best,
--
Pierre

@pierrejoye | http://www.libgd.org<= /div>
--0000000000007832e606495cb532--