Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48074 invoked from network); 12 Nov 2010 03:57:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2010 03:57:47 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.6 Received: from [195.226.6.51] ([195.226.6.51:55030] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/D2-09545-83BBCDC4 for ; Thu, 11 Nov 2010 22:57:45 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 9009784A5F for ; Fri, 12 Nov 2010 04:54:51 +0100 (CET) X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (darkcity.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xfTKNgzMbAFb for ; Fri, 12 Nov 2010 04:54:33 +0100 (CET) Received: from [10.0.1.5] (178-83-161-240.dclient.hispeed.ch [178.83.161.240]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id C80DD84D9D for ; Fri, 12 Nov 2010 04:54:33 +0100 (CET) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 12 Nov 2010 04:57:23 +0100 Message-ID: <3667608E-11C3-43B8-B652-CDEF46F87CE5@cschneid.com> To: PHP internals Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: Re: Supporting Binary Notation for Integers From: cschneid@cschneid.com (Christian Schneider) On Thu, Nov 11, 2010 at 3:57 PM, Jonah H. Harris = wrote: > RFC added. I'm not sure what the protocol for RFCs is, but I put it = under > the In Discussion heading. Sorry if I was wrong. > http://wiki.php.net/rfc/binnotation4ints Just one little note: If I'm not mistaken this would introduce a subtle = BC break when doing the comparison "0b1" =3D=3D 1 which is false now but = would return true afterwards, right? Likewise is_numeric("0b1") would = suddenly return true. Is it worth the (possible) WTF for something hardly ever used? - Chris