Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71390 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63686 invoked from network); 21 Jan 2014 22:05:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2014 22:05:23 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.171 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.171 mail-pd0-f171.google.com Received: from [209.85.192.171] ([209.85.192.171:64289] helo=mail-pd0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/84-40896-12FEED25 for ; Tue, 21 Jan 2014 17:05:22 -0500 Received: by mail-pd0-f171.google.com with SMTP id g10so7978383pdj.16 for ; Tue, 21 Jan 2014 14:05:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rPV3j/LxvZPTr7tLhh1526awXqWYH2iD5HO9XkiZeuU=; b=Td9WdA5YXY1rfWY4zt+ArYSyipWrz9zd9i4uFffRKhSmuhwNv0+ifLrSxGw274PskH sqcculHQebmyexDuFfc/ZNTBiq5/NQvkmmkTIKxflYXB6Efoige6NnODJVQdc76hd1s9 qT9teYCcq5tbiRyV2t+j8pCiSXD4FsQB+vkIXNKzQxTKZjn8ANHxBNiV/psT6/+I4JRb cwijUMLv2LiiZsyVZKuNwqqSUioA2qBsSOggCeT6tv3eKqp0IYTbFJ1DDEVEf6FeIY2+ RlkwGkRaLJAnkp/DH3zD3MNwaf4Ln3nRH5hCPt596ci/cT8ib4ylHFCuO0ASDKFLS7RZ dSMQ== X-Gm-Message-State: ALoCoQnd+pwYU7g/tFMN/Qe0xe9JJ7f1r8o3Bw+VrOgi1S5qhGSvKv+Vn8yMxss/8/u+eor5GrCm MIME-Version: 1.0 X-Received: by 10.68.114.99 with SMTP id jf3mr19031698pbb.67.1390341918708; Tue, 21 Jan 2014 14:05:18 -0800 (PST) Sender: php@golemon.com Received: by 10.70.77.164 with HTTP; Tue, 21 Jan 2014 14:05:18 -0800 (PST) X-Originating-IP: [2001:470:1f09:2fa:22c9:d0ff:fe87:295b] In-Reply-To: <1390341389.11834.90.camel@guybrush> References: <1390341389.11834.90.camel@guybrush> Date: Tue, 21 Jan 2014 14:05:18 -0800 X-Google-Sender-Auth: uW4C_OgjrZ-5ml3E_JY1PWo6cYo Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] __debug_info() From: pollita@php.net (Sara Golemon) On Tue, Jan 21, 2014 at 1:56 PM, Johannes Schl=FCter wrote: > What impact does this have to debuggers like Xdebug? > I'd want Derick to weigh in on that. I'm not sure if XDebug only looks at the get_properties hook, or considers the get_debug_info hook as well. > A comment: PHP in most places like var_dump() usually shows the truth, I > think that is nice ... reason why internal classes have this hook is > that there is no truth. > I'm not sure I agree with the latter part of that statement. If the hook existed to allow internal classes to "expose truth", they could do so via get_properties. > I assume a cast to array and ReflectionObject will still show the truth? > Yes. Cast to array and ReflectionObject::getProperties() both look at the get_properties handler which is not impacted. -Sara