Patric Stout wrote: > Currently I am trying to get embed PHP to work. A nice C-application > that can handle PHP-scripts. I hope this is the right place to ask > question about it... This is a fine place to start. Note: I personally don't really know the answer to this question, but perhaps I can point you in the right direction. More likely: let this question sit in php-general for a few days, but if no one can help then try over at php-internals. ... > zend_register_functions(NULL, add_func_array, CG(function_table), > MODULE_PERSISTENT); > ... > I tried almost everything, and I am running out of ideas.. is this a > bug, or is it not allowed to add functions on the fly to the same > hash-table, or... I know for a fact that it is *possible* to add functions on the fly. You will probably find an answer that works (or refactor this function itself) by searching PHP's source for create_function() http://php.net/manual/en/function.create-function.php ... > Oh, one more note: I am running 64-bit linux, maybe that has something > to do with it.. It's possible. 64-bit hasn't been hammered as much as 32-bit. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment:
signature.asc
Description: OpenPGP digital signature