Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24297 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53845 invoked by uid 1010); 8 Jul 2006 11:02:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53829 invoked from network); 8 Jul 2006 11:02:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2006 11:02:51 -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:29760] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 4F/73-16663-9D09FA44 for ; Sat, 08 Jul 2006 07:02:51 -0400 Received: (qmail 16766 invoked from network); 8 Jul 2006 11:01:58 -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:01:58 -0000 Message-ID: <44AF90D3.3090103@zend.com> Date: Sat, 08 Jul 2006 15:02:43 +0400 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Matt W CC: internals@lists.php.net, Pierre References: <002701c6a26e$a1746560$0201a8c0@pc1> <005d01c6a273$e13196a0$0201a8c0@pc1> <008701c6a27b$fd0247a0$0201a8c0@pc1> In-Reply-To: <008701c6a27b$fd0247a0$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 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? -- Wbr, Antony Dovgal