Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29513 invoked from network); 16 Dec 2013 07:19:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2013 07:19:01 -0000 Authentication-Results: pb1.pair.com header.from=chobieee@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=chobieee@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.49 as permitted sender) X-PHP-List-Original-Sender: chobieee@gmail.com X-Host-Fingerprint: 209.85.160.49 mail-pb0-f49.google.com Received: from [209.85.160.49] ([209.85.160.49:51487] helo=mail-pb0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/A2-11425-369AEA25 for ; Mon, 16 Dec 2013 02:19:00 -0500 Received: by mail-pb0-f49.google.com with SMTP id jt11so5046365pbb.8 for ; Sun, 15 Dec 2013 23:18:57 -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=+3SRuHp4ROp96FF+iF9C7Wq+5cAlVU7IeBQfbBYOvEc=; b=on2W493bi+K0g6zwUf/dI3s/syBx8SbPZBDyDQpHwakZL9mhyPWbSme+Ul+tJKxeJH BJgzWpPijHJ4l2itdXD16ESxxda1ty00+JDv/npFnNaa8xcW7GMpnfA/hO0czQ9bkmIo IwFVAa3PWO0kItGibdn6t0ik8wStAMKPYb7L1loYMBr07fgbadhycAFqPR2uJBcATelu 4CMAnE7prsf2UUGp0NJJcNOKvp2ekLn6bDNJB7+ThDBI9dQ5DdD7hOCNoKyGLKmua8og CxL4HqFP03wbDZQH8MsHZfcptr2ysSU22qdXEMYrPvjQbU+qv2hAZflFy+hCl36lGREb XlEg== MIME-Version: 1.0 X-Received: by 10.66.145.166 with SMTP id sv6mr18688538pab.31.1387178337043; Sun, 15 Dec 2013 23:18:57 -0800 (PST) Received: by 10.68.204.198 with HTTP; Sun, 15 Dec 2013 23:18:56 -0800 (PST) In-Reply-To: References: Date: Mon, 16 Dec 2013 16:18:56 +0900 Message-ID: To: Marco Pivetta Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Proposal: ArraySerializable interface From: chobieee@gmail.com (chobie) 2013/12/13 Marco Pivetta : > I'd rather prefer having userland implementations as I mentioned before > (since it's possible). Casting to `(array)` actually solves more complex > problems, while solving the problem of extracting data is fairly simple Thanks, I understand your use case. Surely, casting to `(array)` is faster than ReflectionProperty. I just came up with adding ObjectHydrator extension is also interesting solution on your case. Okay, I'll stop this propose at this time. As there is similar rfc and that status is in draft: https://wiki.php.net/rfc/object_cast_to_types I'm sorry about my poor research. Thanks for the feedbacks. Shuhei