Re: [PHP-DEV] PHP Embedded

2006-03-16 Thread Mark Evans
Michael Vergoz wrote: There is other useful possiblity but actualy you'll need to look my comments at http://www.badcode.be/~descript/PHP/php_embed/php_embed.h I don't have many time to make more documentation. And you must to know that this modification isn't official so i don't have motivatio

Re: [PHP-DEV] PHP Embedded

2006-03-16 Thread Mark Evans
Hi All I am back again :-) > Here one can't say much without any details (_relevant_ code and > backtrace) The c++ guys are still having some problems and they have given me some more info.. The app is init'd using the following __declspec(dllexport) void InitPHPEngine(const CString& sStart

Re: [PHP-DEV] PHP Embedded

2006-03-15 Thread Mark Evans
HI Michael I have made an unaccepted php_embed extension available at http://www.badcode.be/~descript/PHP/php_embed/ Take a look at the example : http://www.badcode.be/~descript/PHP/php_embed/examples/pembed_new.c I use this part of code on my software with C++ If you have questions ... Grea

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Mark Evans
Slackers that don't write their own books are the worst! LOL, I couldnt agree more! :-D Regards Mark -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Mark Evans
Hi Sara The short answer is: call php_request_shutdown(NULL); to kill the active interpreter (one is started implicitly by PHP_EMBED_START_BLOCK(), then php_request_startup(TSRMLS_C); to initialize a new one (the last one active at PHP_EMBED_END_BLOCK() will be impliticly shutdown). Great many

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Mark Evans
Is this the right book as it has a publish date of March 2005. Hmm, it seems that amazon.co.uk are confused :-) Searching amazon.com gives me Extending and Embedding PHP (Paperback) by Sara Golemon * Paperback: 448 pages * Publisher: Sams (May 24, 2006) * Language: English * ISBN: 067232704X

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Mark Evans
you might get Sara Golemon's not yet released book (ISBN: 067232704X) about "Extending and Embedding PHP" I just did a search on Amazon for the above ISBN and it returned a book as follows Extending and Embedding PHP - Wez Furlong, George Schlossnagle Paperback 448 pages (March 2005) Publishe

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Mark Evans
If you want an example of doing request startup/shutdown multithreaded with the embed SAPI and are willing to wade through a bit of XS, you can check out the PHP::Interpreter Perl module (on CPAN: http://search.cpan.org/dist/PHP-Interpreter/). That links against the embed SAPI but uses the nat

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Mark Evans
Here one can't say much without any details (_relevant_ code and backtrace) php_embed_* are afaik wrapping up the complete engine und request init and shutdown. If you want to do multiple independent requests you should take an a bit closer look on the SAPI layer to use the functions I mentione

[PHP-DEV] Encryption Routines and PHP 5.1+

2005-03-04 Thread Mark Evans
Hi All I am sorry if this has been asked before... I have searched the internals list and also many of the other php lists but couldnt find any conclusive answer. The question is, are there any plans to include integrated encryption routines in the php core? At the moment the optional mcrypt lib