Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74028 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94152 invoked from network); 7 May 2014 18:11:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2014 18:11:55 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:47017] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/76-56552-9677A635 for ; Wed, 07 May 2014 14:11:54 -0400 Received: by mail-wi0-f176.google.com with SMTP id n15so6837352wiw.15 for ; Wed, 07 May 2014 11:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=K8QjhenjrgmLxHi7XSdLGNvOs2pjSaUxlWMetvp2mH0=; b=vjj7Ez0H+6iw+nHcqNImpXQHNOSXDxoOFxPHKLCgh8CxAMiMhuLBQD1aXANvPeUmKd 7I1ohLYpUEhUvlo9R++5MvBmb3FwAEl5l9+vCvi2ZDs+P7D5Y7sexrdvEyECtxFmUNIX 8MqNAzhGJ8YMddUbYrtHtVTMZt5dOhW2we+sdY6B2RkLXY9y/OSFYVS4pAcdqBOnoftp 13lszInTFePtxopXWYg2DFMxSME12V3Itt1reB0UdNlttjhQDjxpzq8FGln3k+HKWt3M DggebynCZ690BN1t5zojSTiD/bP5Xj0AXdzjKNKCVY5kG7/MAVolgwmPlceU1pPCWx5w eaxQ== X-Received: by 10.194.175.70 with SMTP id by6mr39732955wjc.3.1399486311030; Wed, 07 May 2014 11:11:51 -0700 (PDT) Received: from [192.168.0.139] ([62.189.198.114]) by mx.google.com with ESMTPSA id rx9sm27445384wjb.20.2014.05.07.11.11.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 11:11:47 -0700 (PDT) Message-ID: <536A7762.6090305@gmail.com> Date: Wed, 07 May 2014 19:11:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <536A73F6.7040705@marc-bennewitz.de> In-Reply-To: <536A73F6.7040705@marc-bennewitz.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [phpng] naming From: rowan.collins@gmail.com (Rowan Collins) Marc Bennewitz wrote (on 07/05/2014): > Hi, > > I would also prefer to name it was it represents. I mean a ZVAL > represents a PHP typed value and not a C typed one. So for example > IS_LONG would be IS_INTEGER and IS_DOUBLE would become IS_FLOAT. > > Marc Ooh, that reminds me of something I've been meaning to file a bug for, and maybe even attempt a patch, if I can understand where it comes from: the message shown *to the user* when an internal function is passed an invalid value uses "double" and "long" instead of "float" and "int". To somebody not familiar with C or similar languages, the message "some_function() expects parameter 1 to be long, string given" is somewhat cryptic to say the least, particularly because long is an adjective not a noun in standard English, so it could easily be misread as something like "parameter 1 is not long enough". Just a pet peeve... -- Rowan Collins [IMSoP]