Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67132 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84315 invoked from network); 24 Apr 2013 16:44:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2013 16:44:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=rstoll@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rstoll@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: rstoll@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:58110] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/D4-60231-ECB08715 for ; Wed, 24 Apr 2013 12:43:59 -0400 Received: (qmail 28069 invoked from network); 24 Apr 2013 18:43:55 +0200 Received: from 194663201.coventry.ac.uk (HELO RoLaptop) (194.66.32.1) by ns73.kreativmedia.ch with (AES128-SHA encrypted) SMTP; 24 Apr 2013 18:43:55 +0200 To: "'Raymond Irving'" , "'PHP Internals'" References: In-Reply-To: Date: Wed, 24 Apr 2013 17:43:52 +0100 Message-ID: <004501ce410a$e82a0770$b87e1650$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIdgqxfNZfskE4rz+E3HR1fbVTsuJhHECUQ Content-Language: de-ch Subject: AW: [PHP-DEV] Object Type Casting From: rstoll@tutteli.ch ("Robert Stoll") I suppose your cast is a conversion. Otherwise it is not needed at all because PHP has no types. -----Urspr=FCngliche Nachricht----- Von: Raymond Irving [mailto:xwisdom@gmail.com]=20 Gesendet: Mittwoch, 24. April 2013 17:40 An: PHP Internals Betreff: [PHP-DEV] Object Type Casting Hello, Are there any plans to add object type casting support in PHP? For example: $circle =3D (Circle) ShapeFactory::createShape('circle'); $circle->radius =3D 10; echo $circle->getArea(); It would be great if this feature could be added to 5.5 :) __ Raymond Irving