Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22438 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6368 invoked by uid 1010); 15 Mar 2006 01:11:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6352 invoked from network); 15 Mar 2006 01:11:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2006 01:11:10 -0000 X-Host-Fingerprint: 69.12.155.130 69-12-155-130.dsl.static.sonic.net Linux 2.4/2.6 Received: from ([69.12.155.130:1550] helo=pigeon.alphaweb.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 35/14-55982-DA967144 for ; Tue, 14 Mar 2006 20:11:09 -0500 Received: from localhost ([127.0.0.1] helo=peiscg33m) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1FJJyW-0005Ii-00; Tue, 14 Mar 2006 16:34:52 -0800 Message-ID: <00e401c647cd$55348190$5c8be5a9@ohr.berkeley.edu> Reply-To: "Sara Golemon" To: Cc: "Andrey Hristov" , References: <2fd662a00603141148n1f3c6aw@mail.gmail.com> <200603142158.25640.johannes@php.net> <04.6F.55982.3DB57144@pb1.pair.com> <66.50.55982.01E57144@pb1.pair.com> <4417608A.1020706@hristov.com> Date: Tue, 14 Mar 2006 17:10:35 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Subject: Re: [PHP-DEV] PHP Embedded From: pollita@php.net ("Sara Golemon") > > > Is this the right book as it has a publish date of March 2005. > > > > Extending and Embedding PHP (Paperback) > > by Sara Golemon > > > > * Paperback: 448 pages > > * Publisher: Sams (May 24, 2006) > > * Language: English > > * ISBN: 067232704X > > > it's pretty strange. at amazon.com the book is listed with author pollita, > but on the cover Wez and George are mentioned. Go figure.. :) > Originally George and Wez were going to be writing this book (and may yet do their own version -- that's up to them). Due to innocuous reasons that I can probably talk about but won't to be on the safe side, I wound up taking over the project (and the ISBN number along with it). www.amazon.com has the updated metadata, some (most?) other pre-sellers don't. Bottom line. If you order that ISBN numbered book, you'll get mine. The tricks of using php_request_startup()/php_request_shutdown() aren't covered (the embedding section focuses on some of the simpler uses of sapi/embed, the title would be way too long if I covered everything you could do in every part of the interpreter). 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). > > I have placed an order for this book, I guess I should try and finish > > reading the other 4 php books I purchased recently before then :-) > > > Nah, reading is overrated, just so long as you buy it ;) -Sara