# ZSTR and NULL problems again

- Thread: https://externals.io/message/23011
- Original archive: https://news-web.php.net/php.internals/23011
- Started by Frank M. Kromann on 2006-04-28T19:05:05+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #23011 — Frank M. Kromann — 2006-04-28T19:05:05+00:00

URL: https://externals.io/message/23011#23011

Hello Everyne,

I have now removed the ZSTR() macros from the stream macros.

Andrei will you please test that it compiles now?

- Frank

> Agreed.... Unless someone goes ahead and changes the get_line macro and

> places that call it, I'll do so when I get to the end of my second
leg...
> 
> -Sara
> ----- Original Message ----- 
> From: ""Wez Furlong"" <kingwez@gmail.com>
> Newsgroups: php.internals
> To: "Andrei Zmievski" <andrei@gravitonic.com>
> Cc: "PHP Internals" <internals@lists.php.net>; "Dmitry Stogov" 
> <dmitry@zend.com>; "Frank M. Kromann" <frank@kromann.info>
> Sent: Monday, April 24, 2006 10:46 PM
> Subject: Re: [PHP-DEV] ZSTR and `NULL` problems again
> 
> 
> 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.
> 
> 
> > […]

---

## #23026 — Hannes Magnusson — 2006-04-29T11:17:45+00:00

URL: https://externals.io/message/23011#23026 · In reply to: #23011

Hi Frank

> I have now removed the ZSTR() macros from the stream macros.
>
> Andrei will you please test that it compiles now?
>
http://bugs.php.net/bug.php?id=37241

---

## #23028 — Nuno Lopes — 2006-04-29T11:35:55+00:00

URL: https://externals.io/message/23011#23028 · In reply to: #23026

Here is a diff to fix a couple of missing ZSTR macros.


----- Original Message ----- 
From: "Hannes Magnusson" <hannes.magnusson@gmail.com>
To: "Frank M. Kromann" <frank@kromann.info>
Cc: "Sara Golemon" <pollita@php.net>; "Wez Furlong" <kingwez@gmail.com>; 
"Andrei Zmievski" <andrei@gravitonic.com>; <internals@lists.php.net>
Sent: Saturday, April 29, 2006 12:17 PM
Subject: Re: [PHP-DEV] ZSTR and `NULL` problems again


Hi Frank

> I have now removed the ZSTR() macros from the stream macros.
>
> Andrei will you please test that it compiles now?
>
http://bugs.php.net/bug.php?id=37241
