[PHP-DEV] newbie question nr 2: compile error when using php_stream_get_line

2006-11-10 Thread Arnold Daniels
Hi, I've got another newbie question. My .ini parser now works correctly when parsing a string (thanks to help of Matt Wilmas). With the same function I want to be able to parse content of a stream. I looked at fgets to see how to read a line from a stream. Unfortunately when I call

Re: [PHP-DEV] newbie question nr 2: compile error when using php_stream_get_line

2006-11-10 Thread Johannes Schlüter
Hi, errors complaining about something related to tsrm_ls mean that you're building a thread-safe PHP and forgot some TSRMLS[_...] macros. See for example http://blog.libssh2.org/index.php?/archives/22-What-the-heck-is-TSRMLS_CC-anyway.html for more about these macros. This should help you, but

Re: [PHP-DEV] newbie question nr 2: compile error when using php_stream_get_line

2006-11-10 Thread Arnold Daniels
Hi again, I thought that this might not be interesting enough for the list. But I'll be sure CC it in the future. Thanks for your help, the extension now builds. It doesn't run however. I crashes on PHP_STREAM_TO_ZVAL(stream, in). But I'm sure I'm able to fix that problem myself. Thanks