Re: Help with calling PHP functions

From: Date: Sat, 26 Apr 2008 19:51:59 +0000
Subject: Re: Help with calling PHP functions
References: 1 2 3  Groups: php.internals php.internals 
Request: Send a blank email to internals+get-37251@lists.php.net to get a copy of this message
Dhiru Pandey wrote: > Thanks for responding. > > May be I mis-wrote. > What I would really like is a way to call the native c functions of the > php implementation directly (bypassing the PHP compiler) like: > > PHP_FUNCTION(str_repeat) > PHP_FUNCTION(addcslashes) etc. > > In other words I would like to invoke this functions directly thru C or > Java. > > I do not want to callback into a PHP script user function Callback works with the native C functions too. It'll be pretty nasty trying to get all of PHP's macros to work from scratch. Just use the infrastructure that's in place already. -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

« previous php.internals (#37251) next »