breaking the engine in spite of itself

php.internals

Sterling Hughes

23 years ago
Howdy, One thing that would make it much easier for Zend/PHP to integrate with other runtime environments, is letting PHP_FUNCTION() functions accept the argument stack as a parameter, and then having the utility libraries, accept and manipulate those parameters. For 90% of the functions (certainly for the external libraries), this would allow the functions in libphp to be called without an execution environment. Would it be possible to add that parameter to the engine and change the call semantics of parse_parameters to allow for direct argument access? -Sterling

Stanislav Malyshev

23 years ago
SH>> other runtime environments, is letting PHP_FUNCTION() functions accept SH>> the argument stack as a parameter, and then having the utility SH>> libraries, accept and manipulate those parameters. For 90% of the SH>> functions (certainly for the external libraries), this would allow the SH>> functions in libphp to be called without an execution environment. I'm sorry but I am missing what you need this for. Could you provide an example why would you need it - i.e. calling external library functions via PHP without PHP environment?
-- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

Sterling Hughes

23 years ago
On Mon, 2003-04-21 at 10:24, Stanislav Malyshev wrote:
> SH>> other runtime environments, is letting PHP_FUNCTION() functions accept > SH>> the argument stack as a parameter, and then having the utility > SH>> libraries, accept and manipulate those parameters. For 90% of the > SH>> functions (certainly for the external libraries), this would allow the > SH>> functions in libphp to be called without an execution environment. > > I'm sorry but I am missing what you need this for. Could you provide an > example why would you need it - i.e. calling external library functions > via PHP without PHP environment?
Compiling PHP down to CLR, then one could create a small wrapper which resolved PHP functions, and called into the PHP library to provide access to them. -Sterling

John Coggeshall

23 years ago
>Compiling PHP down to CLR, then one could create a small wrapper >which resolved PHP functions, and called into the PHP library to
provide access to them. This is something Marco and I would love to see, as it would make our compilers much easier to implement by allowing us to call the PHP functions directly, instead of forcing us to somehow "hack it" (or worse yet, re-implement it).
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php