Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128284 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 lists.php.net (Postfix) with ESMTPS id F29221A00BC for ; Tue, 29 Jul 2025 06:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753771468; bh=noqW/8G+6hsQE3/aGoyeqmWIInMkzAmv3PAfIPOubDU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eBh5aZXF9A5Td0ziXgu6ouytPCFknBTuRANwJXDCLfhkbj4k9VggaD9cJ/Sd92lM1 S7snXeBtS5BZChiE9ZAHMNb53A9/JF58g/fqqHKU3WsGWzAVmZXfKo1R+S+q30bW9p BaOAmdWeLu0uN1H+fcgvcQjsw54WG0ArJGdraJI9p4iTLvR8yk+/XZFZlZPeremXTz nG+Pfdfs5w/eAB6yaHjpR9kW4rdbHqJf6ANzal4QSm6BsDnBcV5G+xMmKQvStA8U3A tDV7k547ldSG36dIcpWye6AM9wy1zTZNWsTvVMjYw7t8LVG7Ia/2XVw/0jbRjDFMnz liCsVA323uh5g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF929180074 for ; Tue, 29 Jul 2025 06:44:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 ; Tue, 29 Jul 2025 06:44:23 +0000 (UTC) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-b31f0ef5f7aso2811942a12.3 for ; Mon, 28 Jul 2025 23:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753771565; x=1754376365; 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=noqW/8G+6hsQE3/aGoyeqmWIInMkzAmv3PAfIPOubDU=; b=RsFEbqYhQMEd1+X4+slrqpiaFkRIUMTfm1fJg4df9Q7PkBqzgtk4Z5JaZz/NJdpFhh mBYrZiSgx1cBsel341CvTwDFaM7qY4dU+GAp5bj6BXI2iotSMJxrW/vG85PQJTOw0NPR zPOZEChPB79kg/Bsv6uORsT4GENKVPrKaP4szyUk3wRzpUSFbbha9tz1mzc3XOcagioP g9vdMEM+AtqM7r5HnwJHzaW+f0X7Uyi2oBRfQ0/W8S2khcOCfdFIQWUbpp/77DJ/xbN1 hemRAIM0o1cpqYiY6xqhvSP8dzb9POz6BXyvkdO2gFdpE3X5Q4egRZtsgeTi1Lm90j8n 3ddA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753771565; x=1754376365; 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=noqW/8G+6hsQE3/aGoyeqmWIInMkzAmv3PAfIPOubDU=; b=qxIU9PzZRF7xziAC9JolK0JZSIyr1Pc67rx4nmLRZsmGM3h7XLNlkykmv5wd6xRppk 0RJ2JC/Qe2Du1fywxuizt1BfOxNqRfcTllSPgj6rmg4rNkowXeOLOkuaZdPyY6twmSJI hdSZWNduCUeuI7MWzbPiYDSCOipYTxcpK7PA13ZSJftMYD4bfkwRq2h45zb9oXCy/tzT +2M3FBTJ85vHhVkGKGxpa821U4kmloK3Iqgc+yIEz2dXTLB0s135CVIJxxmWBUD2KJ9d XiRnKRB+wmrwRevCH5SeYe8eT7PGMsMNY5Xt/ywK6cG1al0sEiPJl62lsMDV6JSGbKB5 nhvA== X-Forwarded-Encrypted: i=1; AJvYcCWhlhw/mcCDObC1fwgl5RjjyROWBlLZRwooOCrRPALaq2seVvmLyAjlcr3FVXMnbsA6J6ZJCxLlDPc=@lists.php.net X-Gm-Message-State: AOJu0YydJ8ym+aTs/D8FWyuG3QdRFkcUi1wT5OMcgwQQoncP0HpfnDNs zjsR9wijFgKsipdHqIvcYLyDkzAScsoAK43FswvxnjsUwSxwSzc0mm54oLbqHy2cHsUpPGybo7/ M5ClW8tVI7r20mzpAPcl1ElOm/IpdBJ8= X-Gm-Gg: ASbGncuXPntuSWAqZJmOZmMVuzJE4tSwqJMgk4VQE/8KwqtftuMhPfrD4u00tmBxXll Q6qydlSOsiMIwMTyfRA26dw7pH88KNx9RTt5gKuLTfOn3gjCt9yum8I3XDfLQJh+fCsXk4UaZIG xkQs0PMEEQ57CKfLl04v+tLPNriVGHZpdHHx4IFm0BYk9s4JgNgi1PM6OgcEdwRZbWp1oxf3SzF 0EcgCCf X-Google-Smtp-Source: AGHT+IFTM26DacGyfuXm238EvA/kRauEV+IQYNdN7hz47ZRs3sNt68zySJiq2XDynOXavhAveIBi5iHUG8IgRGQrWI0= X-Received: by 2002:a17:90b:1e08:b0:311:ea13:2e70 with SMTP id 98e67ed59e1d1-31e77a3e9f7mr22266012a91.14.1753771565185; Mon, 28 Jul 2025 23:46:05 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <7d83b833-6432-4a86-8e11-b4199fa92430@app.fastmail.com> In-Reply-To: Date: Tue, 29 Jul 2025 09:45:53 +0300 X-Gm-Features: Ac12FXzVI6TEhUVtxn0nXaE1Zub25uGUtOq7cuk3Q2dq4i5ZUySiNLFpDpFZf-U Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] User-land Throwable To: Kamil Tekiela Cc: Rob Landers , PHP internals Content-Type: multipart/alternative; boundary="00000000000029020a063b0bc376" From: xepozzd@gmail.com (Dmitry Derepko) --00000000000029020a063b0bc376 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 28, 2025 at 8:54=E2=80=AFPM Kamil Tekiela wrote: > > > On Mon 28 Jul 2025, 20:50 Dmitry Derepko, wrote: > > IMHO the trace should be set by the engine > Agreed. It should and it should continue to do it. > it should not be possible to overwrite the getTrace method. > >> Disagree. Not all traces can be created locally by the engine. 3rd-party traces are as useful as regular. --- Ok, what about a SyntheticException which will allow users to set message/code/trace/line/file/etc from scratch? Looks like a balanced solution between all our internal workarounds with custom properties and classes and those who don't want to change the rest of the mechanism of exceptions. --=20 Best regards, Dmitrii Derepko. @xepozz --00000000000029020a063b0bc376 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Jul 28,= 2025 at 8:54=E2=80=AFPM Kamil Tekiela <tekiela246@gmail.com> wrote:


On Mon 28 Jul 2025, 20:50 = Dmitry Derepko, <= xepozzd@gmail.com> wrote:

IMHO the trace should be set by the engine
=

Agreed. It should and it should continue t= o do it.
=C2=A0
it should not be possible to over= write the getTrace method.=C2=A0

Disagree. Not all trac= es can be created locally by the engine. 3rd-party traces are as useful as = regular.

---

Ok, what abo= ut a SyntheticException=C2=A0which will allow users to set message/code/tra= ce/line/file/etc from scratch?
Looks like a balanced solution bet= ween all our internal workarounds with custom properties and classes and th= ose who don't want to change the rest of the mechanism of exceptions.

--
Best regards,
Dmitrii Derepko.
--00000000000029020a063b0bc376--