Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68321 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23328 invoked from network); 26 Jul 2013 13:14:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2013 13:14:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.51 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:43735] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/85-25917-23672F15 for ; Fri, 26 Jul 2013 09:14:26 -0400 Received: by mail-qa0-f51.google.com with SMTP id f11so398161qae.17 for ; Fri, 26 Jul 2013 06:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5EyjMVcvGvrE7G1B0Vg8KtVI3oy5e974g2wYuA7uV3g=; b=IRkGO5/Uoq5uYFt4xZ4rRLYql4GdJa6WGsfXjCF2VHmJXcRu9uQSmmKtflSrk8HGdI V3LpuPuuWvG2xqeMe4m4TELbmEKg/0Zen11G0XjYi9DpdTvSNP/sQ9GGWRBciyGC4oba 8v5Ub4FGvr3hXQa4aZvezlTRc7i70XqqHo+H6fCxY89ZD45uOAxu/Wl0fJ8hI4eLaGuK R5gKq7ifJQkFBBiRKCzPkMaAsLNPMyV608PUsmFCnwQfcMWneJPwvc+HVu0eO4O4kMC2 YN/QkBirNEJ/PpXp0h01IcirGD1QbJ1wGp31DYtCc34ywETHd5uZG2yeya6foHjGUQBp r4Bw== MIME-Version: 1.0 X-Received: by 10.229.151.141 with SMTP id c13mr971288qcw.111.1374844463961; Fri, 26 Jul 2013 06:14:23 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.224.178.69 with HTTP; Fri, 26 Jul 2013 06:14:23 -0700 (PDT) In-Reply-To: <1374838415.3605.2211.camel@guybrush> References: <51F177E7.3020103@sugarcrm.com> <51F182D2.7030007@sugarcrm.com> <1374793278.3605.1436.camel@guybrush> <1374833069.3605.2106.camel@guybrush> <1374838415.3605.2211.camel@guybrush> Date: Fri, 26 Jul 2013 14:14:23 +0100 X-Google-Sender-Auth: NcpmyJgpmhE28rEKiaIO4iRyewY Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: Stas Malyshev , Nikita Popov , PHP internals list , "nikic@php.net" Content-Type: multipart/alternative; boundary=14dae94edf09e55b1904e269eba5 Subject: Re: [PHP-DEV] New handler for retrieving properties when object is serialized From: bukka@php.net (Jakub Zelenka) --14dae94edf09e55b1904e269eba5 Content-Type: text/plain; charset=ISO-8859-1 > > > This means one has to touch every extension using those hooks. "more use > cases in the future" means having to do this over and over again, for a > feature I see little benefit in. > I don't want to change get_properties. That would break too many extensions. The idea is to create something like HashTable *get_special_properties(zval *object, int purpose, int *is_tmp TSRMLS_DC) This would replace get_debug_info so the number of hooks would stay the same. The only extensions that would need to be changed are the ones that use get_debug_info. The purposes could be debug, serialize, array_casting. If there is a new use case, you would just add new purpose and wouldn't have to change anything. > > I haven't looked deeper but isn't your whole point to change the > serialized representation of the object, to include all data "properly"? > > No the whole point was returning the same properties but only if the object is serialized or debugged. Deeper explanation is in this thread: http://news.php.net/php.internals/68305 Jakub --14dae94edf09e55b1904e269eba5--