Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65236 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85091 invoked from network); 28 Jan 2013 12:06:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2013 12:06:18 -0000 Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 67.200.53.250 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 67.200.53.250 mail.zerocue.com Received: from [67.200.53.250] ([67.200.53.250:53939] helo=mail.zerocue.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/07-28517-9B966015 for ; Mon, 28 Jan 2013 07:06:17 -0500 Received: from [172.17.0.122] (unknown [70.112.216.188]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.zerocue.com (Postfix) with ESMTPSA id C1DBF12037B; Mon, 28 Jan 2013 12:06:14 +0000 (UTC) Message-ID: <510669B2.3020706@zerocue.com> Date: Mon, 28 Jan 2013 06:06:10 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Christian Stoller CC: Stas Malyshev , "internals@lists.php.net" References: <5102D1DB.9060305@sugarcrm.com> <51032B3C.7040608@sugarcrm.com> <51033962.1030805@zerocue.com> <510342CD.6020405@sugarcrm.com> <51039A95.6010307@lerdorf.com> <510422B1.7020605@sugarcrm.com> <4ED7146272E04A47B986ED49E771E347BB40C8FC5C@Ikarus.ameusgmbh.intern> In-Reply-To: <4ED7146272E04A47B986ED49E771E347BB40C8FC5C@Ikarus.ameusgmbh.intern> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: cpriest@zerocue.com (Clint Priest) On 1/28/2013 2:09 AM, Christian Stoller wrote: > In userland we can only do something like > $str = new String('my_string_class'); > echo $str->length(); > > But that's useless. > It would be great if method calls on primitive types could be supported, like in Nikic' proof of concept (https://github.com/nikic/scalar_objects). > > $str = 'my_string_class'; > echo $str->length(); > > I would really like to see that in PHP. It's not only a nicer and shorter way to code but it would also be a solution for the function naming inconsistency ;-) +1 from that, fortunately since it's an extension it won't be subject to a vote, you can use it or not. :) The core seems to be heavily protected by the core developers. > Best regards > Christian > -- -Clint