Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49034 invoked from network); 25 Jul 2013 16:42:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2013 16:42:13 -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.177 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qc0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:48520] helo=mail-qc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/F4-05798-36551F15 for ; Thu, 25 Jul 2013 12:42:11 -0400 Received: by mail-qc0-f177.google.com with SMTP id e11so545709qcx.22 for ; Thu, 25 Jul 2013 09:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=uxPbNwFBBBS8l0rkPOZew/D2Nw8n4y5yZQ/ngGhIHJY=; b=ckcZhmrXlBkdce+FRRgxDPcVyrY3R7FxqjuxDuXdTDHSgOYQAy9tO56OA1VOhX9chJ z+nyBCY0Yh33mEY3tSGOmNfcTn+PKpZvT99FLSbmwx/Rwrr6UQXU2wrlXus311VAmi2g obw0snZ8Zb+C/sxCrGIhUTvtVz01vPqt3yizOQBQWRX0SzqNqQyhH2Kph5ahaEIxTMk3 UQRWzoePgMkfq9iqUUX5J12fubBGAn49CQbBNEl6wUlGDTDCRdAFB9JND8FzpjTWsi5N OfIFfLdOhmIYZt37O7BLOSypUOOUK6BwqzQVn0sWJHoPh5yMyZnggYlpIMk0C1gFfeI6 Braw== MIME-Version: 1.0 X-Received: by 10.224.147.206 with SMTP id m14mr18101281qav.111.1374770528750; Thu, 25 Jul 2013 09:42:08 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.224.178.69 with HTTP; Thu, 25 Jul 2013 09:42:08 -0700 (PDT) Date: Thu, 25 Jul 2013 17:42:08 +0100 X-Google-Sender-Auth: Hv_0wCVtwhsFZqcgGBGboHzAHcY Message-ID: To: PHP internals list Cc: nikic@php.net Content-Type: multipart/alternative; boundary=089e015380d403ab3104e258b589 Subject: New handler for retrieving properties when object is serialized From: bukka@php.net (Jakub Zelenka) --089e015380d403ab3104e258b589 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have just sent this PR: https://github.com/php/php-src/pull/397 It's reaction to the comment from nikic in PR: https://github.com/php/php-src/pull/393 The patch is about adding new object handler that is used when object is serialized. Currently this needs to be done using get_properties which is sometimes a bit over kill. It's useful in situation if you only need to change properties for serialization. It's very similar to get_debug_info that is used only in specific situations (print_r...) Currently I call it get_serialize_info . It was the first name that came to my mind. :) I am happy to change if someone has a better idea? Any thoughts? Jakub --089e015380d403ab3104e258b589--