Re: Compilation error: How to use php stream APIs in a php extension

From: Date: Sun, 19 Sep 2004 14:49:48 +0000
Subject: Re: Compilation error: How to use php stream APIs in a php extension
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1359@lists.php.net to get a copy of this message
Thanks to all of u answering my query !!! it's great to be helped like this! ++ ----- Original Message ----- From: "Wez Furlong" <kingwez@gmail.com> To: "mathieu" <mathieu@faya.fr> Cc: <pecl-dev@lists.php.net> Sent: Saturday, September 18, 2004 6:18 PM Subject: Re: [PECL-DEV] Compilation error: How to use php stream APIs in a php extension > 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 > > > > >

« previous php.pecl.dev (#1359) next »