Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28395 invoked by uid 1010); 8 Jul 2006 09:50:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28380 invoked from network); 8 Jul 2006 09:50:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2006 09:50:04 -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:39270] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 41/A1-16663-CCF7FA44 for ; Sat, 08 Jul 2006 05:50:04 -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 k689o0Vh013169; Sat, 8 Jul 2006 04:50:00 -0500 Message-ID: <005d01c6a273$e13196a0$0201a8c0@pc1> To: , "Pierre" References: <002701c6a26e$a1746560$0201a8c0@pc1> Date: Sat, 8 Jul 2006 04:50:00 -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, Thanks for the reply, but where does that page talk about an EMPTY character constant? I pretty much understand character handling otherwise. :-) Thanks, Matt ----- Original Message ----- From: "Pierre" Subject: Re: [PHP-DEV] Use of "empty character constant?" > On 7/8/06, Matt W wrote: > > Hi all, > > > > I'm a C newbie and just started experimenting with the PHP internals a > > couple weeks ago... A few days ago I noticed assignment/comparison of char > > variables to '' (nothing between single quotes) in, for example, the > > is_numeric_string function (zend_operators.h), snprintf.c, spprintf.c, etc. > > I don't understand what it's doing. :-/ The only references I can find are > > about "empty character constant" compiler errors, which is what happens if I > > try to use '' in the same way (VC++ Express). Though PHP compiles fine with > > these "constructs," so something must be special there? > > http://publications.gbdirect.co.uk/c_book/chapter5/character_handling.html > > Cheers, > --Pierre