Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33735 invoked by uid 1010); 25 Apr 2006 05:46:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33713 invoked from network); 25 Apr 2006 05:46:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2006 05:46:40 -0000 X-PHP-List-Original-Sender: kingwez@gmail.com X-Host-Fingerprint: 64.233.166.179 pproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.166.179:9023] helo=pproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CC/C3-19715-DB7BD444 for ; Tue, 25 Apr 2006 01:46:38 -0400 Received: by pproxy.gmail.com with SMTP id 57so1365832pya for ; Mon, 24 Apr 2006 22:46:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OxIpcAMoSQs/x4pZ1xxVsRP/RYoC/r7QQBMRbV3ywJJZ5NWqATWbK3LfJ2dCwj8usGIIBZCP6R5bNFEjp4rgQnyF8aVDHxGzp/2kAhiZn73M7rEzCaKOWeHZp+2efRKXz1d4YRvugeZdCG3lQFqzKwE+bXuOISA8F2OFg8hnM+g= Received: by 10.35.50.9 with SMTP id c9mr556553pyk; Mon, 24 Apr 2006 22:46:33 -0700 (PDT) Received: by 10.35.41.17 with HTTP; Mon, 24 Apr 2006 22:46:33 -0700 (PDT) Message-ID: <4e89b4260604242246i2f274c62sc4c9618031a3836c@mail.gmail.com> Date: Tue, 25 Apr 2006 01:46:33 -0400 To: "Andrei Zmievski" Cc: "PHP Internals" , "Dmitry Stogov" , "Frank M. Kromann" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Subject: Re: [PHP-DEV] ZSTR and NULL problems again From: kingwez@gmail.com ("Wez Furlong") I think ZSTR(buf) should not be present in the macro: #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), IS_STRING, (buf), (maxlen), 0, (retlen) TSRMLS_CC) Let the caller apply ZSTR() to the argument manually, if that is required. --Wez. On 4/24/06, Andrei Zmievski wrote: > #define php_stream_get_line(stream, buf, maxlen, retlen) > _php_stream_get_line((stream), IS_STRING, ZSTR(buf), (maxlen), 0, > (retlen) TSRMLS_CC)