Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106813 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82132 invoked from network); 30 Aug 2019 12:30:01 -0000 Received: from unknown (HELO mail-wr1-f47.google.com) (209.85.221.47) by pb1.pair.com with SMTP; 30 Aug 2019 12:30:01 -0000 Received: by mail-wr1-f47.google.com with SMTP id y8so6329309wrn.10 for ; Fri, 30 Aug 2019 03:02: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=2H0Rg4sbi6L+IcgiA057y2vYPSJGUx3FfDtx3FYPvTs=; b=d6SbGx/zS26tyHeSPMW+JicMDLYS5mVPhpAiXj0jazCW6hqLhT4s02A/UU/pdQV8Kq Y5C5DF2ROsqnKQ0P+2FJQlQCEj60BNR321zhvEn5xfR5Fvan6JneMKNFjORtspcVUIrQ 9VuWEpGRBWBlho0b0PI056IoQe7TnQsyg0AXwh5t5D3CjVy7v3vyC3wQbXhjr6sbaSxy lRZ+8ePbHZzkx2f521Lk92yFbe76jRMf8ArgnjUy2rWVQE6qmX7Ol88SmiiHTEHVLHKU jLUYqGRk1kPZLo42a55uiBz/7VQGB2Zm7zOs0X3BLNugIETwu/RSF+eVC6WkbkaCFycG NH3Q== 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=2H0Rg4sbi6L+IcgiA057y2vYPSJGUx3FfDtx3FYPvTs=; b=WBgFRKadFanqq+IXT+L4+5nMTLLe1NVkKEE8kY/5npfGngq7hHnA58VDBbka1Cojnd 436fqn4rvQbCJFrlLOIPjJBNwThl4xSy/+WbyvPGJHLqlQUZTkksO5onZQeNAwgLSoQw dgRXNDFANGKBluZBjBmcxyBvcom30+o9pMVs74Nc6V2+aUTaMGt/Vzy9/HNiA0sHce3a ruhmRkxuT9QSMBU7+B3jIibJCT4PWt+QMyGnXr2hoUPc3K6QdcBeY06gE11cwTSO+P6P JnusTooZsjeU52+qVTbkf8X7PYZvVSrueAxVXghzL28K2xItmTJVdXrJ6mfjh4t/cO8+ rFgw== X-Gm-Message-State: APjAAAXdV66VSBK3QXF56WbIxsSZFwE/CoRTgtVFDOO/RUas51Kl15rc 67/BN5f8RjsNZj4JX+peca/jqXE/70S9FteoFI5xGkWt X-Google-Smtp-Source: APXvYqx4XV8YgqITZl/HUx9+e+RK0ELnqtPdN8otC4oPrb8AQpwLzYDZTSGOyh21YZEpK6HE4Hsdcdd+wdbIx6FymEg= X-Received: by 2002:adf:f801:: with SMTP id s1mr17846965wrp.320.1567159357952; Fri, 30 Aug 2019 03:02:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 30 Aug 2019 12:02:11 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d65879059152b8b7" Subject: Re: [PHP-DEV] Make error_reporting=E_ALL the default From: arvids.godjuks@gmail.com (Arvids Godjuks) --000000000000d65879059152b8b7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=BF=D1=82, 30 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 11:33, Nikita Popo= v : > Hi internals, > > Relating to the recent discussions on undefined variables & co. One thing > that is particularly annoying about the undefined variable case is that o= ur > 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=3DE_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 > > Regards, > Nikita > +1 from userland. I always have edited the php.ini for production. I also usually edit development too to include all error levels, but yeah - having shipped php.ini with sane defaults would be very welcome. I do agree with Zeev that production file should probably resemble what php.ini-development is right now, so I'd say we need to go deeper ;) --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Skype: psihius Telegram: @psihius https://t.me/psihius --000000000000d65879059152b8b7--