Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87078 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3766 invoked from network); 8 Jul 2015 19:29:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2015 19:29:13 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.53 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.216.53 mail-vn0-f53.google.com Received: from [209.85.216.53] ([209.85.216.53:46371] helo=mail-vn0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/23-01629-70A7D955 for ; Wed, 08 Jul 2015 15:29:11 -0400 Received: by vnbg190 with SMTP id g190so31740052vnb.13 for ; Wed, 08 Jul 2015 12:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Lt3ISL01x/HmyLPqEp3j3u8LGdKNrbpek98bIOKtpTQ=; b=DGvfyhX3q+fz5BWEL9+J8TWWXEGTUscm6fOmJ5Lw28g8PFxdLBS7bUAW19DtAZG/b7 pNDX8Gy2zKmuToKDuZyK7QC5uniYMoUMzbN3TdFDvzH74k/cGPRQ7w8Vjb/PZ5wPnzOR hDgCSJK5na0I4zLvmCkZ2FKakut/5YrQRggfeo933pZRn2Ab8TXXME2I1EIq3M1prE37 5eG5a5bNVw/5XxbUIgQSD/b2lMCq6qVCIFFsiY0Qf6ZXcwykNgjhE80OMVTXLOzn2Ej8 eShxzbRZga/fdLaODo1xBp6oKgjyBcCibTETXrQTT7m6DRFC/S512ee9BPRx9a7F2pzO N2xg== MIME-Version: 1.0 X-Received: by 10.53.5.37 with SMTP id cj5mr11633793vdd.34.1436383747949; Wed, 08 Jul 2015 12:29:07 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.31.16.68 with HTTP; Wed, 8 Jul 2015 12:29:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Jul 2015 13:29:07 -0600 X-Google-Sender-Auth: W3uYVPJkCqX-EJ0JYWKoFFA1Okk Message-ID: To: Net Mo Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Change IntlChar::getNumericValue() to return something less horrible when the char is not numeric? From: levim@php.net (Levi Morrison) On Wed, Jul 8, 2015 at 1:50 AM, Net Mo wrote: > ICU documentation: > http://icu-project.org/apiref/icu4c/uchar_8h.html#a36982efc84143b9bb5a11bf54b86af48 > > Currently the PHP function returns the U_NO_NUMERIC_VALUE constant, which > is set to the very weird "float(-123456789)"; basically it's a value that > it's certain it doesn't have an Unicode numeric character equivalent > counterpart. > > I would change the function to return NULL instead; what do you think? Why is comparing to U_NO_NUMERIC_VALUE undesirable?