Re: Call ZEND_FUNCTION in Zend_API
| From: | Dhr. CaPS Cappert | Date: | Thu, 12 Oct 2000 11:24:33 +0000 |
| Subject: | Re: Call ZEND_FUNCTION in Zend_API | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-34569@lists.php.net to get a copy of this message | ||
For one I'd use PHP_FUNCTION(test) if you're writing a PHP extension.
(ext/*)
Now.. if your function test() there doesn't have to be able to be called
from PHP use a regular C function definition.. like
void test() {
zend_printf("Hello World");
}
PHP_FUNCTION (test2) {
test2();
}
--CaPS
On Tue, 10 Oct 2000, Andre Christ wrote:
> I createt a extension for PHP which contains a few functions, implemented as
> ZEND_FUNCTION(test) {
> zend_printf("Hello World");
> }
>
> >>From another function I'd like to call this function:
>
> ZEND_FUNCTION(test2) {
> // call test()
> }
>
> How do I call functions which are implemeted in my extension ?
>
> Thanks
> Andre
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>