Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127272 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 3E7CB1A00BC for ; Fri, 2 May 2025 12:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1746190645; bh=4dRek1R1OeozksBLkhvXGHK1GpGpO+sAkFSGaN1MqA0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mkXHmRvMvgpgOS8lFtnYbHrY2ovT8/xPL+vcU5zdSEuH9g6WqwPw9VIORMmXtpM4Z bVHDMtt1i6zTVcwGQ3FxZ7hTg5+g6aQKeY5/ZoUFJ2AxfuKHXrnS/iSkLtD7gN958W 0H80VAYYtd8iOLCJPwCBJJIpJgjlryQ9OVMRxttYvUXoCeTDy1bmzhHKN0cezJygFg EJ16zp5VM0v3VPPDjeBIkyrJE57lOHHguP4+EynCj97/dDAol8F1kmOURX3PIhSKpF RovCatXBcjPUd7ecGicnoqsvrRLAix9quYYu4fJFrCkKY6S1kNyL/onBhqPuDK/qFT b83yIx0jiRJNg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ADB3D180034 for ; Fri, 2 May 2025 12:57:24 +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, 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-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 ; Fri, 2 May 2025 12:57:24 +0000 (UTC) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-6fda22908d9so14842067b3.1 for ; Fri, 02 May 2025 05:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746190779; x=1746795579; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4dRek1R1OeozksBLkhvXGHK1GpGpO+sAkFSGaN1MqA0=; b=MIiqjdpsaTTQGtk/E6lPKekHIFpIC7S4TLpje9l9Qp4JhLHJCl3yg4oeqjaXARRAih Kw5A8rtO/GxvN1ZkOPhboPh1R330HadA6NC7BrXwBD7vqAMLgUAeU3XEODMfz4UVupXX iXUgh1j3NQl9d0gtq/WtiAhr8RNlvana0YehcNGR+Le0ohUz/JUrlRotdUXJU02Z1FnC X4vJdtejKOeFM+o7Ss4VwWrpBWMkBEEzYbojqqZdQeFs/41QZpanMLRXj0RG8l5QGZm4 J2vBxa5hGrJ1aipMEdAzieAaEnafT2ox86n5BfWO8lwVZ25XLPaYz1OljenLk6Xq0cYy SBjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746190779; x=1746795579; h=content-transfer-encoding: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=4dRek1R1OeozksBLkhvXGHK1GpGpO+sAkFSGaN1MqA0=; b=jOPgtLn0h63H2Ct9/fejljWI5z5Bf5xo6bmfvp26BwpPUrIA4HaCNp7ELkrPTvO+Ii yixLGy3jsUa4VQh1hMRwZae2cgDr0S+Nv+FYwZVEBZoa09v/U4eyxdfO3wCW8tEkH2rr sgN/rJOnLuPfyV/0NF3At2KRXD7eqWTXudBq11r1ScK3Y66dGlWTlcYwfxR3j0rxR0l9 tyU1udjWbXUP0kD+2qTlN9vpjsso4PURsxW+E4rwihtvDTFK6r+sDfx1dQ0mWyli/fdi aFGPgcSwg99tmQ2441VfMYSrBoecoSEppBRTgy9osVxZzYiixgmpAIXJHviBV/XOsCf6 so6Q== X-Gm-Message-State: AOJu0YyppqnC2/1fny16rVBj7KG43gR6NJg57rHgfNlYhHvlNmDe/lv2 Jryw68jeqy/OyjkAp+A2xjxBHiyOAaMQLRbFmHeN9/ZdcSTI572WxWLI4tBuRa6+ZDLgz8bEeHx SzoQ59E5BdUeGofeI8x1wpXgd6wc= X-Gm-Gg: ASbGnctQ+Lj8pS3I9yT41MRKcAo9lJU6oy+AKVBLYEll+r32Uvh9iGQlsTWqBQjNOcp m9WqiYVdo0BJ8+0b02SfV3wNl0f2ewidZsxdOXKGosDIWdj+LGBWDK4e+AMMoiAUohC1l0HNOFP RfPi5sePryJwuI6Cir6vNKqA== X-Google-Smtp-Source: AGHT+IHQjxLUkqzDZQjxEsGILrIA3lD6LeeEJVT1ATA+KR9obONgaeKTSPFJI3aca7wDi8hxGWWCcPPZeo5l81ATu+o= X-Received: by 2002:a05:690c:4493:b0:6f4:8207:c68d with SMTP id 00721157ae682-708ced21558mr39377677b3.3.1746190779314; Fri, 02 May 2025 05:59:39 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 2 May 2025 15:59:30 +0300 X-Gm-Features: ATxdqUHijwZVjDftXqt512EVwn1pOGS0eUUoXSVLCSnF7zBYCNgbusoRNwy2Egw Message-ID: Subject: Re: [PHP-DEV] Deferred backtrace generation algorithm. To: Bob Weinand Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Hello Bob. > So you effectively will have to manage a weakmap of next-stack-frame to e= xception objects. Yes, that was exactly my first idea =E2=80=94 to use a WeakMap from exceptions. Now it seems that copying part of the frame information will use less memory. But that's not certain :) > Of note is also that $trace and $string are actually private properties. Agree. > If you're interested in providing a patch, you're definitely welcome. Yes, I can give it a try. I'm just wondering if I'm missing something important in the logic.