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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kk at shonline dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-19 16:10 UTC] rasmus
This was fixed
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 06:00:02 2026 UTC