Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128587 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 3FF361A00BC for ; Thu, 28 Aug 2025 18:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1756405347; bh=WNztEh+r2Q89rUrXGelI8F2kd+f5WjcI8N/cwrvTCWU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=WaCoWFaUedsgRvv1BUa0t2gyjqMKN+JiTfIAz1G8g322HMW3yzpOjIkK0Y52BKD5H hozDvy6wtVIZUJiB+jwfE+h8DImdarKMTLvWvY52uT93trTsgkZ6XY9u9C1md8HrvP FHlHjf0dUFEGhOyUWzwSFjFQ0nWl0KVf0c0dR5TxltdG7YJb8ipUXEKJ8pVu5LS2mf hNOXS7r5rfXTJpd41AX/T8TTYTmFU3epchhmFwvD/1l44nYNomPCTFplYqYFDK8Tx+ RmOy23SUbd5kV6d5t8fAIESbOiZDQDhpQxMEHlchqsLA/BsOffryVISMIBq2lym5bL Ze/4sMTgfftOA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6BB58180068 for ; Thu, 28 Aug 2025 18:22:26 +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=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-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 ; Thu, 28 Aug 2025 18:22:26 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-45b49f7aaf5so7588615e9.2 for ; Thu, 28 Aug 2025 11:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756405436; x=1757010236; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=WNztEh+r2Q89rUrXGelI8F2kd+f5WjcI8N/cwrvTCWU=; b=dCj7Her0TzNA0Wh21rN2K3kLfSu7ElOUO6D2OhBGEND19vOr0bmUWayEqGhkHGhIkl jIThapJehBaVXbltIjr1Ms8/5fVaS9YDzmEjIsfkBmBotT+yMemSb8RHFvxy2wMa+H0p Wjegk90806fl3BE6JuIILYgajBy0cqouq6+uckjYczixO55FOOvvCgXnoyR6aQszefdV f15Za86VfAuyrygbzQWiM2upAVRd5RN2kz/BrObEm3DthGQNjdhntaX4Lyb2k7hQCOyg PgSn5/VaYzL9SKHu5oVBPHSeejqZPfKERCG8Fo6jbKEMm4Kj8+vamHWS6yTlUBT+GkRX lnbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756405436; x=1757010236; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WNztEh+r2Q89rUrXGelI8F2kd+f5WjcI8N/cwrvTCWU=; b=baaY/oxmbrvKy9NNLHmbqJDb6PVNydvKVcW9MIOe4M7t/Is2X0SXwTpv80Ril/xU43 E0OOJdlIZqLO9UQGfovUqifAwAPOaJk5OWKOacindPOdcyx1cLqOgfFefiqma+HHgwY0 rSP/4rneNpYqh5emTQhSZsEYgv3lUG8cDMV2hP/KeASOoi6F41K1FNZd1bd8WHRX5LbM 6kIn7fW71SWWKPXMWLwq7gADQiqJ9Dtoo/wNEPMqPK7ekTsN7ZUbrL7AFvvfsP6KvsrN B84WuSUewSpIkwIBtSkOAdMAEGj7NL5y1tuZe9DAtgZ4rL1d93xeYC4p0ADp+KDYrFzq H1YQ== X-Gm-Message-State: AOJu0YwXPiH+mWar9/Y+SPUc0SlBtnXdOkKfsSebXx48R3S7m9MN5OTa zU6FRObX16qe2/zhs2Hrfij+pHTKt+WsPtGS+EFfM09bYkgzLOn7SettGrtOCA== X-Gm-Gg: ASbGnctxkD72McGgSi4WKQxCBEYVgH17LPwbhB5fHJ34M97gRWM9pHXvjwUJqEBnXQ1 bCqAtv4L76fogBAEu5fyo5Jdl/R6VmZW1ZmC+m6qY2/bSGj8tI6pLDJds+u95Q8QZfKPsbC/HIM 9fnFk9rzQ90TXzB3bKNhtmuDB428FGjjpPpu6tgxHCU+lq6gih1hZdSwTd9Im712T8wJFjp/J2l 1oAMVscTT7q+Jm+Z12qZB1ERixubblbzBFBxs+lFXwIeB2VTEsbmdnr6y4fAeL0Ipc2nujBOLMZ H1PVUkLBhtwHyFU1TPED6W1k4sBp6jhWaEsErLXortq3KOkRl+5baZPuYOqA0d1d/54MvtvSGF3 rab4wTEr0qn9zFKjFIiBLJKPc2q42KKHV8P7Zp0B9YovejbpbypOvtyfa5u9ejy3OUokSalwLr4 o1wU8= X-Google-Smtp-Source: AGHT+IFZfWfwcKmNv57IP/3lWQNG98qqI81oP+w2F3GIGJoG9vEJd+544AHFX1EToZ4ee2kNdJ5exw== X-Received: by 2002:a05:600c:3b15:b0:458:c059:7db1 with SMTP id 5b1f17b1804b1-45b517d4580mr236289305e9.30.1756405436484; Thu, 28 Aug 2025 11:23:56 -0700 (PDT) Received: from [192.168.0.241] (178-119-85-231.access.telenet.be. [178.119.85.231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf346811b3sm243466f8f.63.2025.08.28.11.23.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Aug 2025 11:23:56 -0700 (PDT) Message-ID: <97818024-e072-4a90-a2e8-355644b61af4@gmail.com> Date: Thu, 28 Aug 2025 20:23:55 +0200 Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Discussion] Add clamp function To: internals@lists.php.net References: <1756399368311.4054485786.1195379738@yahoo.de> Content-Language: en-US In-Reply-To: <1756399368311.4054485786.1195379738@yahoo.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: dossche.niels@gmail.com (Niels Dossche) > Not sure if I'm too much off track here: As we can't alias classes in userland that are internal classes, internally PHP could do the oppsite and given clamp could borrow it out to/from \Random\IntervalBoundary given we have enough discipline. That also could buy some time on the widening idea and preserve a bit of the conservative approach to further on defer the details until necessary. This is false: you can perfectly make a userland alias of an internal class since PHP 8.3. PHP can also make aliases of classes internally.