Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83446 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23191 invoked from network); 21 Feb 2015 23:20:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2015 23:20:33 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.179 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:34381] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/AA-08895-CB219E45 for ; Sat, 21 Feb 2015 18:20:30 -0500 Received: by mail-ob0-f179.google.com with SMTP id wp4so30614487obc.10 for ; Sat, 21 Feb 2015 15:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FI1aiaJ6NgOK58j6jrSOBGHpYmZc4MNackm9Jkb1TLk=; b=o7Q/Dp6ZOHdLQw9rCRSz7dewhY6TtBGee5y6RLFRrEZwJvolNDULrkptWexan1Ucg7 cAD7fn4huzkzKqsELoC9fGbCAF4aScz7yI2c+x4B4XNuGl805wD61Yk4JX65KruAuo6U P9R4voYB2BwtShycCqtn8u/Q+LEPOfyLlYXbs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FI1aiaJ6NgOK58j6jrSOBGHpYmZc4MNackm9Jkb1TLk=; b=TLPYW4VDskRE3Hz/+gNffTJfxx0JrlU8S47BGCm4V5FJepuWZqSPfYnoOauZpKpCrX BdkM1bnVWqUS3l8iGfFrUYZ+bx4S6Gr+2pQHmrkofbQlWZ4AOv+SRccp26KFWcCROdPi mCG3GAfRKbF0cHpTtKuY7Iav7DH2Z495d/BtqLO8DeYTyhBiHxnVmHNYYrom8po+XD+x k2KF36793hYBregbbu+7Ex5IUZsay06t+2+igRu5ae4z+uqHwJ+J84W+Sow+pHfAkPV/ 5cZQi/m0Tu3SVL+C68uEEu/QfU35UzSMK6fP7WnkR/WEOpXGBqC6uNSNlhJ52PueMcmn 7L3A== X-Gm-Message-State: ALoCoQk7DdnpGBuvQAhc+jrk0HmXZYMrnQ0vujOs/5LqJQf+ds/orXSh/Cy4Yr9qyM7MgqdMEC1Z MIME-Version: 1.0 X-Received: by 10.60.16.202 with SMTP id i10mr1197258oed.16.1424560825142; Sat, 21 Feb 2015 15:20:25 -0800 (PST) Received: by 10.202.214.205 with HTTP; Sat, 21 Feb 2015 15:20:25 -0800 (PST) In-Reply-To: References: <7ef509ef10bb345c792f9d259c7a3fbb@mail.gmail.com> <8250289916f5128b5bc1a114428d374e@mail.gmail.com> Date: Sun, 22 Feb 2015 01:20:25 +0200 Message-ID: To: Zeev Suraski Cc: Anthony Ferrara , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Coercive Scalar Type Hints RFC From: narf@devilix.net (Andrey Andreev) Hi, I intended on replying to this thread at a later stage (and probably will), but I just can't ignore this one: On Sun, Feb 22, 2015 at 12:02 AM, Zeev Suraski wrote: > > Secondly, there you are: http://www.checkmarx.com/ - they've been > developing pretty amazing static analyzers for PHP for years, and without > any type of scalar hints - strict or weak. > Having used that product, I can tell you that it's not at all that amazing for PHP (maybe it works well for other languages, don't know), and that's an understatement. In fact, a lot of what it does is to force you into explicit casts. Cheers, Andrey.