Bug #748: get_meta_tags() function clobbers namespace

From: Date: Tue, 15 Sep 1998 12:29:46 +0000
Subject: Bug #748: get_meta_tags() function clobbers namespace
Groups: php.dev 
Request: Send a blank email to php-dev+get-1082@lists.php.net to get a copy of this message
From: kk@shonline.de Operating system: Solaris 2.5.1 PHP version: 3.0 Latest CVS PHP Bug Type: Misbehaving function Bug description: From ChangeLog: >- New Function. void get_meta_tags(string filename); Parses filename until > closing head tag and turns all meta tags into variables prefixed with 'meta_'. > The below meta tag would produce $meta_test="some string here" > <meta name="test" content="some string here"> 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? $myarray = get_meta_tags($somefile); and all is well. -- 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 (#1082) next »