Re: Call ZEND_FUNCTION in Zend_API

From: Date: Tue, 10 Oct 2000 11:22:43 +0000
Subject: Re: Call ZEND_FUNCTION in Zend_API
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-34570@lists.php.net to get a copy of this message
But my function test() needs to be exported to php as well as it needs to be used inside my module. How can I achieve to call this "exported" function from inside the module. Andre On Thu, 12 Oct 2000, Dhr. CaPS Cappert wrote: > 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 > > > > > > > -- > 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

« previous php.dev (#34570) next »