[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Edward Z. Yang
Edward Z. Yang wrote: > 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. Sorry about the double-post; I should clarify: I mean that callback works with PHP function

[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Edward Z. Yang
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 woul

[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Dhiru Pandey
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 direct

[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Edward Z. Yang
Dhiru Pandey wrote: > I am trying to figure out a way to invoke PHP functions directly i.e. > bypassing the PHP compiler (scanner and parser). For now it would be > great if I can get some help calling them from C. Ultimately I would > like to call them from Java. It's not difficult to call PHP_FU