php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #748 get_meta_tags() function clobbers namespace
Submitted: 1998-09-15 08:29 UTC Modified: 1998-09-19 16:10 UTC
From: kk at shonline dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1998-09-15 08:29 UTC] kk at shonline dot de
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-19 16:10 UTC] rasmus
This was fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 00:01:35 2024 UTC