php-developer-list | 2000101
Date: 10/10/00
- Next message: Andrei Zmievski: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot config.m4"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7118 Updated: Ignores :port on second call to mysql_connect"
- In reply to: Andre Christ: "Re: [PHP-DEV] Call ZEND_FUNCTION in Zend_API"
- Next in thread: Marc Boeren: "RE: [PHP-DEV] Call ZEND_FUNCTION in Zend_API"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 10 Oct 2000, Andre Christ wrote:
> 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.
Abstract the guts of your test() function into another function called
test2(). Then your PHP_FUNCTION(test) will just be a wrapper that
accepts arguments and passes them onto the test2() function. Then you'll
be able to call test2() from other functions as well.
-Andrei
* Reality isn't all it's cracked up to be. *
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andrei Zmievski: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot config.m4"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7118 Updated: Ignores :port on second call to mysql_connect"
- In reply to: Andre Christ: "Re: [PHP-DEV] Call ZEND_FUNCTION in Zend_API"
- Next in thread: Marc Boeren: "RE: [PHP-DEV] Call ZEND_FUNCTION in Zend_API"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

