Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104265 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45963 invoked from network); 7 Feb 2019 04:22:21 -0000 Received: from unknown (HELO mail-wm1-f50.google.com) (209.85.128.50) by pb1.pair.com with SMTP; 7 Feb 2019 04:22:21 -0000 Received: by mail-wm1-f50.google.com with SMTP id q21so4883810wmc.5 for ; Wed, 06 Feb 2019 17:03:51 -0800 (PST) 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=ZAPW3VbeJNyr0yoM87trMuWUbpNIZxxouKp8UeJVRx0=; b=d51aK7ZYdorDCLqrXQ+nOFovaZTcUL3tbRvdUe48KuPTWZ9b3SXT3YAujOu6jpJX8k 7p9Km5Xk3V9rcx9X5C3n4vSUxLE1rpOulpEwFZbGkqh2fA7jqKQ1CeBHjh0QzeiZUEmi 5WdjdnqzhcyZM9ue6Jke9Vr5V/mpKxFtAHEUSTLFzwaLEkRQwqhb205w0/VaoYzZlh0o s6WGkdqPqyYdZaR2THTpDuniFrvXcmrBQkjr68GUngYa2iYE+eUpxZkQPQr7xawod61W PCbzIIVwjvw0I9dvFTlZ4YsQEVLPRparyiKGGXB2h587eH/A0UY+JfkQfj8LRn8UmxEA xPFg== 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=ZAPW3VbeJNyr0yoM87trMuWUbpNIZxxouKp8UeJVRx0=; b=o0R0OVz9Girt0m3qqtO+falY0PjrjxtQ1TeeCOx7hA5ILVTzUH6d7VbYVijEUEkwBl yLGCzxiN9pwI0jbYU3JK0TCnA5rzCAmUA6lwVsmRFn7fehTt9HAk8EutTLbgYtPOfiTc uKCBYWuNcOORR2RyWGrZKy5y5tHjHPBM+odCzw9pga88wcq/eGbLlttMVt2xXEM3m2LX LN8dj+TENKc1NCpytEzCAYNp6Dwuzur07smeEINJ8HigQDbpUbY0FVhTMPtnLZ4uDHiF PZoYnRuRgowTn5PRNHmJkues6uNO4cnz9h0KMcMRMUUL/9vBa05OWp72XmJk7KlpUMl8 GtiA== X-Gm-Message-State: AHQUAubq3OtFjwYryZ55LSBNe2k4GI3CQw/LBPLR4PTKTK8mERhbtEXQ JGuwFf/ceVb+9fVWEKdvN5/bwm8xQ3Q1ztz9L04= X-Google-Smtp-Source: AHgI3IbI2LBgeU0+ORXgmx2i+iDHTWRopNWZ0grDdaTFGleItvYeq3VQU0+XycxQY6LT/ZOrRx4+E4ZmHGZs1+c438A= X-Received: by 2002:a1c:44d6:: with SMTP id r205mr5305573wma.50.1549501431052; Wed, 06 Feb 2019 17:03:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 7 Feb 2019 08:03:39 +0700 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000060805f0581436ab8" Subject: Re: [PHP-DEV] Don't silence fatal errors From: pierre.php@gmail.com (Pierre Joye) --00000000000060805f0581436ab8 Content-Type: text/plain; charset="UTF-8" Good morning Nikita, On Tue, Nov 27, 2018, 4:43 AM Nikita Popov Hi internals, > > When the silencing operator @ is used, the intention is generally to > silence expected warnings or notices. However, it currently also silences > fatal errors. As fatal errors also abort request execution, the result will > often be a hard to debug white screen of death. > > The most recent occurrence which motivated me to write this mail is > https://bugs.php.net/bug.php?id=77205, but I've seen this play out > multiple > times already. > > I would like to propose to change the behavior of @ to only silence > warnings, notices and other low-level diagnostics, but leave fatal errors > intake. In particular, the following should not be silenced: > I am surely missing use cases because I wonder why we need @, at all? Yes there are functions generating extra messages and should not, be fro. PHP implementation or from external libraries (wrapping stderr to php errors). All of them could be fixed. Best, Pierre > --00000000000060805f0581436ab8--