Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75529 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41781 invoked from network); 15 Jul 2014 10:55:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2014 10:55:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:40952] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/98-15121-1B805C35 for ; Tue, 15 Jul 2014 06:55:45 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 9369310C032; Tue, 15 Jul 2014 11:55:42 +0100 (BST) Date: Tue, 15 Jul 2014 11:55:42 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stas Malyshev cc: Andrea Faulds , PHP internals In-Reply-To: <53C46143.8050101@sugarcrm.com> Message-ID: References: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> <53C46143.8050101@sugarcrm.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: derick@php.net (Derick Rethans) On Mon, 14 Jul 2014, Stas Malyshev wrote: > > In general, I am not in favour of casting typehints, as it would be > > a different behaviour from the hard-check typehints that we already > > have for classes and arrays. > > It already is. All internal functions behave this way. But casting typehints is a userland feature, not an internal function. cheers, Derick