Re: Custom extension

[email protected] (Krzysztof Antczak)
Newsgroups php.pecl.dev
Message-ID <[email protected]>
W dniu 02.03.2010 20:36, Krzysztof Antczak pisze:
> Hello,
>

Ok, there is a solution. Lot of thanks to Derick Rethans for help.

1. Access to arrays _SERVER / _GET / _POST

By initialization of superglobals for each one of them: 
zend_is_auto_global("_GET",     sizeof("_GET")-1     TSRMLS_CC)

and then just: zend_print_zval_r ( PG(http_globals)[TRACK_VARS_GET], 0 
TSRMLS_CC); // print it :)

2. Script termination. This one isn't very simple, cause You need to 
override zend_execution function. I'm not gonna describe it now, cause 
it isn't implemented yet by myself, but You can look at the xdebug 
source code ( try to find XG(no_exec) there ).

Best,
Krzysztof Antczak
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.