Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56880 invoked by uid 1010); 8 Jul 2006 11:10:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56864 invoked from network); 8 Jul 2006 11:10:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2006 11:10:36 -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:36012] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 6D/C3-16663-AA29FA44 for ; Sat, 08 Jul 2006 07:10:35 -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 k68BAUno025765; Sat, 8 Jul 2006 06:10:31 -0500 Message-ID: <00b801c6a27f$20a5a230$0201a8c0@pc1> To: , "Antony Dovgal" References: <002701c6a26e$a1746560$0201a8c0@pc1> <005d01c6a273$e13196a0$0201a8c0@pc1> <008701c6a27b$fd0247a0$0201a8c0@pc1> <44AF90D3.3090103@zend.com> Date: Sat, 8 Jul 2006 06:10:31 -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 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 :-( Matt