Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117036 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42527 invoked from network); 15 Feb 2022 11:14:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Feb 2022 11:14:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7EB3318053B for ; Tue, 15 Feb 2022 04:32:07 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS16276 51.68.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from srv-mailbox1.gestixi.com (srv-mailbox1.gestixi.com [51.68.236.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 15 Feb 2022 04:32:06 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by srv-mailbox1.gestixi.com (Postfix) with ESMTP id 57366AC1138 for ; Tue, 15 Feb 2022 13:32:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gestixi.com; s=dkim; t=1644928325; bh=Qi34TwkDR0QlEOub0wKFLEQNFZvWd+GSwfMbH2oyfys=; h=From:Subject:Date:To:From; b=aco+FHhdefrJWT6fnLW6zbffZGeTl9MEa7qkVqm+ywBM4rNfl8nBETNVAB9ZH+SjJ qi5FWX+7QevqroYuM2FszeLnPFAhrl8ospG8rwLCnIpfo6jZuke9dNLWVVvs8Gct46 /O+2QGGc7Usa3JMFCoBABZMMzvzhZSSWfM37P5L8= X-Virus-Scanned: Debian amavisd-new at srv-mailbox1.gestixi.com Received: from srv-mailbox1.gestixi.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Pkvced_nVK4p for ; Tue, 15 Feb 2022 13:31:59 +0100 (CET) Received: from smtpclient.apple (unknown [10.254.1.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@gestixi.com) by srv-mailbox1.gestixi.com (Postfix) with ESMTPSA id 89BB5AC0D36 for ; Tue, 15 Feb 2022 13:31:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gestixi.com; s=dkim; t=1644928319; bh=Qi34TwkDR0QlEOub0wKFLEQNFZvWd+GSwfMbH2oyfys=; h=From:Subject:Date:To:From; b=xyDSLvE82Oj96jNfEntxD/ZEQG0EFqJxOGQMFbeXI0sdAt35fSx2dFGL2NmRkGcz2 Z5uWHqYesEqf2f3oXsvLQHc0K0sXAhUcYWe3AyamGDDJ+SVcnysRVWOL4a/0Td9vMM lBVmdm8ELBzel0IIDakBlS0XkSytyXPWVXDm8NV4= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Message-ID: Date: Tue, 15 Feb 2022 13:31:58 +0100 To: internals@lists.php.net X-Mailer: Apple Mail (2.3654.120.0.1.13) Subject: Setting to disable the "Undefined array index" warning From: nicolas@gestixi.com (Nicolas BADIA) Hi, As it is explained in this ticket https://bugs.php.net/bug.php?id=3D81417 = we use to check if a property exists by accessing it directly like we do = in JavaScript. Personally, I subscribe to this coding style and we use it all over our = codebase (more than 130 000 lines of PHP code). When it became a notice, = we disabled them, but now that it is a warning, it is a lot more = problematic for us=E2=80=A6 We can=E2=80=99t even use the last version = of PHP Debug for VSCode. As I=E2=80=99m not ready to spend weeks upgrading our codebase because = our coding style is not supported by the community, I=E2=80=99m looking = at alternatives. The more obvious and simple for me would be to add a setting in php.ini = to allow this. So I=E2=80=99d like to know if it is something you would = support. If not, I guess I will have to fork PHP, but this will complicate a lot = our deployment process and make our code not portable. As I believe we = are not the same in this case, I hope you will support the addition of a = setting=E2=80=A6 Thanks in advance for considering this. Best regards, Nicolas=