Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129516 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 61FC01A00BC for ; Tue, 2 Dec 2025 20:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1764708029; bh=fxU1BJiP6V5ZwdszdI41RDsNnRxkfskDivL9DF2QsEo=; h=Date:From:To:In-Reply-To:References:Subject:From; b=bY3hkKCvpq7HvEiIgOcdgUTkZPiqsY8qrK98hKXtJWMfnFtEzOMsAFC0LU5zNJOfG a410xEJBUqQMUdD53Czr2Fqi2aEYOlU9Ow5CLH0EDhClfMCucRHYhsAtgfNhpWMYV2 Xo5/LXfOsZe75PSQaD+Kfi0VhKxhuiYTNYhwA9otWMDL8gjN0zL4YZHIYGfQyeAdi4 LqJvn/tu2PnDR5BGtnrGfbun1KSyIb0PURUGrLPwZu/dl4N5sZiXYAz4vRE5jKLCs9 j4L6h+ouZV8z4vxc10BZx98O26mJn5dy23iGlQBbHFGpIgALuZEqqrDdVbVHI45jUM ZAcNIsmFEzrzQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 441711804A8 for ; Tue, 2 Dec 2025 20:40:28 +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.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 2 Dec 2025 20:40:25 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id B9425EC0556 for ; Tue, 2 Dec 2025 15:40:20 -0500 (EST) Received: from phl-imap-01 ([10.202.2.91]) by phl-compute-04.internal (MEProxy); Tue, 02 Dec 2025 15:40:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm1; t=1764708020; x=1764794420; bh=BA9kNTcW8pR8f37abtNMf 5AZeP+cVkWyFs/lD/QfuwU=; b=kAY7WPSasuPemvMQNRiJAyh9iPRNOeHFXNhf6 9aVRcZ61fFVpC0ClIXvFqIrsFo5B8KahjETZTeeMy73V867UNhJEcnADkUmANde4 ahHRWjY1dulQBdemNqrl8X1lZ6Xe+2TqB87gnuQje/Qexu2iWTvy/IDUedtxfMhh x39nDrbK/oWecBN6G+2ID4paryBuzIc0UsaH6eMBcNt8LeKd1mwPl0jXx2LJjJRX P+XlE/yaU1dEj0PADe7+9l3SEl0j+cjUi1+Gkpjk3gVOIMBGYX0HttSdLsKD7gCm xSmWWNhXqbtWfUVjUTCTPs9FjyQXxqKzuhriJgwEYu6GRjEbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1764708020; x=1764794420; bh=B A9kNTcW8pR8f37abtNMf5AZeP+cVkWyFs/lD/QfuwU=; b=nVIY1IEZyQhFuE0Vi nUMZairze0CqeVZiCWk7CzCKJYdvSzwf4o0iTiIObdK3Yy+7gl5MvB+o9pseXMl3 k9NzyJwzCWSHGSk2HIIydWdlQbRBdPG1JrA/O9/YOeb25D/eTmpitgPSigL6QYTV Q4doxgRtJDSRCrmkt7KxYqa/pKIbSaqf+kAT7k3da4D+dRMKvW6hGCxhHL4/3Tb8 d3rILTuKfkmt6KwZVDFjoQVRNx7Ft2H6PHz3QEzT3V8C7kL3RVYWd4w9V3Tz0yCc lO+0A98r0CJ6u4z6KIROpbOupgzB3LqIOpyQHXstJ4y23jvpAqaXpksfxYX9ajR6 JVkaQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epofggfffhvffkjghfufgtgfesthejredtredttdenucfhrhhomhepfdfnrghrrhihucfi rghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqeenuc ggtffrrghtthgvrhhnpedugedvlefgueegheefjeetffduveeltefhfeegjeffffelgedt tdevkeegkedugfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghpthht ohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslh hishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 7161518C004E; Tue, 2 Dec 2025 15:40:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: A0wUJIXp2QXJ Date: Tue, 02 Dec 2025 14:40:00 -0600 To: "php internals" Message-ID: <37734f5d-2973-4a05-81fe-25992ed3109a@app.fastmail.com> In-Reply-To: <6FCEAC03-2EAD-440D-8D8B-6D014C16C149@koalephant.com> References: <6FCEAC03-2EAD-440D-8D8B-6D014C16C149@koalephant.com> Subject: Re: [PHP-DEV] [RFC] Pattern Matching Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Mon, Dec 1, 2025, at 7:24 PM, Stephen Reay wrote: > Hi Larry, > > Is there a specific reason why less than/etc comparison (and the future > scope of ranges) is limited to numerics? > > 'A' < 'K' comparisons are already in the language, and range() accepts > string arguments to produce an array of bytes. > > Cheers > > Stephen Because neither of us ever use comparisons on strings, as it's not super reliable, so it never came up. :-) We'd prefer to keep it numeric, as the logic otherwise could get confusing. (Personally I'd prefer to even exclude numeric strings, but that ends up being more work.) --Larry Garfield