Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105199 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24399 invoked from network); 10 Apr 2019 12:39:13 -0000 Received: from unknown (HELO mail-ot1-f51.google.com) (209.85.210.51) by pb1.pair.com with SMTP; 10 Apr 2019 12:39:13 -0000 Received: by mail-ot1-f51.google.com with SMTP id d24so1292244otl.11 for ; Wed, 10 Apr 2019 02:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vPEFnp8xGc8gSARKefXJDE/DD+zCYqVHdp6gyvT16Ns=; b=RKbuGm0ijYlwP82HU7uilJMdUDrIAf42284nHO7VS5P6NvBy8uOYvs5fFvDOgpizEY R1KdkfqKntbxLgcsK/8SO5OqWv/rrP2vzZJhenW3tXFTMSdf/wmP9oEKmdGT87gnu8wF 72/oUkDOs173FPfeOWCpaBLeo4RiHiAzHLoQXTF2StNaRZ2sV41zhlAbuzanSo9pnuoW 2DaHF3N2CUj4d916I/+3yQ9L/5E74RsqmtAuuAC1t0FzcX/FWSGGgCF8DOQOMDHjsHn2 NxhVDcIftXu63++/ffalljARblXayMXuK7S82zQ7l1UfvCSX52mu+PxnPFeFzJlVM/hd TLRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vPEFnp8xGc8gSARKefXJDE/DD+zCYqVHdp6gyvT16Ns=; b=EEVY+3rJTf6imWgNdvTKJbGvWhhwl0m0aM5jvLeDGvIX0bAgnn+KU2C24ZVGi8Zu3M c5RGGHfreBNMSy+RQITl0kRfYYoIKDh1VcYt3WM7Z07T4TWKU6TjxIKJnOWdNxvOyqpy 1j6Z2V0qAuIu8Qb1n9eWcR5arCKFOPEaAV8Vwe+5hs8Kregz4620e1a7oy4XnlgbNXqc 4z9zYewCHzjXZGHj09s0RPzX64TS9c5tnCw933bUr8UfKUnVQFFoKeFk5/PgECnPdfVL QkYAGJpropVDuMfsTLqkXCKnWP1gWDyNZ1oQWS6NL95Pt2s09EylKZDF95AhCcP2HS9M nhkg== X-Gm-Message-State: APjAAAXAGvCFaf7Mp7f8K24gThchMnWKFO9K6eTwKJPW+dhHu/5lTuxG O21V2eFaoNj7MhaaBwfFdY2d9pNjqMO63htm0Gk= X-Google-Smtp-Source: APXvYqy2OkN5uV9BLmJ8lUc/fieqLIV32HhsVCW+vc8CAzu/x94xS8WDA/3AidPOt33B7GMeUAei9lJ37IOV7d5uMr8= X-Received: by 2002:a9d:7b50:: with SMTP id f16mr25034013oto.221.1554888979243; Wed, 10 Apr 2019 02:36:19 -0700 (PDT) MIME-Version: 1.0 References: <40683e93-f8e9-5a8c-9646-31c73c99396f@fischer.name> <5ca53eb4.1c69fb81.e223b.922eSMTPIN_ADDED_MISSING@mx.google.com> <5cadaa32.1c69fb81.7dedf.98c0SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <5cadaa32.1c69fb81.7dedf.98c0SMTPIN_ADDED_MISSING@mx.google.com> Date: Wed, 10 Apr 2019 10:36:07 +0100 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Permit trailing whitespace in numeric strings From: robehickman@gmail.com (Robert Hickman) > On the balance of things, I would most certainly like to see leading and > trailing whitespace render a string ineligible to be implicitly > converted, but I'd be satisfied with (int)" 123 " converting without error. > Given that PHP seems to be gradually moving towards more type strictness, would it make more sense to move this functionality to a 'parse_numeric_string()' function? Js has parseInt() and parseFloat() with similar functionality.