Re: Bug #748: get_meta_tags() function clobbers namespace

From: Date: Tue, 15 Sep 1998 14:51:21 +0000
Subject: Re: Bug #748: get_meta_tags() function clobbers namespace
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-1108@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > > Will you people please stop clobbering the global namespace > > with fixed names? Why isn't this particular function > > returning a nice anon array, which can then be assigned as desired? > > I don't know, why don't you ask the person who wrote it. > Perhaps there is a reason. I don't know who write it. I just saw the entry in the ChangeLog. It is extremely difficult for us library writers if new functions are being introduced that spontaneously modify global variables. If such functions are being introduced into a version of PHP that gets distributed, there should be a reason for doing so (i.e. there is absolutely no other way to make such a function work). There should be some convention for the variable names that such functions generate, too. For example their names should start with "_" or another unlikely letter. Namespace management is important in PHP, because without references or pointers, names of globals are the only means for components to communicate. Whoever is responsible for that function: Please fix it before 3.0.4 is released. Thank you, Kristian -- SH Online Dienst GmbH, Kristian Koehntopp, Siemenswall, 24107 Kiel, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.shonline.de/ (GPL) -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1108) next »