Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24300 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67105 invoked by uid 1010); 8 Jul 2006 11:37:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67090 invoked from network); 8 Jul 2006 11:37:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2006 11:37:47 -0000 X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:30675] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id BF/04-16663-8549FA44 for ; Sat, 08 Jul 2006 07:17:46 -0400 Received: (qmail 25836 invoked from network); 8 Jul 2006 11:16:53 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 8 Jul 2006 11:16:53 -0000 Message-ID: <44AF9452.70605@zend.com> Date: Sat, 08 Jul 2006 15:17:38 +0400 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Matt W CC: internals@lists.php.net References: <002701c6a26e$a1746560$0201a8c0@pc1> <005d01c6a273$e13196a0$0201a8c0@pc1> <008701c6a27b$fd0247a0$0201a8c0@pc1> <44AF90D3.3090103@zend.com> <00b801c6a27f$20a5a230$0201a8c0@pc1> In-Reply-To: <00b801c6a27f$20a5a230$0201a8c0@pc1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Use of "empty character constant?" From: antony@zend.com (Antony Dovgal) On 08.07.2006 15:10, Matt W wrote: > Hi Antony, > > ----- Original Message ----- > From: "Antony Dovgal" > > >> On 08.07.2006 14:48, Matt W wrote: >> > Hi Pierre, >> > >> > :-O I was just going to give you an example from zend_operators.h, >> > is_numeric_string() and guess what? It's the "correct" way that I > thought >> > it should be! I thought PHP 6 changed something, to where >> > >> > /* handle hex numbers */ >> > if (length>=2 && str[0]=='0' && (str[1]=='x' || str[1]=='X')) { >> > conv_base=16; >> > } >> > >> > which is easy to understand :-) became >> > >> > if (length>=2 && str[0]=='' && (str[1]=='x' || str[1]=='X')) { >> > conv_base=16; >> > } >> >> '0' became '' ? >> Why would _character_ 0 become nothing? > > I don't know; was wondering the same thing. :-) But, that is what I saw on > http://lxr.php.net :-( What do you mean "I saw on lxr"? I still don't understand a word.. -- Wbr, Antony Dovgal