Re: Could apc_fetch return a pointer to data in shared memory ?

From: Date: Mon, 02 Apr 2012 09:37:59 +0000
Subject: Re: Could apc_fetch return a pointer to data in shared memory ?
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.general 
Request: Send a blank email to php-general+get-317422@lists.php.net to get a copy of this message
On 02-04-2012 10:12, Simon wrote:
Thanks Simon. you got my hopes up there for a second. From the php docs page:
Critics further argue that it is pointless to use a Singleton in a Shared
Nothing Architecture like PHP where objects are unique>within the Request only anyways. I want the the singleton class to be global to the entire application (ie shared "by reference" across all requests). I'd agree with the above critics that if you have to instantiate your singleton for each request, it's rather pointless. Well, that's simply not possible due to the "shared nothing paradigm". If you want to share, you need to either share it via another medium (such as a database, as has been suggested a dozen times already) or switch to a different language. PHP is based on this paradigm, and you should not expect of it to violate it just because you want to do things a certain way, which is not the PHP way.
- Tul

« previous php.general (#317422) next »