Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86886 invoked from network); 2 Sep 2017 11:52:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2017 11:52:26 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.221 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.221 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.221] ([81.169.146.221:24111] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/21-04538-87B9AA95 for ; Sat, 02 Sep 2017 07:52:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1504353142; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=f6OUwXUcxvZaNPL/MBKqBHGs5vOLDFNv5QN6m6ZoFxU=; b=Lq8Mf1hVixpTiweUgYVzuf8XnSdnZidqdNfQg54YqHnh9SiNiz3OxtZN7ejZdzTm+E ShAsSSTpSKOM/q4CL5bk3NUhHiJVOEukeqf6CME9vZ8GXibD5gKesvJ8Nca1aXQ126pC wnp3y1jQU1GN6k6sJY9YmRahvAEHRL5FNNKDk= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuYROBqD/tf4= X-RZG-CLASS-ID: mo00 Received: by mail-yw0-f175.google.com with SMTP id t188so10423316ywb.1 for ; Sat, 02 Sep 2017 04:52:22 -0700 (PDT) X-Gm-Message-State: AHPjjUhSjHHhHT4IsO5vXiF0F5jlblg5EojcOPTdVhvBYa4lZwym1Mit hUmx1Bh/Jaqf+iqrrKbJlkUefhTE8w== X-Google-Smtp-Source: ADKCNb4x5kw72goEYwwH4jPzs1uioGjy7LrcrpSUQNxi2taa1GrjJei+6b7/pyXARmlvMQEOz5hk6gp97hUIdlB5kf8= X-Received: by 10.37.188.18 with SMTP id i18mr4365709ybh.351.1504353141467; Sat, 02 Sep 2017 04:52:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.224.146 with HTTP; Sat, 2 Sep 2017 04:52:21 -0700 (PDT) In-Reply-To: <6537e000-3ceb-9b51-9ce6-7d1b8f33318c@gmail.com> References: <7e336645-7b47-2772-257a-a51b6849e4b5@gmail.com> <6537e000-3ceb-9b51-9ce6-7d1b8f33318c@gmail.com> Date: Sat, 2 Sep 2017 13:52:21 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary="089e08247eb49d329b05583382f8" Subject: Re: [PHP-DEV] Stop Exceptions capturing object references for trace arguments From: me@kelunik.com (Niklas Keller) --089e08247eb49d329b05583382f8 Content-Type: text/plain; charset="UTF-8" > > Would the args still be available in the stringified version? Because >> they're quite useful for debugging there. >> > > Hm, I guess we'd need to store the string representation (the class name, > basically) somewhere so we could keep that. Doesn't seem like it ought to > be too hard, unless there's some hidden complexity or performance impact > there. Not sure whether there will be a noticeable performance impact. Formatting doesn't have to take place on collection, but a replacement of object references to some representation that can later be formatted. A refcount increase can be saved, but that's probably totally trivial performance wise. Related issue for ReactPHP's promises: https://github.com/reactphp/promise/issues/46#issuecomment-326739299 Regards, Niklas --089e08247eb49d329b05583382f8--