Re: uh oh, I defined a resoruce

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux