Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46698 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97083 invoked from network); 13 Jan 2010 16:21:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2010 16:21:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=hack988@dev.htwap.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=hack988@dev.htwap.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dev.htwap.com from 209.85.223.182 cause and error) X-PHP-List-Original-Sender: hack988@dev.htwap.com X-Host-Fingerprint: 209.85.223.182 mail-iw0-f182.google.com Received: from [209.85.223.182] ([209.85.223.182:42437] helo=mail-iw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/19-00773-003FD4B4 for ; Wed, 13 Jan 2010 11:21:21 -0500 Received: by iwn12 with SMTP id 12so17456308iwn.27 for ; Wed, 13 Jan 2010 08:21:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.162.83 with SMTP id u19mr2313348ibx.25.1263399677254; Wed, 13 Jan 2010 08:21:17 -0800 (PST) X-Originating-IP: [119.96.132.115] In-Reply-To: <10845a341001130802l49d7df07g7ecf846d9867193b@mail.gmail.com> References: <10845a341001130802l49d7df07g7ecf846d9867193b@mail.gmail.com> Date: Thu, 14 Jan 2010 00:21:17 +0800 Message-ID: <4d03254c1001130821k16c8e4b6j4ee208b26e9b87de@mail.gmail.com> To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Numerical string comparison - octal and hex. From: hack988@dev.htwap.com (hack988 hack988) I think it's not an but! you must read carefuly about "Single quoted" and "Double quoted" 2010/1/14 Richard Quadling : > Hello. > > In looking at numer vs string comparison, I think I've found an oddity. > > You can successfully compare hex strings ... > > var_dump(255 == '0xff'); > > but not octal strings ... > > var_dump(63 == '077'); > > > Is this a bug (lack of octal support) or an unexpected feature (hex support)? > > > Neither formats are documented in [1]. > > > Regards, > > Richard. > > [1] http://docs.php.net/manual/en/language.types.string.php#language.types.string.conversion > -- > ----- > Richard Quadling > "Standing on the shoulders of some very clever giants!" > EE : http://www.experts-exchange.com/M_248814.html > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > ZOPA : http://uk.zopa.com/member/RQuadling > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >