Re: ZSTR and NULL problems again
| From: | Frank M. Kromann | Date: | Tue, 25 Apr 2006 15:51:29 +0000 |
| Subject: | Re: ZSTR and NULL problems again | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-22963@lists.php.net to get a copy of this message | ||
I Like that idea.
- Frank
> 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 <andrei@gravitonic.com> wrote:
> > #define php_stream_get_line(stream, buf, maxlen, retlen)
> > _php_stream_get_line((stream), IS_STRING, ZSTR(buf), (maxlen), 0,
> > (retlen) TSRMLS_CC)
>