Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82893 invoked from network); 24 Apr 2013 16:40:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2013 16:40:22 -0000 Authentication-Results: pb1.pair.com header.from=xwisdom@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=xwisdom@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.43 as permitted sender) X-PHP-List-Original-Sender: xwisdom@gmail.com X-Host-Fingerprint: 209.85.214.43 mail-bk0-f43.google.com Received: from [209.85.214.43] ([209.85.214.43:39843] helo=mail-bk0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/84-60231-5FA08715 for ; Wed, 24 Apr 2013 12:40:22 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm19so856456bkc.30 for ; Wed, 24 Apr 2013 09:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=sviE132/Do2Ac/y7cmmRmUP2gqMXqSqqu+XfilKwDAo=; b=gsDcN/X93ZG0BuPmEDxxlEqNFBPzAen6yfqZrRNMi8UrqoDekB7eh7mR2zKVk05jM3 eYEcwOF88KPBfISlaW6uCENWL5nJaSAFVoSzYUbFUMisaRi/1LCusk9OzY4SV7VdR9BT O/TdqSxl2UfEsNsOnxx6LVSyPth9nc/x8SBMn8g7hK8wi3ML1PomEYUMI15pYBgkGKw7 32TMUvUHVuorGQivt1sEE3AB49qsq88sqWaOr2jRjHLhnto/TCvP8n+rpWS9hHfP5Fsn AJekbfncTxQCoQtYEjQWCZJoniKaruGldpTIREryPb6abdmPfWQGE89yP3WXzkyQbjYA +ppQ== MIME-Version: 1.0 X-Received: by 10.204.168.68 with SMTP id t4mr15314934bky.27.1366821619359; Wed, 24 Apr 2013 09:40:19 -0700 (PDT) Received: by 10.204.13.211 with HTTP; Wed, 24 Apr 2013 09:40:19 -0700 (PDT) Date: Wed, 24 Apr 2013 11:40:19 -0500 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=bcaec52c65b9181eeb04db1df525 Subject: Object Type Casting From: xwisdom@gmail.com (Raymond Irving) --bcaec52c65b9181eeb04db1df525 Content-Type: text/plain; charset=ISO-8859-1 Hello, Are there any plans to add object type casting support in PHP? For example: $circle = (Circle) ShapeFactory::createShape('circle'); $circle->radius = 10; echo $circle->getArea(); It would be great if this feature could be added to 5.5 :) __ Raymond Irving --bcaec52c65b9181eeb04db1df525--