Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127222 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 3F5211A00BC for ; Mon, 28 Apr 2025 13:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1745846441; bh=ZIBHqkTGsPSSiCPVsHIvrRvq1B97uGZf8AYAuaSqi2Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BpkM1nCsMRXx8B/jUo0TRdf4A/3lSjklGxySxmdxk6Pr4nwQYbnUs4yCceK3ioYHp TjTWc2wfl5yrL332zXuLP8+H8uQ5mRQSH0nEsX/WCq+iIHw8ByYS5WxJisRdK+fA3M DlL70iGplUE5pklQbq6XcoMfcS5i88m49oBF1HqFZcbuUqyWxzb2JaWi9czgYI00qH VRFnj95iClw22W65Eu5Ss49jA0+BVGrTYWwevLU3rJDli+Hkqt7FoxRgQIKumITkAe FrObHCAJK8ZwtjxCmGS2JULNzetHf5z65q0rMrge2sglo4m8wCsiotpAm4hKCHZQii wMgLZTp9EsCTQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0629018003B for ; Mon, 28 Apr 2025 13:20:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 28 Apr 2025 13:20:40 +0000 (UTC) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-6febbd3b75cso44963877b3.0 for ; Mon, 28 Apr 2025 06:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745846577; x=1746451377; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jSuR+ofeqp3FHgeyYeLMWfYuid0+vFJOrBYBmW4jH3Q=; b=jcSkp8IbtVU9GleUxmpY2qvaCkBABS2cTgtq7hydflWe+wLiQU6llkwjobLLDCSHVs KFD72d9PKecycqY3mX2TseyXNmOafwFcyo5p15HEe7Eu+tKrZF1ev48Wpvx8HdCFEZIP unj3Tm5/BV5l8I1ayNTu3JNMvw5M2pk+A0wNyRtZH6LEbadrNLCUjR3Z5ErkGQI3Jr0m pTPR7MgMFP0U8LbokicA00lFVelGp4HYKD6IB/Z+u2FX95MstS2khzJqqv3vrHc2uQXs QmKeiVlr/FGlvz/yCiwBv6jzvd43OLfGkevJPKFvUbNY1Ww4bBykuTy/t9QbGBCRfOSL o6BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745846577; x=1746451377; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jSuR+ofeqp3FHgeyYeLMWfYuid0+vFJOrBYBmW4jH3Q=; b=gaMezCZ1ZGRzmXptw5nzq+wYIk8yNC56vEjhTz0m1D5G7wBhWmer26wNR0n0tUl7Hq NlPrqxE2nrCu4cThkIRc/pnGUCFOlFtXgp+qv9H/dDQRnVhizjrPtUxcN42n/ezjJMMu dA+MbnElUh9OCvHncHJsa33tyyZ6mqnabuRyb6rVOSVuckWiFrDVt+3N8BL2C5EmS5Rl ub3rkpPxkqYUwu7+PICGduD9NWPjJF7YvdjIS6PhtUeKgq+gg7loE3sRi0hpCLpmMMRS z96ZM5B44KvDD0VxYQ+bHj8fUtWiZGnT5HrVDKZf5wxsJro/XwT4uWqg3MvG0pqmizcL 2+eg== X-Forwarded-Encrypted: i=1; AJvYcCUAxH4yGIurIFchhxsyCx58VoIcoNuflTiJGXqNdxQ9P//KcjDshN18XmYs763AetAW8ZGSX2sB+N8=@lists.php.net X-Gm-Message-State: AOJu0Yy88zkgTX+15EKsrYAzeA/51TAuOjYoZ3fcMkgHPTfDvOKhV9l+ MRzln5vekkPz5z5Pdk35SsbK0RfNqiOpjUrtEnCSHp0+nmNKRXG8j8RYV4S14SKyXKqk75lJEWf xJx0IfWyVrYH48eIOYgivR5fyLpo= X-Gm-Gg: ASbGncuoII5WejJdB3MAtweB3DZtPtIQLquUXM705LzbtHZ6TKo9dFYHbkIxLH6LFuL ksioUhTeq+wz0B40ibCQjkivPY8xZwe/PXs6nDIYf0pjjqxh+kgVzU5l7Ji3JIp1qf+4xcPWrJQ xCa3UNSGfSC4C6TR9alnDGUw== X-Google-Smtp-Source: AGHT+IGZTfyUvaAyekZY3jrgWDmjuniUcStuof4jruuCq+3qYDNPjFBcQLzEx5UjXUIF7PSZ2/cysBysEi97xqPTPjc= X-Received: by 2002:a05:690c:25ca:b0:6fe:bf9d:9670 with SMTP id 00721157ae682-7085ed351b0mr118617927b3.0.1745846577256; Mon, 28 Apr 2025 06:22:57 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <39597a9c-6854-40c6-a529-32b2b178cb27@app.fastmail.com> <1748435831.865240.1745844029113@email.ionos.de> In-Reply-To: <1748435831.865240.1745844029113@email.ionos.de> Date: Mon, 28 Apr 2025 16:22:47 +0300 X-Gm-Features: ATxdqUEu1FPkQoogG-Vu-sNHKPZi9M59rQSr1nJftOC_uT8biEUiFWySA44QUDg Message-ID: Subject: Re: [PHP-DEV] Concept: Lightweight error channels To: Thomas Bley Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="00000000000011e5400633d6954d" From: edmond.ht@gmail.com (Edmond Dantes) --00000000000011e5400633d6954d Content-Type: text/plain; charset="UTF-8" > 3) Implement a new LightException (or similar name) with no args in getTrace(). + or 4) Deferred backtrace mechanism: 1. Does not compute the backtrace when the exception is created. 2. The backtrace is fully computed only if the exception is caught using a catch block or by a global handler when reaching the bottom of the stack. 3. The backtrace may not be computed at all if the exception is caught for suppression (possibly requiring separate syntax). There is a technical problem here. When a user saves an exception object somewhere and later tries to retrieve the trace. If a solution to this can be found, then no changes would be needed on the UserLand side at all. ... > --00000000000011e5400633d6954d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> 3) Implement a new LightException (o= r similar name) with no args in getTrace().

+ or 4)=C2=A0 Deferred backtrace mechanism:

1. Does not compute the backtrace when the ex= ception is created.
2. The backtrace is fully computed only if the exception is caught using a = catch block or by a global handler when reaching the bottom of= the stack.
3. The backtrace may not be computed at all if the exception is caught for = suppression (possibly requiring separate syntax).=C2=A0=C2=A0
There is a technical problem here.
When a user saves an exception object somewhere and later tries to retrieve= the trace.
If a solution to this can be found, then no changes would be needed on the = UserLand side at all. ...
--00000000000011e5400633d6954d--