Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39163 invoked from network); 21 Feb 2014 20:07:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2014 20:07:33 -0000 Authentication-Results: pb1.pair.com header.from=php@marc-bennewitz.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@marc-bennewitz.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain marc-bennewitz.de from 80.237.132.171 cause and error) X-PHP-List-Original-Sender: php@marc-bennewitz.de X-Host-Fingerprint: 80.237.132.171 wp164.webpack.hosteurope.de Received: from [80.237.132.171] ([80.237.132.171:41878] helo=wp164.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/E3-17822-502B7035 for ; Fri, 21 Feb 2014 15:07:33 -0500 Received: from dslb-188-102-010-137.pools.arcor-ip.net ([188.102.10.137] helo=[192.168.178.30]); authenticated by wp164.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1WGwNe-0003RO-6I; Fri, 21 Feb 2014 21:07:30 +0100 Message-ID: <5307B1FE.1020604@marc-bennewitz.de> Date: Fri, 21 Feb 2014 21:07:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;php@marc-bennewitz.de;1393013253;9130e756; Subject: [php6] OOP resources From: php@marc-bennewitz.de (Marc Bennewitz) Hi, here another idea for PHP 6 the simply means removing the datatype "resource" because and convert current resources into classes/objects as it's already done with GMP. Because resources are simply a pointer to a somewhere described data structure - resources are the exactly the use case for objects. To be bc current resources should be instances of an interface "Resource" and the function "is_resource" would work similar as "$resource instanceof Resource". I haven't enough knowledge about the internals but couldn't that be implemented in a bc way by changing resource macros to handle objects? Thoughts, Marc