Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106817 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13833 invoked from network); 30 Aug 2019 15:40:50 -0000 Received: from unknown (HELO mail-ot1-f49.google.com) (209.85.210.49) by pb1.pair.com with SMTP; 30 Aug 2019 15:40:50 -0000 Received: by mail-ot1-f49.google.com with SMTP id 90so2968166otg.10 for ; Fri, 30 Aug 2019 06:13:29 -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=CHuhXfAffmpvn0WGM5R/fJ8IAVQWezxGep5bJnJ0qpM=; b=YFxMBV7JOcILv+RrE9ekgaS+iudy4ZxKfXJNjID0joYEv0r34bwhDNlOIKp8nFFR8M MNel1l5aQ6cFRAidqytr2UBlHpl6wglyXlFJ1oboCkQEePnminZdqHxCJ+Gl9EEiAW86 3wOKjU3l8RZBpEN8lkR4cXnnS6s++XQzKabEYzLosGqo/X32Rwb5vIaQDjrr3f/k7rg4 uHXIcPBfKn08/qRIse+59Lhtr63zjqKa2Wmw/Wqb3Vm/6ILoPlvX3zdot9aT8+dd79gw t5+df0lRlqUgk+X24DCZygiVPYQRaMhmVkn/BjlTsTGumdpGQZl72WKNV3NujsYvYyAA crHA== 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=CHuhXfAffmpvn0WGM5R/fJ8IAVQWezxGep5bJnJ0qpM=; b=pcg5Bvxx2sVF8H9eSpIUkWu7zs9WIL+HYns4KR/Lj48vj7p3ih84bN3yPyx/pUH2b5 nN9H09zSKlj82oQUK8SNOd5N7Jf8TdZ7rAlZAnw3321pDeN9tEK2XLOqoCQ6Eq3Zj0pD 3yaW6XxRlgXAQ6GNR0LJ4+SVlK0TsHV+tZPuSy/jOIgaFEoFUOSKJBKxvTFcTAySssqt qJDX9gSWv8DniL17E/u6cExqWQ4xER/9SqkdPAmBhFEM4RqAB8alZeoMZGWh7rNxPF5G iYSL5WKqaRgQDr7lZ77aGKqQXyLngUZMDX+5SK6GEhQveKONBKGFxJRxg4XKUBOhFssW rEJQ== X-Gm-Message-State: APjAAAVUauIVmXgTJaw35YBUZUkpdCdV1Sex+DAfNGruJaEJw+Ale1ID kc3TCbHRK+vY4uihphHwDD+1pSwKzLo0ttGAEBIvnA== X-Google-Smtp-Source: APXvYqxSSWdlBOnLE6x+gAyJEdhOfTLto3RI+LnAO2Do3Eyj9Asv0G/G2UbdWN5jHf9HhQq8Uq5+BzWzxZOr53w51C8= X-Received: by 2002:a05:6830:1e2e:: with SMTP id t14mr2753324otr.354.1567170809180; Fri, 30 Aug 2019 06:13:29 -0700 (PDT) MIME-Version: 1.0 References: <25BF7D64-C374-4EA5-AA11-EA92DDE90BEA@zend.com> In-Reply-To: Date: Fri, 30 Aug 2019 15:13:17 +0200 Message-ID: To: "G. P. B." Cc: Zeev Suraski , Nikita Popov , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Make error_reporting=E_ALL the default From: peterkokot@gmail.com (Peter Kokot) Hello, On Fri, 30 Aug 2019 at 13:51, G. P. B. wrote: > > On Fri, 30 Aug 2019 at 11:45, Zeev Suraski wrote: > > > > > > On 30 Aug 2019, at 12:33, Nikita Popov wrote: > > > > > > Hi internals, > > > > > > Relating to the recent discussions on undefined variables & co. One thing > > > that is particularly annoying about the undefined variable case is that > > our > > > default error_reporting level (without a php.ini) does not include > > E_NOTICE. > > > > > > Thankfully distros do tend to have more reasonable defaults, but if you > > > spend as much time with custom PHP builds as I do, not seeing *anything* > > > for undefined variables is a pretty big annoyance. > > > > > > Does anyone see an issue with making error_reporting=E_ALL the default in > > > PHP 8? It can of course still be manually downgraded via php.ini and > > > php.ini-production will retain the existing recommendation that excludes > > > E_DEPRECATED/E_STRICT. > > > > > > PR: https://github.com/php/php-src/pull/4659 > > > > By the way - I'd consider going a bit further than that, and re-sync our > > internal defaults with the values of php.ini-development. In the past - > > when we had -dist and -recommended - the intended behavior was that having > > php.ini-dist as your php.ini would be identical to not having a php.ini > > file at all. I think it can be useful if we do the same for > > php.ini-development (by changing the internal defaults to correspond to it > > of course, not the other way around) instead of having to agree > > individually on each change. For the future, agreeing on a change in > > php.ini-development would directly imply changing the internal defaults. > > > > Zeev > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > I'm not sure we can totally execute on that otherwise we would need to > change the default of the short_tag directive, which from my understanding > was one of the pain points of the Short Tag RFC. > Other than that I wholeheartedly agree that syncing the dev one with the > defaults would be a good idea but then I'm not totally sure what it's point > *would* be. > > Best regards > > George P. Banyard About the error_reporting, I always set this to E_ALL for all environments also, yes. Syncing with the php.ini-production would probably make more sense because there are production environments that might not use any ini files (a bit of an edge case but when developing adding ini file seems more natural and secure than the other way around I think). The short opening tags ini directive of course will now stay different than the PHP internal default. -- Peter Kokot