Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63142 invoked from network); 19 Mar 2015 14:35:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2015 14:35:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=pencap@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pencap@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.177 as permitted sender) X-PHP-List-Original-Sender: pencap@gmail.com X-Host-Fingerprint: 209.85.213.177 mail-ig0-f177.google.com Received: from [209.85.213.177] ([209.85.213.177:35737] helo=mail-ig0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/24-32681-E9EDA055 for ; Thu, 19 Mar 2015 09:35:10 -0500 Received: by igcau2 with SMTP id au2so95244385igc.0 for ; Thu, 19 Mar 2015 07:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ymP+ZX6ilgCRN4ydf9eHHpN1fMytadz9317crXam6qY=; b=TRwnGb4WdT+pZ0J1ZQfhoR8B/7nZxYXUx1QCZWE+sGzjUbb3Te/pCs7r+mjXfD9kzW KgCnknMjG86PaYvgxl/tX/ykaBbNXko5qbhA6hs9bXv7YHNDFontOoJ6MiNix6t1OEIF DgjOE8CvrtkSEDpqtQqo2XgOaK10YvNJk9+5fHok/+G1URT0nEpq+zRqfLLbOyJsv3+G wHR5A8KBYrPwbtlmdH72Boiv7ZQWthqciFUBvewVcS8f4HV/lpuGg7FIkPkl1kDKbUHF GpFj7p8Socdqh90NCsDuTjw+gFPKZ9w9dP/+bz1dyFbEZSDs/tG/ItJHtXrUCWMJZDUj t4YA== MIME-Version: 1.0 X-Received: by 10.107.34.210 with SMTP id i201mr19036849ioi.1.1426775707797; Thu, 19 Mar 2015 07:35:07 -0700 (PDT) Received: by 10.64.110.194 with HTTP; Thu, 19 Mar 2015 07:35:07 -0700 (PDT) Date: Thu, 19 Mar 2015 09:35:07 -0500 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a114031a03cdcf70511a51bed Subject: WIKI Account Request From: pencap@gmail.com (Mike Willbanks) --001a114031a03cdcf70511a51bed Content-Type: text/plain; charset=UTF-8 Hello Internals, I had requested a wiki account (mwillbanks) as I would like to propose an RFC on Object casts to scalar types. This has previously been discussed prior to scalar type hints and since we have those now coming into PHP 7, I believe it would be a great time to take a look at this for 7.1 (Discussion will not be immediate as focus needs to be put into 7.0) The last RFC had gone inactive back from 2012: https://wiki.php.net/rfc/object_cast_to_types and I have talked with ircmaxell about doing something similar but making it more inline with STH as well as supporting a generalized __cast. The general cruft of it is to have objects have the ability to support: + __toInt + __toFloat + __toBool + __toArray + __cast Removing the existing having __toScalar as it would no longer make sense in this context. __cast would be utilized more or less as function((int) constant_type) where as it may mean PHP_TYPE_* as initial feedback on the idea showed that it would be the most generalist approach and might be useful in that context. Regards, Mike --001a114031a03cdcf70511a51bed--