Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106747 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22943 invoked from network); 28 Aug 2019 18:49:34 -0000 Received: from unknown (HELO mail-qk1-f177.google.com) (209.85.222.177) by pb1.pair.com with SMTP; 28 Aug 2019 18:49:34 -0000 Received: by mail-qk1-f177.google.com with SMTP id m2so216554qki.12 for ; Wed, 28 Aug 2019 09:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UWPjFkbM2ShnVMvNoGAVgNG0P+6X8ND5uvIXXvXuSis=; b=l/Ms/EhwHfjrTLekLc5zj51CT21D1ed524AMtbpzcU1KzxIncugrHM0y79X86d0weC nCIRtPJln4rZ8Wy6KC+6Xyd7MDyHW+GpUPRRy/r9bfBZIaCAsiaTiiTG5v5G1pIh42bL VjHu0AY8lUm8BhLSn3EZ1R25IUq6b19l9tcftvH6WIzVM6ep2D3SU4cbQXrbXBOQMQjg XbS22kuwNzkyrQyJNDH2YJtlgx385R/CbKkRfBhDVqwrpynskHAGwKj44EKi2lZ5v85D d6U5o2N1r6fA/rUS9GxFYyiHn6PEJthwfip/bE0eW7/b/xJBrG5OP/McrvQuzBOPZ9Db ldxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UWPjFkbM2ShnVMvNoGAVgNG0P+6X8ND5uvIXXvXuSis=; b=SH+QL8xcHkVspIL2n241wzOtJnsI3zhuF2mg051F81MqBrrpVIexbsD0j6lL6Ii/pk UZBlXaIJQg4UeQE+oz43GSDh6owGDdjJYnP7Mi6f+m+lsLJ0OigPxwRl+FsEjQf+AJn7 3M6CCAqV9NU8YIN3LvsQ0Tl79FqtLBKQC1JsH+Djio2XS1Mwq9Dw5rcL/KSQQcTjjwWA OC6n/aYcIDR1P+ht0itdSF6JnhwxaDHWBPG0ov7fbZt0DDvAUw0xbclWRIS+bnHgi2lN PZzKD3SzgzNWYvD+BqAnvzpJMeCradnixCzwZZAyPk1M4ESc0tsWFVHnuqfBHk6Iw+Lt lnDw== X-Gm-Message-State: APjAAAVV7DZXDWOSRTwPv3BULR3YuQ5VB4rCflPlt8GTNxMYgSmONi3J C7Yz9LYi0N2ZBw4HukmrVcg= X-Google-Smtp-Source: APXvYqy9fYZpHzfaigaiTglxmLmM/W9F2o2K/AEGC1zPk/c6QHqAk7CleHZ3o4Qe4GDlXPc3+EvtoQ== X-Received: by 2002:a37:a40f:: with SMTP id n15mr4509352qke.19.1567009304955; Wed, 28 Aug 2019 09:21:44 -0700 (PDT) Received: from [192.168.177.42] ([8.40.92.161]) by smtp.gmail.com with ESMTPSA id a3sm1282476qtp.10.2019.08.28.09.21.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Aug 2019 09:21:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (16G77) In-Reply-To: <702735435.20836.1567008353931@email.ionos.de> Date: Wed, 28 Aug 2019 12:21:44 -0400 Cc: Rowan Collins , Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <702735435.20836.1567008353931@email.ionos.de> To: Thomas Bley Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: matthewmatthew@gmail.com (Matthew Brown) FWIW: all the runtime notices in our codebase come from internally-created c= ode. Requiring declare(strict_variables=3D1) to get this (better) behaviour punis= hes future users of PHP for our past mistakes. > On Aug 28, 2019, at 12:05 PM, Thomas Bley wrote: >=20 > Normally every code base has old and new code, some is actively maintained= , some is probably third-party maintained, some is unmaintained. Business no= rmally not calculates costs for upgrading, securing, GDPRing old code, so bi= gger changes always leave some people behind. > I would prefer to write new code with sth like declare(strict_variables=3D= 1); or declare(SomeNamespace\Foo:strict_variables=3D1); That way, people can= write new code in a better way, include new libraries and upgrade old code p= iece by piece without any big pressure. >=20 > Regards > Thomas >=20 >> Matthew Brown hat am 28. August 2019 um 17:32 g= eschrieben: >>=20 >>=20 >> It's essentially tech debt, and the language has allowed its users to >> accrue a ton of it. >>=20 >> The longer that's allowed (deprecations/warnings prolong the issue in my >> opinion) the harder it will be to fix the issues. >>=20 >>> On Wed, 28 Aug 2019 at 10:56, Rowan Collins wr= ote: >>> On 28 August 2019 15:22:22 BST, Matthew Brown = >>> wrote: >>>> Looking at our notice logs, I estimate (fairly roughly) that it would >>>> require about a week's worth of my time to fix these issues >>> I honestly thought you were posting that as an argument against. A week o= f >>> resource (plus the accompanying QA impact etc) is a significant investme= nt >>> for many organisations. That's why it has the potential to delay adoptio= n >>> of a new version, and why a long lead-in via deprecation or opt-in is >>> necessary. >>> Regards, >>> -- >>> Rowan Collins >>> [IMSoP] >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>>=20