Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
Hi Tony, There's not much we can tell you about this unless you post the rest of the lines of that function. Perhaps you did not include php.h ? Note: always prefer this: read(fd, buf, sizeof(buf)); to this: read(fd, buf, 1024); The former is immune to buffer overruns if you change the

[PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
Hi, I am working on an extension that makes use of the pipe, read and write library calls on a linux platform. When I try to put this line read(fd, buf, 1024); inside a php function ( PHP_FUNCTION(read_pipe) ) it fails to compile with the following warning: called object is not a function.

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
On Sun, 2002-10-20 at 09:34, Wez Furlong wrote: Thanks for the fast reply Wez, There's not much we can tell you about this unless you post the rest of the lines of that function. See below for the code Perhaps you did not include php.h ? Yep thats there, I used exec_skel to create the

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
On 10/20/02, Tony Leake [EMAIL PROTECTED] wrote: and now I'm trying to write functions that will read and write from the pipe. So far I have this, it isn't finished as you will see. PHP_FUNCTION(pipe_read) { pipe_r_le_struct *st_pipe_r; zval *read; zval * res; char

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
On Sun, 2002-10-20 at 10:07, Wez Furlong wrote: Aside from that, I can't see any obvious mistakes. Ok, I solved it. I declared a zval called read, then tried to call the read function. DOH ! Thanks for your help anyway Tony -- PHP Development Mailing List http://www.php.net/ To