Re: Custom extension
| From: | Krzysztof Antczak | Date: | Tue, 02 Mar 2010 20:22:51 +0000 |
| Subject: | Re: Custom extension | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7068@lists.php.net to get a copy of this message | ||
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