Re: Compilation error: How to use php stream APIs in a php extension
| From: | Wez Furlong | Date: | Sat, 18 Sep 2004 16:18:54 +0000 |
| Subject: | Re: Compilation error: How to use php stream APIs in a php extension | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1357@lists.php.net to get a copy of this message | ||
You should be able to use the streams API out-of-the box.
Are you linking against PHP 4.3 and later?
Are you including the php headers? (the standard set generated by
ext_skel should be sufficient).
If you're doing C++, you might need to extern "C" { } around the
relevant includes.
--Wez.
On Sat, 18 Sep 2004 16:35:56 +0200, mathieu <mathieu@faya.fr> wrote:
> hi,
>
> i'm trying to develop a php extention. it need to be able to read php file
> streams.
> when i'm trying to make php with my extension, i'm getting this error :
> (from "make")
>
> ext/fpdf/f_stream_php.o(.text+0x2c0): In function `f_stream_file::size()':
> : undefined reference to `_php_stream_tell(_php_stream*)'
>
> the links to zend_parse_parameters and the others zend functions are ok but
> i can't work with php APIs. Why ?
>
> I think something is missing in config.m4 or in Makefile.in...
>
> could anybody help me?
>
> thx
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>