library calls from within php functions
| From: | Tony Leake | Date: | Sun, 20 Oct 2002 07:18:34 +0000 |
| Subject: | library calls from within php functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-89758@lists.php.net to get a copy of this message | ||
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.
If I move the same line into a standard c function it compiles without
error.
So my question is, is there some problem trying to make library calls
from within php functions? although other calls seem to work fine.
Thanks for any help
Tony