Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47823 invoked by uid 1010); 8 Jul 2006 10:48:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47802 invoked from network); 8 Jul 2006 10:48:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2006 10:48:14 -0000 X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.142.136.132 msa2-mx.centurytel.net Linux 2.4/2.6 Received: from ([209.142.136.132:40832] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 8A/E2-16663-66D8FA44 for ; Sat, 08 Jul 2006 06:48:08 -0400 Received: from pc1 (d5-57.rt-bras.wnvl.centurytel.net [69.179.132.57]) by msa2-mx.centurytel.net (8.13.6/8.13.6) with SMTP id k68Am2R0028077; Sat, 8 Jul 2006 05:48:02 -0500 Message-ID: <008701c6a27b$fd0247a0$0201a8c0@pc1> To: , "Pierre" References: <002701c6a26e$a1746560$0201a8c0@pc1> <005d01c6a273$e13196a0$0201a8c0@pc1> Date: Sat, 8 Jul 2006 05:48:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: [PHP-DEV] Use of "empty character constant?" From: php_lists@realplain.com ("Matt W") 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; } BUT, I recently started looking at http://lxr.php.net so I could cross-reference, etc., instead of searching my local sources, and that's where I first saw this "change." It took you asking for an example for me to realize that LXR is the problem, screwing up the display of '0' ! (Though I *think* I saw it correctly in some places?) LOL, I can't believe it. I kinda thought, "Oh well, I just don't get it," but I'm glad I e-mailed before spending more time than I have trying to figure out what the empty char constant does! http://lxr.php.net/ident?i=is_numeric_string -- check out 12 lines into the function definition. :-/ Well, thanks for helping me get on the right track to "solving" this. The LXR thing needs fixing I guess. Matt ----- Original Message ----- From: "Pierre" Subject: Re: [PHP-DEV] Use of "empty character constant?" > On 7/8/06, Matt W wrote: > > Hi Pierre, > > > > Thanks for the reply, but where does that page talk about an EMPTY character > > constant? I pretty much understand character handling otherwise. :-) > > Then I do not understand your question. Do you have the exact > error/warning/notice? And some example code? > > --Pierre