Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8434 invoked by uid 1010); 15 Mar 2006 06:40:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8418 invoked from network); 15 Mar 2006 06:40:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2006 06:40:03 -0000 X-Host-Fingerprint: 193.252.22.54 smtp13.wanadoo.fr Linux 2.4/2.6 Received: from ([193.252.22.54:44548] helo=smtp13.wanadoo.fr) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7B/FE-55982-2C6B7144 for ; Wed, 15 Mar 2006 01:40:02 -0500 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1304.wanadoo.fr (SMTP Server) with ESMTP id 7AF8F7000091 for ; Wed, 15 Mar 2006 07:39:58 +0100 (CET) Received: from binarysecfb111 (AStDenis-102-1-15-96.w80-8.abo.wanadoo.fr [80.8.180.96]) by mwinf1304.wanadoo.fr (SMTP Server) with SMTP id 0CA157000087; Wed, 15 Mar 2006 07:39:56 +0100 (CET) X-ME-UUID: 20060315063957518.0CA157000087@mwinf1304.wanadoo.fr Message-ID: <002d01c647fb$064ef8c0$6600a8c0@binarysecfb111> To: "Marco" , References: <2fd662a00603141148n1f3c6aw@mail.gmail.com> Date: Wed, 15 Mar 2006 07:38:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] PHP Embedded From: mv-php@binarysec.com ("Michael Vergoz") Hello, 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 ... Michael ----- Original Message ----- From: "Marco" To: Sent: Tuesday, March 14, 2006 8:48 PM Subject: [PHP-DEV] PHP Embedded Hi All The company I am doing some work for is currently using the php_embed to access the php engine from within a windows based c++ application. I have been asked a question that I dont know the answer to and all my googling attempts have failed. Is there a way from within the embedded system to destroy all created variables so that the environment is the same as when it was started or do we need to shutdown the embedded engine and start it up again? Also a problem they are coming up with occasionally is that the php engine will crash when php_embed_init(argc, argv PTSRMLS_CC); is called, they havent found any reproducible steps yet. Could this be caused by shutting down and starting up the emdedded engine from within the same app? I have asked and the application isnt multi threaded. Finally is there any examples of how to embed php in a windows app? I have done some googling and have found odd code snippets but if there is a detailed doc I could read I would be most grateful. Thanks in advance for any information provided. Regards Mark