Re: Calling PHP functions from an extension
| From: | Andrey Hristov | Date: | Sat, 24 Jul 2004 11:25:14 +0000 |
| Subject: | Re: Calling PHP functions from an extension | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11534@lists.php.net to get a copy of this message | ||
G usually comes from Globals and I have seen BG in ext/standard
so maybe BG means Basic functions Globals.
andrey
John Lim wrote:
Andi, Just a few quick questions. What is the BG macro for? Eg. if (zend_call_function(&fci, &BG(fci_cache) TSRMLS_CC) == SUCCESS) Secondly, I think i need to initialize the fci_cache structure first with fci_cache = empty_fcall_info_cache; Can I do so in my PHP_MINIT_FUNCTION? Thx. "Andi Gutmans" <andi@zend.com> wrote in message news:5.1.0.14.2.20040723085747.034ff738@127.0.0.1...php5/Zend/zend_execute_API.c. It's quite simple. If you can't figure it out yourself, let me know. At 08:08 AM 7/23/2004 +0100, Lester Caine wrote:theAndi Gutmans wrote:Check out zend_call_function(). It allows you to cache the function lookup in the fci_cache parameter.Where is the best place to find zend_call_function details, nothing inmanual and google gives some spurious results. -- Lester Caine ----------------------------- L.S.Caine Electronic Services -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php