Re: ZSTR and NULL problems again
| From: | Wez Furlong | Date: | Tue, 25 Apr 2006 05:46:33 +0000 |
| Subject: | Re: ZSTR and NULL problems again | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22944@lists.php.net to get a copy of this message | ||
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)