note 7551 deleted from Variable scope by ronabop

From: Date: Fri, 25 Aug 2000 08:51:19 +0000
Subject: note 7551 deleted from Variable scope by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3175@lists.php.net to get a copy of this message
>Precicely where are globals a truely >good thing? Any case where they're >useful in a multi-process environment, >they break when in a multi-threaded >environment. Not true. Say you want to keep track of the number of threads so that it doesn't go over, say, 6000 (imagine a client/server model where you only want 6000 concurrent connections). You'll probably want a variable indicating the maximum number of threads/connections, and a variable indicating the current number. Global variables -do- have their uses. But it's nice to have PHP's implementation where you specify which ones show up where. =)

« previous php.notes (#3175) next »