Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106732 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 87412 invoked from network); 28 Aug 2019 16:55:28 -0000 Received: from unknown (HELO mail-vs1-f41.google.com) (209.85.217.41) by pb1.pair.com with SMTP; 28 Aug 2019 16:55:28 -0000 Received: by mail-vs1-f41.google.com with SMTP id i128so79825vsc.7 for ; Wed, 28 Aug 2019 07:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GVVjkxWAYb61/MLQwdex3l2oMO0dfQ5ntYaD1Rpg7WE=; b=nqKQzSQqWDdJg+vq8zI16ajTEvJUvKrH6SSnbCLzChJL2k7K8aBW6EoBJcmEBJZ53k xwE9dnPUWMlEx+CzYQ26sZ4tDYnV8nQjOC2WyoEsGS821mINnjP7VDphVBjFx8XTcrFd 1A3EQ7RlX31iLOwaCiVoyp6zhPCqPkEqCF+bsZmU5SAfIj9kA6f8feDaQDMWCEOsCrtA 23T8FsP8VEuNOLpTsdG2/8b8/9tdhmB0ZzmO7qdWdeyOajVhP7h4kEnQ6vFVpDXriuCr KHo6eSeNEKwiqQAdV0DNjbIEv1XrvWDIu3VkLEneG1eWJw+yRpCSQ4oaNIUEdX5FflRh zR2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GVVjkxWAYb61/MLQwdex3l2oMO0dfQ5ntYaD1Rpg7WE=; b=W1k91Q7y0VGJNDr3ceKL/6ZSPwT1D0WxbpHeE5Ey+JN3G5vb4hj84S9xS3vkhj5MmM 6wNbAX9vwLLfzdKTNgDrtGMHsorTY+B01tr8nfg8aDBk8GTCso4hX4ymXawsZocgKCsV 6GdQC0bAgb5l2Lsqk8jG/Q8EcnYN9Z5bCGEYKJx6D/RTPP5D3RXEumNhZBbP18ZnIMkO yv+nM/4OAPzbWtk6xXtIYUuMfVEQx0F2d0cCkGEZqtUx5Y/KnDtjbNNCjzuIJW3LApyw Vuwj7cSvVlbP2CGu61OhlMKjPBdyrhV+w2u6M239IluOmiMMxd/IxCnQTUcO4iSkB5Fr eeKA== X-Gm-Message-State: APjAAAXsV4XgUUmsF/ujZ1cllvp20ltWkggu7X62Jhi4ChwBa7c8cS53 Owu6xph2QrE6/ggCj1dJbRCUN7yilssMQed8A3A= X-Google-Smtp-Source: APXvYqyKGoWc2fpU3/hLtzexG+mQgiYRaLbBxIeS2DLJ3OZoGrjURKvcIDju6s1lqaajs8tASi39JYaAceXvmAE3dV4= X-Received: by 2002:a67:da1e:: with SMTP id v30mr2562688vsj.209.1567002457639; Wed, 28 Aug 2019 07:27:37 -0700 (PDT) MIME-Version: 1.0 References: <7ddbae5c-7451-4094-8b32-19676128054b@thelounge.net> In-Reply-To: Date: Wed, 28 Aug 2019 10:27:26 -0400 Message-ID: To: Gert Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d99d6a05912e3029" Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: chasepeeler@gmail.com (Chase Peeler) --000000000000d99d6a05912e3029 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 28, 2019 at 10:20 AM Gert wrote: > Maybe i'm misunderstanding something here, but what does turning > notices into deprecations achieve? Because if you have deprecation > notices being logged then it shouldn't be extra work to log > notices/warnings as well right? > > Notices include a lot more than just undeclared variables. Turning them on in our environment would pretty much make the logs unusable for any on the spot checking for issues. They would only be useful if we were trying to parse out specific errors, and, they would be HUGE. Each web server generates about 5-10 megs of logs in a day. Our CLI servers (which runs beanstalkd jobs) generates about 80-100 megs of logs in a day. That's without notices turned on. > On Wed, 28 Aug 2019 at 16:16, Chase Peeler wrote: > > > > Well, one reason I was so vocal about short tags wasn't a love for short > > tags themselves. It wasn't even to prevent the detrimental effects of > > removing them. Honestly, the 2nd RFC wasn't a horrible option. It was > more > > about the precedent that it set - pushing huge BC breaks on the users > (most > > of which are voiceless in the process, because they aren't involved in > the > > community at all, most not really aware there is anything to be involved > > with) with little, if any, positive gain. > > > > Let's see how this plays out a bit longer. It's too early to tell if > it's a > > dying attempt to keep pushing those type of changes, which are destined > to > > be rejected, or, evidence that we are still in danger of having such a > > precedent set. > > > > > > > > On Wed, Aug 28, 2019 at 10:11 AM Chase Peeler > wrote: > > > > > > > > > > > On Wed, Aug 28, 2019 at 9:55 AM Reindl Harald > > > wrote: > > > > > >> > > >> > > >> Am 28.08.19 um 15:48 schrieb Chase Peeler: > > >> > If it is still done, then I think a deprecation path is a must. As > > >> > mentioned earlier, this doesn't necessarily mean E_DEPRECATION > messages > > >> - > > >> > warnings will work too. The key is that error logs with more urgency > > >> than > > >> > notices are created that users can use to track down and fix issues. > > >> > > >> hell, there are notices for at least a decade > > >> > > >> error_log = "/var/log/php_error.log" > > >> error_reporting = E_ALL > > >> display_errors = 1 > > >> > > >> this is my development *as well* production config on every machine > > >> since 16 years now and every warning/notice get fixed because every 30 > > >> minutes the errorlog get mailed to every developer and admin > > >> > > >> turn logging on and start cleanup what you would have had a decade > time. > > > > > > > > > Am I the only one getting tired of people telling me how I need to > operate > > > just like they do? Everyone's circumstances are different. Just because > > > something is easy for you, or works well for you, doesn't mean it's > easy or > > > even feasible for someone else. I've learned it's useless to try to > explain > > > how my situation might not be exactly like everyone else's, so I'm not > > > going to waste the time doing it again. > > > > > > Why can't anyone see that taking on these myopic "My situation is the > only > > > valid situation" views are going to kill this language. > > > > > > "I always initialize my variables, so, it's no big deal if everyone > else > > > is forced to do so." > > > "I was able to find and replace all the short tags in my code in 5 > > > minutes, so it should be easy for everyone else to do as well." > > > "We fix every single notice within 30 minutes of it popping up in a > log. > > > You should be able to do that as well." > > > etc. etc. etc. > > > > > > Also, if you are going to try and tell me how I should my job, at least > > > have the guts to reply to the entire list instead of sending it to me > in a > > > private reply. I'm obviously not afraid to turn around to make your > reply > > > public, so it'll save everyone a bit of time. > > > > > > -- > > > Chase Peeler > > > chasepeeler@gmail.com > > > > > > > > > -- > > Chase Peeler > > chasepeeler@gmail.com > -- Chase Peeler chasepeeler@gmail.com --000000000000d99d6a05912e3029--