Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78943 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81840 invoked from network); 18 Nov 2014 14:08:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 14:08:07 -0000 Authentication-Results: pb1.pair.com header.from=tigran.bayburtsyan@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tigran.bayburtsyan@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: tigran.bayburtsyan@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:51599] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/22-63415-6C25B645 for ; Tue, 18 Nov 2014 09:08:07 -0500 Received: by mail-lb0-f173.google.com with SMTP id n15so17727363lbi.4 for ; Tue, 18 Nov 2014 06:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ElshDB948PH/FqHf5jle9hscFftMFZFBJssgwOOzjnM=; b=dREaYF+Nk+xfl9lWWUtbnnYCk/QhjY5N3f/32EpEfLqKb/1DcyeJ7o6ASPJV35mmav YFyXnws+Hn765Iw8ZCcr46Cun9QvTovHvoWsA4M+I1Dh9sYis8Ain817CM2lRurg+lD+ qatYyPy0nj4WOG6ilSHFUmMnGDYb9cyhlYbeHuF6Rv/JNwyHaau8n/RYaGgLnCDV3rfd vj08epWZkS+1rK2d1DG8BXUHRWyn2TGjqVmBnlnGXxaQ9fOnqXDSaypQw5xBJk2wP6CF UVj1jID+4OI8tGAwsvrh6o3V2G7ekEjBkwciyV7ojWbhcnFboMuAe68fydK0P1vm2bTX +K1A== MIME-Version: 1.0 X-Received: by 10.152.29.41 with SMTP id g9mr19382077lah.83.1416319683151; Tue, 18 Nov 2014 06:08:03 -0800 (PST) Received: by 10.112.147.68 with HTTP; Tue, 18 Nov 2014 06:08:03 -0800 (PST) Date: Tue, 18 Nov 2014 18:08:03 +0400 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=089e0158c09a9a4d3b0508229fe0 Subject: PHP SAPI module help From: tigran.bayburtsyan@gmail.com (Tigran Bayburtsyan) --089e0158c09a9a4d3b0508229fe0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I found this email in PHP.net as a contact address for Web masters. My question is about PHP SAPI C/C++ development. I=E2=80=99ve successfully attached PHP to my C/C++ application as a SAPI mo= dule with libphp.so , and it=E2=80=99s working now , but I have a problem with m= ultiple tasks in my application. I need to execute PHP code in some thread of my application and continue excecution in another. Is is possible to somehow get all global PHP core hashtables from first thread and restore PHP from that point in another thread using that hashtables with all generated variables and functions ? Please provide some information about how this could be possible. Thanks. --089e0158c09a9a4d3b0508229fe0--