回复: [PECL-DEV] PHP extensions dependencies
| From: | Reeze | Date: | Fri, 04 May 2012 14:33:43 +0000 |
| Subject: | 回复: [PECL-DEV] PHP extensions dependencies | ||
| References: | 1 2 3 4 5 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9367@lists.php.net to get a copy of this message | ||
Hi, samuel:
I think you need include xdebug's header files and link against it, and add extension
dependency info
@see
http://php-baustelle.de/CodeGen_PECL/manual.html#AEN224
http://lxr.php.net/xref/PHP_5_4/Zend/zend_modules.h#71
Thanks.
--
reeze | simpie.com
在 2012年5月4日星期五,下午10:09,Samuel ROZE 写道:
> > > Is there another way? Is it possible?
> >
> > Using what call_user_func does and call the function as it was done
> > from userland. See php's function doing that for an example (plenty in
> > ext/standard :)
>
> First, thanks for your answer! Maybe I didn't well explained what I want: I
> don't want to call user functions (that are defined with PHP_FUNCTION) but
> internal functions, such as "char* xdebug_error_type(int type)"..
>
> I also want to access to the xdebug globals, like it's done inside the
> module, "XG(start_time)" for example, returns me the "start_time" field of
> the "ZEND_XXXX_MODULE_GLOBALS(xdebug)".
>
> Thanks again! :-)
> Sam.