Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72196 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89863 invoked from network); 4 Feb 2014 13:16:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2014 13:16:25 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.54 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.212.54 mail-vb0-f54.google.com Received: from [209.85.212.54] ([209.85.212.54:49279] helo=mail-vb0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/51-17725-828E0F25 for ; Tue, 04 Feb 2014 08:16:25 -0500 Received: by mail-vb0-f54.google.com with SMTP id w20so5847214vbb.27 for ; Tue, 04 Feb 2014 05:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/eltSSKBQHRZbfcudzqab54nKImUtELgBKjCMO3JCJ8=; b=OGuegDaouVjJzuEM6prwsINEJxVpfaeYGFLVJi2ziYP/JG3m523ze1u6cVOvama5WN C5IqZBBoBoKxm02Hudovk2rq07XHMi7a8cE+7zNV/H9F2cqqoZydneoQROrW9v0KjqbN zHd57r5wGE6aJsPmYeKwqMhz4ebtf6lGNFGpbr77eUIjcbkuB0i5q0IPpcRLlFqeqAL/ d4+UdndVfDZCBlN06jCM0XxZFWHkYlnMt7v4jrPruKga9XdWFtG0k9M9cM8A2St9KbNo q2KRbxrzSuVLN44zBgic7MYong2eJUYZldhwazfNDfiZqJeDqN//hgZQCwWOFvTmhkef FjFQ== MIME-Version: 1.0 X-Received: by 10.58.200.168 with SMTP id jt8mr1103949vec.30.1391519782228; Tue, 04 Feb 2014 05:16:22 -0800 (PST) Received: by 10.58.133.229 with HTTP; Tue, 4 Feb 2014 05:16:22 -0800 (PST) In-Reply-To: <52F0D36B.7010905@googlemail.com> References: <52F00437.7010903@googlemail.com> <52F005E6.6090702@googlemail.com> <52F0D36B.7010905@googlemail.com> Date: Tue, 4 Feb 2014 21:16:22 +0800 Message-ID: To: Crypto Compress Cc: Sara Golemon , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=047d7bd6bd7651742e04f194723d Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: tjerk.meesters@gmail.com (Tjerk Meesters) --047d7bd6bd7651742e04f194723d Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 4, 2014 at 7:47 PM, Crypto Compress < cryptocompress@googlemail.com> 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 --047d7bd6bd7651742e04f194723d--