Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127408 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 804971A00BC for ; Wed, 21 May 2025 07:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1747810677; bh=/ZW3zlvqVy+Kw1793u/anUovvfmxKd2JERY794ng2+w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Xx4EWgTWTgfGegrqBS0LVsGYNXFaVeq8yDejn4TrcC5RS1CnYck903hUG3aC+CCkH 633TTHFEJcheawG+RPTAgw1csdzcDfd8Jy3dnivViLLpOLbk7ZDAQ39IYfcm+OaKfn KK9OAo/B7jYjbIirS4O/I9kZn0AqDRqUvnDwBBjGzc2NJpGfmKmHGrYQ8VtyLtiH9D 4U/zMzm8TobsM3STAS5+Gmdb0Eui1oZqjUxqFS7L/d4DC3Wyd5E0bqNZBuQHAjJ6aW +McoF0ps3fxoW4fUE/5YcTMHphFMCYSXeccss1V3DApZBfyrzT12+PVrQ4U62c3qbu 0mehqQo4E3r9Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A8537180053 for ; Wed, 21 May 2025 06:57:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Wed, 21 May 2025 06:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1747810802; bh=od3LkwJlnXwL7PhvrJDdgktG/Xcxw/vMS6iNYVo5qes=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=L2F1oNy7f2IvBzBJSSj28BSWJvAvdtmr2O6w5WHSBw6HUUPJAgJVLMG1ihSYhEKKM kZVSRSMnvmOb6CcLOylwoN13d10fRTGE03GQb8YtErRwfBGTjZhrU1gxe50h8/FiXm Iz0McgpJUYncFqDlNba3IJWKCzrazXalE3nlvmqPMecLf20ROJtQdBK6UQegcWxphq UKilpQ0upkgtbO6mjiOMAKBrdDHWUbBYBh5pPYco9/ujzqFB6BQ0bcm2L3Q4yF9Myo vajPeR4FCVAuvMmIQejg6Y6v0IcRKvrx8WBaC/FO+fumCKwqROljgglMwbhmMfnUrY nk2QSMzp+Zhcw== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 21 May 2025 09:00:02 +0200 To: Larry Garfield Cc: php internals Subject: Re: [PHP-DEV] Re: [RFC] Clone with v2 In-Reply-To: References: Message-ID: <24128790f7b87a37bbcb20ec365a70e5@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-05-19 15:30, schrieb Larry Garfield: > For positional parameters, I don't see any way that they'd work or do > what someone expects. So why not just block them entirely instead of > relying on dynamic properties to warn-but-sorta-work? For better or worse PHP supports numeric properties in objects and it does not seem correct to make this an artificial limitation when the behavior of numeric array keys follows the existing semantics (e.g. when casting an array to an object). Best regards Tim Düsterhus