Re: Stop Exceptions capturing object references for trace arguments
| From: | Niklas Keller | Date: | Sat, 02 Sep 2017 11:52:21 +0000 |
| Subject: | Re: Stop Exceptions capturing object references for trace arguments | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100352@lists.php.net to get a copy of this message | ||
>
> 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