Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126718 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 869A91A00BC for ; Tue, 11 Mar 2025 15:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741707012; bh=13MgpZfxiHkTC3vb5rY0S0HPxUqTJVwjH+psVsTFMDs=; h=From:Subject:Date:References:To:In-Reply-To:From; b=DBupfPc/BN7ylsZPy4g4VPAkJ95jxWxDCpl2JAzivFYDnrhkrEB5vGNn3WwUzbjnx q5fPNSwzCOzbMug4NRNc25M6syfJHHKBQ0+kiGoGK0FkWLzqINlmA+NRlFkhFEwclX 1YnQP+UuMTzsImfXHmucYNKI/rAsXSaSLcgozbQHoNvax8h5ndtIgIQoK45yT2wBym 3oGOSlXSGRyRjqCrmwtJ8uTxQarGViSa0avyN0/O7BmhVtRMXS+hnmK/wB/Mh4LDq6 +SA/eQEUhuXVJLrONgQqpSVSMipjLoIRIyVxRtuLEjbmoBC2bOvcmtmSuKr+V9KXiP aFH6X0tkzx+hQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 58F7E18007D for ; Tue, 11 Mar 2025 15:30:10 +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.6 required=5.0 tests=BAYES_50,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: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (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, 11 Mar 2025 15:30:07 +0000 (UTC) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2e2d:4d00:fd5a:4e01:516f:5509]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id D02943A08A5 for ; Tue, 11 Mar 2025 16:32:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1741707160; bh=13MgpZfxiHkTC3vb5rY0S0HPxUqTJVwjH+psVsTFMDs=; h=From:Subject:Date:References:To:In-Reply-To; b=VZXHhGhkH/bHQYg6jOx33RFE/MFbEvTGAVFVp3xgctUMg189UfDT53Pn0HT/Od3lm aqehX3RvKBFecFqeFaN4DrL+JJMKpyyLnYedkVb2NTDw8eUuTJg2rCDe8QPptKrnvB VWm+v4qcoKdI2Rd2HWv8lgtpOP0MrmUMLsvsss84= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: [PHP-DEV] Consensus on argument validation for built-in functions Date: Tue, 11 Mar 2025 16:32:40 +0100 References: <041d1a8c-dd43-4592-b997-ad4d2f91aeac@app.fastmail.com> To: internals@lists.php.net In-Reply-To: Message-ID: <0B9C36DB-2204-4806-AE82-AF060CDFA78B@cschneid.com> X-Mailer: Apple Mail (2.3826.400.131.1.6) From: cschneid@cschneid.com (Christian Schneider) Am 11.03.2025 um 16:29 schrieb Christian Schneider = : > ...(if you want to be strict about warnings then just convert them to = an exception, that's easy enough)... Reading it back I maybe wasn't clear: I mean if you as an application = developer want to be strict then you can use an error handler to catch = warnings and throw an exception yourself. - Chris