Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128278 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 747B61A00C7 for ; Mon, 28 Jul 2025 17:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753725191; bh=m70qnfcyZL3owTLXEsxqiK2buaKdnbfS4LradUVJcr4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AZ/eNQz+0mty7JKPN04jHSLi5q370szpURSJHo1383tP4xEO4mcZqAUcbTDjUJEMn rAqO6FzEjcICODOSGkvjHGwEVHyP6c8cmMckH1q5bHXJwbMu2GHRm6SDz0vOfyapcX B78hMMaz2NtVw5AzS8nu7qUQ6zahWgJzY8TnQSgKb+L10XzSnVeMEtAK0l2IiruNxd Bi7PRamcnKsBxOAZ0qlIEx6DBlW0oXSlxSoyAhr/0dUNE5ISkfeqizT0SwGy697mpl Ok3P9YP0hOAycq0BfqFUERzOCzKBgM53doHD0sjZW8RQaGl1dNcVr0FKWUVzkxhIf3 z1S0oVIKKSj/A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 52C83180847 for ; Mon, 28 Jul 2025 17:53:09 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,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.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 Jul 2025 17:53:06 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-32b7f41d3e6so1642571fa.1 for ; Mon, 28 Jul 2025 10:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753725288; x=1754330088; 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=m70qnfcyZL3owTLXEsxqiK2buaKdnbfS4LradUVJcr4=; b=TyOSvpDwPBLYxSF0bBV5RZDrNf0+O/DHG2JOE3gdRilokQlLTzCe179ltVsgslssmi +1chV5x7YcuqSNF6CIev5hTsDSQYlQmREc/Wmtas7qVyv7h1xeiLdmXd7GiI5m5F1JSp GmEuDXOp1/T1fq0bR5Rg2hiJJxqC37WSRl7tvrdT7NPp4C1uySrt+PNR+v+plwEw8B2m G9+YGktFGGaVDmBsS52YzPe5uyeWrFRi2b4a36TLczFn44IgnEl+0628c8B2DqEPBDNJ kOqVRVzmOnw0EMpBX3/l0GOfuv9VCfN5p/bG8h4mFwHq3wgnczkPFpCoUdzT0c+2Xzjt +8qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753725288; x=1754330088; 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=m70qnfcyZL3owTLXEsxqiK2buaKdnbfS4LradUVJcr4=; b=QMyzaEC2IqkR0eb0wg8dem/bbRRT5B2/mD2X9vyNMrrV+sYQcrmTpuHcifDEAFrCCb aK1vzRUo9BWi8bLKgoaevowRftGMFhSlr8A+CH7SCZ6PCFXz4Z3JevuWzznLMWXPtbB1 LpPpLak6eS1+2s870z3JsfLkOTndReJRRAm+gx10hb3zCzaD2ch/1FJ7OEEYTbjfNYc/ YEgvzMTJHbvBCmUGxdZ4e1cIWGYByMxuuq6fkwguK1XTUoG52X7/8TLRiUPWj2lCOJzI 9SMVc47eenKE4EXPXBC9a6Ms75Isbt6tYk6nDRcjBYKqMK6Qeiu3qNJAi+lPKQ46qz80 kN3Q== X-Forwarded-Encrypted: i=1; AJvYcCWwYp4BCQbdI1MFSx2UVFjbJUXe+J0GnxYVYk7nyIgRFcG8rjQIGXrF0iGFnUCbit5lNGIhug/i7cE=@lists.php.net X-Gm-Message-State: AOJu0YyYy31W+Pk7W1SyWZ36+6jTLhbLbLHuvlIGiR/cWNzxEN2Dk6nX GbNvQi5ODSHVFet1iKHHz6L6cAHs2HGlNYpAUQPncx6B1+PPC+KQRRvbf6pMwwXlr1YQ2MhElKQ DUZudoQc+JAtv/CyRexXl/es7Z3FJfB73zK6DbhmbuQ== X-Gm-Gg: ASbGncvzjM4yx0OwkAZVMSd3Tmy+Zassg7AuRftwwRxhuBFCfFb2vhSo/ysoXKz6OE1 ZXYTuauK+5nwrmRrDB6SaMAPxRZxBX+3VWDmrX5EG3a2CB1i6bSlWONxXTHRdS3nj+BYrzvek8L SWYmQCHn2kyGUAzbSf2YXyoG+AYx3MiuNZtuY+rEQ3uJL65TbT1YLPLjeKXQ15n5M+0G0DJtHrU 6a4SiZzd3OaI+NxmQ== X-Google-Smtp-Source: AGHT+IFdXB26IxnQtTJOEyYuQDCDMYbF2k5WAW7uql4PpTuH909Z505JaDfgKWW3zXkhWDdguEKmwP+YOIT+iehUPG8= X-Received: by 2002:a2e:bf10:0:b0:32b:7614:5722 with SMTP id 38308e7fff4ca-3321545b3c8mr1250341fa.13.1753725288077; Mon, 28 Jul 2025 10:54:48 -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: Mon, 28 Jul 2025 20:54:35 +0300 X-Gm-Features: Ac12FXwUusicLS3uMlmV-HaHuJA9WuHyu1xRMi_WIlp8D0iHUE5m3TCYdogv9bE Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] User-land Throwable To: Dmitry Derepko Cc: Rob Landers , PHP internals Content-Type: multipart/alternative; boundary="000000000000d4615a063b00fcf0" From: tekiela246@gmail.com (Kamil Tekiela) --000000000000d4615a063b00fcf0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon 28 Jul 2025, 20:50 Dmitry Derepko, wrote: > > On Mon, Jul 28, 2025 at 3:26=E2=80=AFPM Rob Landers w= rote: > >> >> Wouldn=E2=80=99t a better approach be to allow serializing/deserializing >> exceptions? >> >> =E2=80=94 Rob >> > > It would look like another workaround to my case. Same as deserializing > data into a class to write into a private property. > The simpler the better: just allow users to set their own trace. Or not > set it at all. > > -- > Best regards, > Dmitrii Derepko. > @xepozz > I still don't understand what real life use case this solves. Maybe you already explained it but I didn't get it. IMHO the trace should be set by the engine and it should not be possible to overwrite the getTrace method. > --000000000000d4615a063b00fcf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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

On Mon, Jul 28, 2025 at 3:26=E2=80=AFPM Rob Landers <rob@bottle= d.codes> wrote:
<= div>

Wouldn=E2=80=99t a better approach be to allow seri= alizing/deserializing exceptions?

=E2=80=94 Rob

It would look like anothe= r workaround to my case. Same as deserializing data into a class to write i= nto a private property.
The simpler the=C2=A0better: just allow u= sers to set their own trace. Or not set it at all.

--
Best r= egards,
Dmitrii Derepko.
=


I still don't understand what real life use case this solves. Ma= ybe you already explained it but I didn't get it. IMHO the trace should= be set by the engine and it should not be possible to overwrite the getTra= ce method.=C2=A0
--000000000000d4615a063b00fcf0--