Re: [RFC] [VOTE] __debugInfo()

From: Date: Tue, 04 Feb 2014 13:16:22 +0000
Subject: Re: [RFC] [VOTE] __debugInfo()
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Tue, Feb 4, 2014 at 7:47 PM, Crypto Compress <
[email protected]> wrote:

> Hello Sara,
>
> some more questions:
>
> 1. Can this hook be bypassed or disabled (global/temporary)?
> e.g. real_var_dump(), ini setting, some other flag?
>
> 2. What will be affected by this hook beside "var_dump"?
> e.g. xdebug output, var_export, ...
>
> 3. How would this behave (segfault?):
> public function __debugInfo() { var_dump($this); return []; }
>

Yeah, there doesn't seem to be any recursion protection, just like:

public function __toString() { return (string)$this; }


>
> Thank You!
>
> cryptocompress
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
--
Tjerk


Thread (55 messages)

« previous php.internals (#72196) next »