Re: uh oh, I defined a resoruce

From: Date: Mon, 14 Jan 2008 01:53:57 +0000
Subject: Re: uh oh, I defined a resoruce
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-267204@lists.php.net to get a copy of this message
On Sunday 13 January 2008 21:42:28 Jochem Maas wrote: > > no race conditions occur in code written in php? true that there is > no direct race conditions that can occur as a direct result of running code > but obviously you've never dealt with multi-user systems using a databse > backend, or file-writing based tools used in a web-environment (e.g. > template output caching) or anything that uses shared memory or trying to > guanrantee that a command-line script runs as a singleton. to name but a > few examples that can most definitely be prone to race-conditions. > Hmmm interesting so you mean $GLOBALS['language'] = memcached->get('language'); race condition prone than function hede() { global $language $language = memcached->get('language'); } Regards Sancar

« previous php.general (#267204) next »