Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103303 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53701 invoked from network); 3 Oct 2018 10:47:14 -0000 Received: from unknown (HELO mail-pf1-f182.google.com) (209.85.210.182) by pb1.pair.com with SMTP; 3 Oct 2018 10:47:14 -0000 Received: by mail-pf1-f182.google.com with SMTP id p12-v6so1214079pfh.2 for ; Tue, 02 Oct 2018 23:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindplay-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X+U7gFcMJD9IATn7/s5mGOMbAdhhW6saZHDa5y0rPnw=; b=fyWySiSzQzPn9Rfy4QqFWTwWA097d1zAX8oW0xVQChY2jmqcHmCKFgw5bB8vYknNHv Uk/506n9ZKIz0UOPz/90uq+kQ0OTUips4jW/RJaKjdx4+pbH1CNEJ8+ew8nTjnb3AQON 3YGTPzz/lgIfJ0IkkIgnSxbfxMrYkJcLZL8jy9E61aMK8M5c3+vcFwpS4E1vfFUIhHxp 0aPQQmZFVKRveJDwDpAt0tsvIJTHiyTkpLAWwtBaIr0m9EFiABSGUpNKT5R1csfN2PyI NRpJQfwwqrb9nxiuwEc4PVD/QVw7pNR7UWNUxr2Q6eeGYG4YeSNXK4keSylXPy7CrOsu vqDg== 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=X+U7gFcMJD9IATn7/s5mGOMbAdhhW6saZHDa5y0rPnw=; b=Zz/RhKdvkk7ggN47IAQUUF+R8z5nh5bkxLJzzV/BXvtuCsugJGBzewblbfhz8uNX3B M74zHKCOvSTcRCGa0+jglIBo6V6MmWVXjpsEWbkx5Uhth+0fZ8ABrk6Vuj/4XbTs7Ikj eczBpYSs0cRNt2rR7pAN3Kib0LDZsUIXsotkW1cl+gRVT2A76ByAg+uqK30KTgbPDFib 7JEOXgiEcf9SCZf84ihs2x1XPwB6bD4xuzGWnpn5tzRoGuZ/FOGC+0WKc+U30KMXEKZL dyQHZDILZaxK1MwoWxqfSqKAnLbUysOIcv82n7JcEfcBzlAKv1NO+fRMKfiLG4J4xOQ3 MEfA== X-Gm-Message-State: ABuFfoh1lk+FUECOgZQhmhRZYYFN2vGe7fw4Kr7NAM/jHh+HWdylmbFF BT5DIrvQTBdu/uqD77t8owC0bt6skzzX/7+kOhZZ0A== X-Google-Smtp-Source: ACcGV60abE/KZsRNeJuAJ+A+PESO+uABDf1G2lZp1+V80j+6jsWmZ2GL2nh/JeNTxlDyOUq0SvmbZOsF5tYA7WLpwsM= X-Received: by 2002:aa7:8643:: with SMTP id a3-v6mr78911pfo.247.1538549822953; Tue, 02 Oct 2018 23:57:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Oct 2018 08:56:52 +0200 Message-ID: To: rowan.collins@gmail.com Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] deprecation of set_error_level() callback $errcontext argument From: rasmus@mindplay.dk (Rasmus Schultz) On Tue, Oct 2, 2018 at 11:37 PM Rowan Collins wrote: > While I can understand the desire to have debugging feature built into > the language "out of the box", it may be best left to extensions which > can capture the information to a log or wherever without providing the > full flexibility of the language to interact with it. I think, since the language *did* provide this "out of the box", it's sort of odd to deprecate a feature that is being used by a popular product - the Sentry PHP package has 8 million downloads, and PHP developers rely on this in production to help them fix bugs. Seems pretty important? And an extension isn't really an acceptable alternative to someone who was offering a product that "just worked". For example, rather than removing this feature, might it be possible to deeply clone the variables and provide backwards compatibility in that manner? I doubt that anyone is counting on introducing side-effects via an error-handler, but surely it's not uncommon for error-aggregators and loggers to rely on this information being available?