Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49341 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32065 invoked from network); 11 Aug 2010 15:03:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 15:03:22 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:38273] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/75-01618-7BBB26C4 for ; Wed, 11 Aug 2010 11:03:20 -0400 Received: by pvg16 with SMTP id 16so89143pvg.29 for ; Wed, 11 Aug 2010 08:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=j3wshv8MFuV0qTqz5ai9eHADbSQ1RLweKAw3sNiGHQg=; b=hlq3BcxJBTskS0fgW+vyhdGzGxqulwlFS2tlCAP4oonUgQZ0TSdJWFGS4BKDXGirs4 1c1BYpPp0ejacfPc5Pf1ZE9F48CVRc1XQcF6MXmVuA/yijLleQ8ZZqqvQySe5SDTQOtj Oz0tirZdD9QuXlil+/iHAdRIvx+TEj1yG6/dU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=v1bV0PVgNdPEqTWHbhQlro7dEt7gYJSMAf5jCWaFJGC+zejEvRnXX5Hc9LLNDRbUvj YHOuEzOYLaUt3ExFHgi/acnePQSKwOhpjRmKG2yma3qK9jCuGt494ZIhNILr91U6Rxku ZIN62pyZyJDR/YtINpjWqFAM6t7pWRZ+s3/5E= MIME-Version: 1.0 Received: by 10.142.230.18 with SMTP id c18mr16201751wfh.226.1281538994742; Wed, 11 Aug 2010 08:03:14 -0700 (PDT) Received: by 10.142.43.8 with HTTP; Wed, 11 Aug 2010 08:03:14 -0700 (PDT) In-Reply-To: <4C62B9E0.4030305@gmail.com> References: <1281478269.6608.292.camel@guybrush> <4C61D6D0.90907@sugarcrm.com> <4C62B9E0.4030305@gmail.com> Date: Wed, 11 Aug 2010 19:03:14 +0400 Message-ID: To: Ryan Panning Cc: internals@lists.php.net, Victor Bolshov , smalyshev@sugarcrm.com Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Strict typing From: indeyets@gmail.com (Alexey Zakhlestin) 2010/8/11 Ryan Panning : > Because the current syntax used for type hinting > classes/arrays is strict. If changed, you would need to specify that scaler > types are weak but classnames are strict and now you have a WTH moment. Not really. Class type-hinting is not strict. The only reason why it looks strict is, that PHP doesn't provide userland ways for object-casting. As far as I remember, zend-engine, underneath, actually has hook for casting. And nothing stops us from supporting such casting with hints, eventually. -- Alexey Zakhlestin http://www.milkfarmsoft.com/