Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84284 invoked from network); 23 Nov 2015 01:57:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2015 01:57:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@dasprids.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail@dasprids.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dasprids.de from 46.4.80.198 cause and error) X-PHP-List-Original-Sender: mail@dasprids.de X-Host-Fingerprint: 46.4.80.198 server1.dasprids.de Received: from [46.4.80.198] ([46.4.80.198:49948] helo=mail.dasprids.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/80-12874-18272565 for ; Sun, 22 Nov 2015 20:57:22 -0500 Received: from [192.168.0.86] (unknown [5.158.132.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mail@dasprids.de) by mail.dasprids.de (Postfix) with ESMTPSA id 9BA2834400F8 for ; Mon, 23 Nov 2015 02:57:18 +0100 (CET) To: internals@lists.php.net References: <56429DAB.6010005@dasprids.de> <56455965.60101@gmail.com> <5645C1E9.8000206@php.net> Message-ID: <5652728F.5060201@dasprids.de> Date: Mon, 23 Nov 2015 02:57:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Resource typehint and return type From: mail@dasprids.de (Ben Scholzen 'DASPRiD') On 13.11.2015 12:59, Bob Weinand wrote: > The alternative is replacing the resources by proper objects, without methods and public properties. > Then we could integrate it into our object hierarchy in a very lightweight way with proper typing. > > Having special syntax doesn't really improve it much... > > Bob I just looked at this again, and I don't know how I could miss this for so long, but we already have SplFileObject. Wouldn't it make sense to let fopen() and complementary functions use that? -- Ben Scholzen 'DASPRiD' Community Review Team Member | mail@dasprids.de Zend Framework | http://www.dasprids.de