Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94258 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85356 invoked from network); 26 Jun 2016 10:31:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2016 10:31:59 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.161.170 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.161.170 mail-yw0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:36410] helo=mail-yw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/9A-00500-E1FAF675 for ; Sun, 26 Jun 2016 06:31:59 -0400 Received: by mail-yw0-f170.google.com with SMTP id b72so134672600ywa.3 for ; Sun, 26 Jun 2016 03:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=MGKcbkZVjE/1yNCxcLvkjJjiUvuSWcXkqQdw3CCQUTw=; b=s3QCRo+EIb+an2ECJM3aIWAnZBlUM05vH7d6xUOfwRHsZNxLUyspWda+LVQXe7YOzQ 0A4j/S1LC7axJiZ7ZFpKmFo08WazA8fKMpXb5Mf3OKNcdVr2Fw7vYEC3jk+65U5GxJ5G fVEtjGiHPi51LwqxqZGHHixPWrfR0eQ0jGF9LmKrmXH0XfTFKgHUDx4LKfu13cT5e4Zj Twg9/2w1CaVpiK8Qw94enSNLWnzRb58G1bfHVKXw/xHdrQutL/4rYoVGnxMDor5GkjjM 1USnS2ovm+yt0tal0t8gQ+bstWr+hxRMy8884TmwiR/GKb8oM91KsptY8WEO/e8nlXYZ aD0Q== 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:from:date :message-id:subject:to; bh=MGKcbkZVjE/1yNCxcLvkjJjiUvuSWcXkqQdw3CCQUTw=; b=WpK5YSWYYnqYfkArk6hhwu53P/CeTEsJtmH7uVGAvw/P6rnIKvkhfIGvquIYeC2NXr SbFsuiWpN+Duu4taGpOP570qk4AB+7Qx2o9qBQ3IAtaMW62ClX73RFPySmWeLM8lMWBO LuxJbGQ5xtzEwYhK3Ek9lunZbrDCDkndkNryR3yXu5YHOVDqQ3+4b8YCoFw+NtF5Z25M TSu/UAI8Crx7hmmGl30Da9FzOZ0JJbIUYUr0R7JHJbgSqMzmoGGX7pxviA8nlD+QW20G PXR5HCp82hIBGHdpMqfC/UzNWXgmAadtJ89Uoum1jMdGdxvnDBfgvD4sC/RoWf2SzxPs VGqg== X-Gm-Message-State: ALyK8tIt7DIRdfYNSfCQy+gZC5skls7a4uBrABZuFUSZ6VnLix1eEtw1JMegiPBddLNPm7PS2ilbcWcbU9sWbg== X-Received: by 10.13.240.194 with SMTP id z185mr9768791ywe.317.1466937116382; Sun, 26 Jun 2016 03:31:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.207.139 with HTTP; Sun, 26 Jun 2016 03:31:56 -0700 (PDT) X-Originating-IP: [2.99.236.140] In-Reply-To: <1e1213c6-3e61-3106-98f8-ce7ab74200e2@fleshgrinder.com> References: <1e1213c6-3e61-3106-98f8-ce7ab74200e2@fleshgrinder.com> Date: Sun, 26 Jun 2016 11:31:56 +0100 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC DISCUSSION] var_type From: danack@basereality.com (Dan Ackroyd) Hi Richard, On 25 June 2016 at 16:25, Fleshgrinder wrote: > I finished the RFC: > > https://wiki.php.net/rfc/var_type > As other noted elsewhere by others, the name of the function is slightly misleading for this case: var_type(1 + 1); However I don't have a better suggestion. From the second half of the RFC: > const TYPE_FALSE = 'false'; > const TYPE_TRUE = 'true'; Although as an implementation detail they are present in the engine, those aren't types in userland. i.e. you can't do function foo(true $i_only_accept_true) {} cheers Dan