Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66958 invoked from network); 18 Mar 2016 22:10:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2016 22:10:46 -0000 Authentication-Results: pb1.pair.com header.from=php@dennis.birkholz.biz; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@dennis.birkholz.biz; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain dennis.birkholz.biz does not designate 144.76.185.232 as permitted sender) X-PHP-List-Original-Sender: php@dennis.birkholz.biz X-Host-Fingerprint: 144.76.185.232 yukon.nexxes.net Received: from [144.76.185.232] ([144.76.185.232:36053] helo=mx01.nexxes.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/93-42473-3EC7CE65 for ; Fri, 18 Mar 2016 17:10:44 -0500 Received: from [192.168.178.29] (xdsl-84-44-210-169.netcologne.de [84.44.210.169]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: db220660-p0g-1@packages.nexxes.net) by mx01.nexxes.net (Postfix) with ESMTPSA id B91594824D4 for ; Fri, 18 Mar 2016 23:10:39 +0100 (CET) To: internals@lists.php.net References: <56E9C241.1090905@fleshgrinder.com> Message-ID: <56EC7CDF.8050002@dennis.birkholz.biz> Date: Fri, 18 Mar 2016 23:10:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56E9C241.1090905@fleshgrinder.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: php@dennis.birkholz.biz (Dennis Birkholz) Hi all, Am 16.03.2016 um 21:29 schrieb Fleshgrinder: > Another more complicated user case would be *mysqli_fetch_object* that > populates the properties with values from a storage but values that > should become something specific and strict at some point but are > initially populated as strings. Type coercion would be a nice thing here > but with strict checks afterwards. I really don't like the special way mysqli and PDO use here. Both should use the __set_state() magic method as would any userland code. But that is a discussion for another thread ;-) Greets Dennis