Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45847 invoked by uid 1010); 8 Jul 2006 10:47:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45832 invoked from network); 8 Jul 2006 10:47:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2006 10:47:19 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from ([80.123.98.46:28830] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 04/B2-16663-53D8FA44 for ; Sat, 08 Jul 2006 06:47:18 -0400 Message-ID: <04.B2.16663.53D8FA44@pb1.pair.com> To: internals@lists.php.net Date: Sat, 08 Jul 2006 12:47:19 +0200 User-Agent: Thunderbird 1.5.0.2 (X11/20060522) MIME-Version: 1.0 References: <002701c6a26e$a1746560$0201a8c0@pc1> In-Reply-To: <002701c6a26e$a1746560$0201a8c0@pc1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: Use of "empty character constant?" From: mike@php.net (Michael Wallner) 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. :-/ > I don't see what you're seeing and cannot find a single occurrence of ''. -- Michael