Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106812 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78750 invoked from network); 30 Aug 2019 12:13:09 -0000 Received: from unknown (HELO NAM04-SN1-obe.outbound.protection.outlook.com) (40.107.70.112) by pb1.pair.com with SMTP; 30 Aug 2019 12:13:09 -0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jIHuTav1Z4eZnAtWyfYDIFcH9NNwPvqWbYkJQDMlYWRQiVkjTvdoS7qNgSdFwg7GQ2Aoc16itzihN+NKIEWylcZ8iTCbMUAdav4WqTGwkYB2E7kZoGqts1b+HIYJhsfhgPaQAFbP8+S8vJs0iaaFzjkg8rgP6FVGe/AfFt+GeJek87wNL7usakoy4Oka8S9BhUi2R9MGDOs2n2GauvTRflG3erYWLv/BvB9E7JN/bopt3OypdbKkqIv+hyOw4J/aRmEqUU+uNua0fPTqW3d9Uo8IVp2XtELlTEXR56AlDuES4vZtJBAogME0MaknmtoHpv5Ymu9c+4WWg+sieTwvxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nWBoUyJWIeQXTyjs6NaVxohbHddfKYPMO4jHYOSmcy0=; b=hqyzaf4lmsnKDBIznPvncxouvVUVzruYrbpKemiCTm0PY2qO3slNyB5/dFdwLnoSuGUzgqaLD00gW2VyQMQ9H0eHnKVr6TF1/THiVUQnssejh9EhuuaxH6p6kDwCSY+xxIQBaulxWcXZkw78KwnGjuywjq5XXv6M1m+8SdLMnsGpCMPgA9u+G4NDtEAC1m4PxP9Xj8zIJsVUHYyJjpDLGbNIPS57i3TWqpYaTSBxN82mtjPn6c8t1vuCOWngBXO7bXXZ7xNtTQGCuayjf9zCtS4ceAyIVnyBTzDSbba6ntBx93xdJEjC8SkEBAMydNQlDeXJJS/dd/vxq4PlJux9yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=zend.com; dmarc=pass action=none header.from=zend.com; dkim=pass header.d=zend.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-RWSoftware-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nWBoUyJWIeQXTyjs6NaVxohbHddfKYPMO4jHYOSmcy0=; b=FDo+TVdCtCZu9qdoA0Ci3T6rir8ogK+BLKm3gf0KwhuVK1w59SL2dIJd/BnjDt4jc/yU6gwjk2cQAfDyi63/E6C1hbJ58lUN6TKPA2IL9OKPFBDMq95kenUC6Ba3R0NR//k4dlmZVsSz6YbQUCzMVg4fqBNhn90sIAf5VjJG9Ys= Received: from DM6PR02MB5594.namprd02.prod.outlook.com (20.177.222.217) by DM6PR02MB6346.namprd02.prod.outlook.com (10.141.169.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Fri, 30 Aug 2019 09:45:44 +0000 Received: from DM6PR02MB5594.namprd02.prod.outlook.com ([fe80::b845:5a4c:2174:9aaf]) by DM6PR02MB5594.namprd02.prod.outlook.com ([fe80::b845:5a4c:2174:9aaf%4]) with mapi id 15.20.2199.021; Fri, 30 Aug 2019 09:45:44 +0000 To: Nikita Popov CC: PHP internals Thread-Topic: [PHP-DEV] Make error_reporting=E_ALL the default Thread-Index: AQHVXxXzbqi+HA2jPkypqbCga/kuEqcTcTZs Date: Fri, 30 Aug 2019 09:45:44 +0000 Message-ID: <25BF7D64-C374-4EA5-AA11-EA92DDE90BEA@zend.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zeev@zend.com; x-originating-ip: [2.55.20.244] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1721a289-12fd-4e52-0ee0-08d72d2ed3f5 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DM6PR02MB6346; x-ms-traffictypediagnostic: DM6PR02MB6346: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0145758B1D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39850400004)(346002)(396003)(136003)(366004)(376002)(189003)(199004)(86362001)(316002)(6486002)(11346002)(81166006)(33656002)(486006)(6436002)(53936002)(446003)(2616005)(14444005)(76176011)(476003)(229853002)(102836004)(186003)(6916009)(256004)(36756003)(81156014)(6506007)(53546011)(8936002)(6512007)(66066001)(5660300002)(4326008)(14454004)(8676002)(26005)(305945005)(6116002)(7736002)(66476007)(99286004)(66446008)(64756008)(71190400001)(478600001)(25786009)(966005)(66556008)(66946007)(76116006)(6246003)(6306002)(91956017)(71200400001)(2906002)(3846002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR02MB6346;H:DM6PR02MB5594.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: UrBWxx92Zue90Jz/bCzFG9k64T3ptPWvLTXSgEliZjIlN2cxmNbGtEvM6rhjHqoFXGElGJ6tUjRjc0BRnQ6MeWFZ5c6qKDQKI1UOLhd7YV0XCwnZCVUKoJUa5QD7pjWsvkTbDvTND33uzxoa9s+bKcJxzIQoxeY8v6ngqdUDNLZ6z6ylin6uZmOrWSOvfolvmbBY2a1yyvtvj9Xw+3ANFVRVds8ESD4/9EJo4GpUAOnftL1IyPy0gvDFWiug/njL527YLbIRGOubdB+eGhJeo7KMm1hzPrmSG98wHXibVoK7hjv4VsTb1Wz0NX1gd9Oo6srJ7hYCOeVQ9GptJnSMPbDRbI0uDW6eRPpLYWNxiCqU59hGpUM9XRY6/xDz0F4XBspRI//boWNQ82hrmCVVAImuk5DPg0fEONXKGpjgheo= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1721a289-12fd-4e52-0ee0-08d72d2ed3f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2019 09:45:44.2883 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Ufp6cr4cpCadCyFeB9GyTGW3tp30pLqOeC5iXqZQndH18Lf26Prwd3OAJ8RiuSBrKi8ZBuRou4Kg0s5Aff1wTMtMoV2vAAG97Bweb5Y3JS4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6346 Subject: Re: [PHP-DEV] Make error_reporting=E_ALL the default From: zeev@zend.com (Zeev Suraski) > On 30 Aug 2019, at 12:33, Nikita Popov wrote: >=20 > Hi internals, >=20 > 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_NOTI= CE. >=20 > 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. >=20 > 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. >=20 > 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 in= ternal 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 ot= her way around) instead of having to agree individually on each change. Fo= r the future, agreeing on a change in php.ini-development would directly im= ply changing the internal defaults. Zeev=