Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16755 invoked from network); 28 Jun 2016 02:22:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2016 02:22:02 -0000 Authentication-Results: pb1.pair.com header.from=jesseschalken@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jesseschalken@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.50 as permitted sender) X-PHP-List-Original-Sender: jesseschalken@gmail.com X-Host-Fingerprint: 209.85.214.50 mail-it0-f50.google.com Received: from [209.85.214.50] ([209.85.214.50:35025] helo=mail-it0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/BB-40393-94FD1775 for ; Mon, 27 Jun 2016 22:22:01 -0400 Received: by mail-it0-f50.google.com with SMTP id g127so79659188ith.0 for ; Mon, 27 Jun 2016 19:22:01 -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:from:date:message-id :subject:to; bh=vv347kWhlSoMQD1aX0Fe3x4eTYiaz+bD4p/ypShSPMc=; b=ZK2yLW4U1eyXXBk0VrVVJMjJM4cZJ68C6erlVcPytN2gZx0z+iSrlVxTH7/NwhqR9L DxSH7kB0uhE4yFPaNOwgP94HlKFHnwOj4Eyta7w+GFLIIfpNbl2fANgnRzJjzZiig1+U z8hPwfdVmuNM9NwI+91KyRY8VnWYMVeBY6s10S3IRjJztv9bT18gRmFH0omT4sYK52b+ lQhMIMgcJQBwQ+e4sKs1xWLoEkUZPjYjyKvbIqtuJ9QoPewMFeuKNFsi/8P8jkqb5JNs xvn4Jav0eSyHSjaL1HhwqmSWZLg+YAS5p/BU9UTFaa+nZ79SZ8ivhNbqobF295TiXF3y D8ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=vv347kWhlSoMQD1aX0Fe3x4eTYiaz+bD4p/ypShSPMc=; b=iXwpgw98XyYg0yHIMFL+rkw3xLJqZD7AIxtQ81gCj4OpNXNkvgLe8Y6/3eFGnnb1Za oUJpugXlVjdTu5BmZRBYY4SwUhhuIxhTEXjMnUMkdLfvCYJKSStOTKsqEiZ3SCiu7334 kgGIL/t1mtDzhbz4l7ENnWQ7VCnoP71ItOkl0eFARlhuD3SzN6eDT2xkj+8QmxibS+tr ZCIKN4x/K4GKoE8KBUvRhzUzN0VQTMqh5pffLBbeT9jomb6Ei3NEecN4dkg80zX+zjXi tmxd8JJmt/viyfz+ng61O9btqS2LfaFQxv+uIH5fGVh5udRCZXfZyHUuA9Ptmsvb1RBU GziQ== X-Gm-Message-State: ALyK8tK9zuuUl4RMwcbfJMFuxZKF9RzDtBqzb4tVKNW7f3GHZxM8eKeoK0xUTIjY/3TQ5WwOg9ZCvS8LNDWDrA== X-Received: by 10.36.85.13 with SMTP id e13mr11518082itb.56.1467080518854; Mon, 27 Jun 2016 19:21:58 -0700 (PDT) MIME-Version: 1.0 Sender: jesseschalken@gmail.com Received: by 10.79.72.7 with HTTP; Mon, 27 Jun 2016 19:21:58 -0700 (PDT) In-Reply-To: <28e5ac75-0d94-a111-f702-f9594e7e7a14@fleshgrinder.com> References: <28e5ac75-0d94-a111-f702-f9594e7e7a14@fleshgrinder.com> Date: Tue, 28 Jun 2016 12:21:58 +1000 X-Google-Sender-Auth: Y2_Uinj3qxNgtNZPbJoge0ujh6k Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11447fd42eede905364d4d0e Subject: Re: [PHP-DEV] [RFC DISCUSSION] var_info From: me@jesseschalken.com (Jesse Schalken) --001a11447fd42eede905364d4d0e Content-Type: text/plain; charset=UTF-8 On Mon, Jun 27, 2016 at 3:19 AM, Fleshgrinder wrote: > I would like to start the discussion on the already announced var_info() > function. Especially the following open issues should be addressed > before going into voting: > > 1. Whether to output "negative zero float" for -0.0 or keep "zero > float". This functionality was requested on Reddit but IEEE 754 actually > says that one should ignore the difference. Detecting the negative zero > would also require the signbit functionality from C99 (or weird hacking). > I think IEEE 754 only specifies that -0.0 and +0.0 be considered equal for the purpose of numeric equality. That doesn't necessarily mean converting to a string in some manner should produce the same result. It is already the case that (string)(float)-0.0 === "-0" and this is how I check for -0.0 in PHP. > 2. Whether to output "invalid object" instead of "object of class > __PHP_Incomplete_Class" to make it more clear cut that this object is > wonky. > > https://wiki.php.net/rfc/var_info > > -- > Richard "Fleshgrinder" Fussenegger > > --001a11447fd42eede905364d4d0e--