Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127096 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 qa.php.net (Postfix) with ESMTPS id C36FE1A00BC for ; Fri, 11 Apr 2025 10:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1744367899; bh=w3sGkrewQWVHux2aH2sOYDPbOL664CF4z3iMDf+LzSY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SNg834zKn6TeMc24PHfCBXmLD1mnptVQCHMVYMYb5lWzz/prGgaavQ4sS83bUsK5h aPvD1bJNXsGECxgvFeoncC94wWz/7PHxO7a/cLCLPDFtWgMofK46u1tEsyoGCg+1uG e3JGKVPT7RlV43KNDAh02S60TlL85TZFakaf6I+0NSZvxyLMG5ZoJW8kyrkrQ3BW// 3BNMCeSn7ugDNLdxisV7iYxliTSb05kN6b1oNTHd4Oh8v9okstGVmZ3/y0ZmASyIzO pHzjuuYXalPY3SFDGFbepCExJhteeE+SfWLs0ERr2L5ruwUXg1Ows0+ZYLP6KoZpzR tqltIM1DMifdw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1420180034 for ; Fri, 11 Apr 2025 10:38:18 +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=0.9 required=5.0 tests=BAYES_40,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (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, 11 Apr 2025 10:38:18 +0000 (UTC) Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3f9832f798aso1257518b6e.2 for ; Fri, 11 Apr 2025 03:40:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744368041; x=1744972841; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w3sGkrewQWVHux2aH2sOYDPbOL664CF4z3iMDf+LzSY=; b=UYTM63sE++02M7Rfl4XEBUS+S7aayPHqOuk+Pcd2Bxq30OxiBhIcN5DrTdF8qkvCn4 h64segaTeid4xsr4Pr7TGgeYq114J8fUpi4tOlnKes8BrN3CNh114/W5mX0WMTRF5hrQ Af4beCx6muVlkOnhs0xhqnlBCya9w+x5daLKfPtc2ygMQWkIe1yaPOGcBu6b1aJU5j7H U91MJS/txyHuX5lv+SC5Mthqejy1ktw8OC73IKEHRWte5A9mMYB7lY6GdLp/gIyQtvUo DRPTuWPjQ818nu7MHIvyVDWSmA7L6TTvkFtWrs9ZRfabSTSrvTdQr8LUtQBO4k9Ic5WA 2ijw== X-Gm-Message-State: AOJu0YwGGlDIZRqouCGCK2UVnSR4vOmNv4xUVumJsg3NxPj6rsWsCWiR syG8+hvOGy5aqxtKnTQsxratTZVpZGbV2xvV6vI/PHuFBky5wB26UqCah95UAibiD7ePKUqVXqq n0K2gnO2VtXRzAXDW/uETTpNJ6OyNdw== X-Gm-Gg: ASbGncslFKaDp+aTD7mC3whaBoT7aeL+700DupJNCwCml4Cmt+ZLW0hoPH5X0kPDbJB 7/6LZS5HkvqNC7yFsLQpTk25El8+Y6REegDfHZxcun7q8iz6HITECBXSymz2lqSymzPIXU59bhU L3ns56gTyrBsi+XD1Xl3aK X-Google-Smtp-Source: AGHT+IFA/iTxeQjulF+3fnaiub0bItWOjDF/jHNeW1Jvi/glM+FKw5D4khUvrb6A2Qy9WoQbZKMq20XPpeWUyJ2IspI= X-Received: by 2002:a05:6808:6a8e:b0:3fe:ee31:f7b4 with SMTP id 5614622812f47-400850227b6mr1199756b6e.8.1744368041380; Fri, 11 Apr 2025 03:40:41 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 11 Apr 2025 12:40:29 +0200 X-Gm-Features: ATxdqUHWEIii2S-4J16m8U2PkpCQj-rXZ1gZznVVdhTEGt6TcNBxQrx5bLIvaZA Message-ID: Subject: Re: [PHP-DEV] Consensus on argument validation for built-in functions To: Jorg Sowa Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000076d33106327e552c" From: bukka@php.net (Jakub Zelenka) --00000000000076d33106327e552c Content-Type: text/plain; charset="UTF-8" > > > This thread clearly shows that there is no consensus so I think the only > way forward would be to create a policy RFC to make decision about this > approach. Until then no PR introducing exception, deprecation or just plain > warning for this sort of things should be merged. > > In terms of RFC, in this case we need some decision so it might make sense to do something like primary vote just to be an approval to make any changes (e.g. "Add clarification to policy about argument validation") and then just add secondary vote as a choice between deprecation or straight going to value error. --00000000000076d33106327e552c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

This thread clearly shows that there is no co= nsensus so I think the only way forward would be to create a policy RFC to = make decision about this approach. Until then no PR introducing exception, = deprecation or just plain warning for this sort of things should be merged.=


In terms = of RFC, in this case we need some decision so it might make sense to do som= ething like primary vote just to be an approval to make any changes (e.g. &= quot;Add clarification to policy about argument validation") and then = just add secondary vote as a choice between deprecation or straight going t= o value error.=C2=A0=C2=A0
--00000000000076d33106327e552c--