Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60725 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32867 invoked from network); 2 Jun 2012 11:04:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2012 11:04:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:51919] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/53-45898-353F9CF4 for ; Sat, 02 Jun 2012 07:04:51 -0400 Received: by ghbg2 with SMTP id g2so3548506ghb.29 for ; Sat, 02 Jun 2012 04:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EsDR5/SrUkoo8Ls6mHxcvhrVj6Wo6oEiVDRIrUESD50=; b=mzbUeGrN92qfmQL89HoH6SWwjXeXhq9oI0S/mAK5zDhXNee8gvEvIA9bVVPXdjJhQg uGRT1iaVMSXMAxx1R2jnY9+baDtJs4PXfKfu2Rh2/piqUR8XqgCCx6GSPXQbtjkkDsqB Fpit4PLrdMIoLhiPdIyWSr/kAYZuitO1tb/GE9U8ZonxrM0+D8EVyhjbpv1aTogMk5mu rjnos3jCuRYgt1QYWyImvO7G8JYPwktg7ZA3hyYtmgu1ZKtZPaeXrC71/BKBDrWWgxJk PA31DtZ89RxhwWpwtw39PKCBP8DjQEwAC/P5AMz8CpnR6gN6Pf0aDvWTyV5f0RQasDWg +hKQ== MIME-Version: 1.0 Received: by 10.236.37.225 with SMTP id y61mr1162658yha.119.1338635089332; Sat, 02 Jun 2012 04:04:49 -0700 (PDT) Received: by 10.147.82.14 with HTTP; Sat, 2 Jun 2012 04:04:49 -0700 (PDT) In-Reply-To: References: <371954f04ec32d79a45a84ac009ca4a8.squirrel@webmail.klapt.com> Date: Sat, 2 Jun 2012 12:04:49 +0100 Message-ID: To: ab@php.net Cc: Felipe Pena , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] 5.4.3 type hint handling From: hannes.magnusson@gmail.com (Hannes Magnusson) On Sat, Jun 2, 2012 at 11:41 AM, Anatoliy Belsky wrote: > Hi Felipe, > > that's ok but doesn't answer the question with the doc generator :) . > Another issue with this were "php --re" where people would want to look at > the param list. imho it looks more consistent in 5.3 . The doc generator only supports array and class typehints. Everything else will default to "mixed" (IIRC) and you'll need to edit the template afterwards. These typehints you are trying to use, if allowed, would actually reject "10" for IS_LONG before the function would ever be executed. I highly doubt that is what you want. -Hannes