Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36417 invoked from network); 23 Sep 2015 20:42:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2015 20:42:57 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.174 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.174 mail-wi0-f174.google.com Received: from [209.85.212.174] ([209.85.212.174:33206] helo=mail-wi0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/70-33598-0DE03065 for ; Wed, 23 Sep 2015 16:42:57 -0400 Received: by wiclk2 with SMTP id lk2so1487119wic.0 for ; Wed, 23 Sep 2015 13:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=aoMYKw14hrbTd5yseU8FY83GCa2PqIDHB6FD1mQe9jM=; b=1HU3zszula9mavSL/TM3fRsMapTTVdDX5XVUdidG8UNknKnvanO8HSXxu/7lURIV0+ zN9c98bdtIjyierbrX+cK0ghy/xwv7pjCV6JznRdcRaYeri1Z91S3/sg+xI3gre4hbnU Zv/UcCuedUZ/n5SMv6hu+07tZx60b7CSVXUzQYs+JZTqaG3TzUq1yHMtisb3fR0bmCTg CReFt7J7kyLYgOA2UqOAacKMfbfr8eAY6wABK5mIXXeH7vXYKq52z1djD6RCPfwwLWhx wiIAhuBOIKTfokRHU+7m7YoXUKCTtS1q/F5JH4R+598mI2okAMurID4DIfz5VIkiuhAV xt/Q== X-Received: by 10.194.209.240 with SMTP id mp16mr29218214wjc.100.1443040616826; Wed, 23 Sep 2015 13:36:56 -0700 (PDT) Received: from [192.168.0.6] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by smtp.gmail.com with ESMTPSA id fz1sm10295835wic.8.2015.09.23.13.36.55 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Sep 2015 13:36:56 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: References: <5601F58A.7000602@php.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Wed, 23 Sep 2015 21:33:15 +0100 To: internals Message-ID: <64233ECB-7422-4D7C-A8A5-E77FC98C09E2@gmail.com> Subject: Re: [PHP-DEV] Data serialization of objects, want to iterate 'sealed' properties then dynamic ones From: rowan.collins@gmail.com (Rowan Collins) On 23 September 2015 20:48:33 BST, j adams wrote: >> PHP uses an object store. >Am I correct in understanding that the object store is a global data >structure? Wouldn't this tend to discourage any attempts at >multithreading/multiprocessing within one's PHP script--unless the >object >store is protected by a lock... PHP is inherently single-threaded as far as the user is concerned. There are many things which would break if you changed that. The only way I know of to write multi-threaded PHP is using the pthreads extension, which comes with some rather large caveats, and uses specific objects to communicate between threads. Regards, -- Rowan Collins [IMSoP]