[PHP-DEV] RE: ZSTR and NULL problems again

2006-04-25 Thread Frank M. Kromann
NULL_ZSTR is not a problem, but when a macro defines ZSTR(buf) and buf is NULL_ZSTR you get ZSTR(NULL_ZSTR) which is invalid. - Frank > What was the problem with NULL_ZSTR? > > Dmitry. > > > -Original Message- > > From: Andrei Zmievski [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April

Re: [PHP-DEV] RE: ZSTR and NULL problems again

2006-04-25 Thread Nuno Lopes
The problem was the macro expansion (problematic on non-gcc builds): ZSTR(NULL_ZSTR) --> ZSTR(ZSTR((void*)NULL)) But I agree with Wez and I thing that the ZSTR() should be removed from the php_stream_get_line() macro. BTW, I though it wasn't possible to build PHP with gcc 2.95 anymore. At lea

[PHP-DEV] RE: ZSTR and NULL problems again

2006-04-24 Thread Dmitry Stogov
What was the problem with NULL_ZSTR? Dmitry. > -Original Message- > From: Andrei Zmievski [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 25, 2006 1:35 AM > To: PHP Internals > Cc: Dmitry Stogov; Frank M. Kromann > Subject: ZSTR and NULL problems again > > > After Frank's latest chang