# breaking the engine in spite of itself

- Thread: https://externals.io/message/995
- Original archive: https://news-web.php.net/php.internals/995
- Started by Sterling Hughes on 2003-04-21T12:56:44+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #995 — Sterling Hughes — 2003-04-21T12:56:44+00:00

URL: https://externals.io/message/995#995

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

---

## #996 — Stanislav Malyshev — 2003-04-21T14:24:15+00:00

URL: https://externals.io/message/995#996 · In reply to: #995

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
