Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66006 invoked by uid 1010); 1 Mar 2005 17:37:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65848 invoked from network); 1 Mar 2005 17:37:40 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 1 Mar 2005 17:37:40 -0000 X-Host-Fingerprint: 213.131.2.2 nsrd.sinp.msu.ru Linux 2.4/2.6 Received: from ([213.131.2.2:3468] helo=nsrd.sinp.msu.ru) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 21/A3-43857-658A4224 for ; Tue, 01 Mar 2005 12:37:26 -0500 Received: from vvs_php (helo=localhost) by nsrd.sinp.msu.ru with local-esmtp (Exim 4.30) id 1D6Bd0-0001FB-Fn for internals@lists.php.net; Tue, 01 Mar 2005 20:57:50 +0300 Date: Tue, 1 Mar 2005 20:57:50 +0300 (MSK) To: internals@lists.php.net In-Reply-To: <4e89b426050228215637f000f9@mail.gmail.com> Message-ID: References: <2005022807371112877%drbob@TheManFromSPUDcom> <42233717.9050107@akbkhome.com> <729eaf208f6ab01379951b88d8f90b76@gmail.com> <4e89b426050228215637f000f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] How to embed PHP5 into multi-threaded C app? From: vvs_php@nsrd.sinp.msu.ru (Vadka) On Tue, 1 Mar 2005, Wez Furlong wrote: > ZTS enabled PHP has "strong thread affinity". > Calls into the engine are thread-safe provided that you have > previously initialized the engine on that thread. Hm... The problem is when we create a thread and call_user_function for the function from the parent thread.