From:             webmaster at adriaportal dot com
Operating system: Windows NT 5.2 build 3790
PHP version:      5.2.4
PHP Bug Type:     Unknown/Other Function
Bug description:  php function get_meta_tags()

Description:
------------
Hello,

here is a piece of index.php of my site ("www.adriaportal.com" /
"www.adriaportal.eu"), between opening and closing tag of head.

<head>
 <meta http-equiv="Content-Language" content="cs">
 <meta http-equiv="Content-Type" content="text/html;
charset=windows-1250">
 <title>Adria portal</title>
 <meta name="description" content="Promotion of tourism and introduction
to the culture of Czech and Croatian people." lang="en-US">
 <meta name="description" content="Podpora rozvoje turizmu a vzájemné
poznávání kultur Chorvatù a Èechù." lang="cs-CZ">
 <meta name="description" content="Podrška razvoja turizma i uzajamnog
upoznavanja kultura Èeha i Hrvata." lang="hr-HR">
 <meta name="keywords"
content="czech,republic,croatia,holiday,sea,adritic,links,portal,accomodation,connections,directory,dictionary,news"
lang="en-US">
 <meta name="keywords"
content="èechy,èeská,republika,chorvatská,chorvatsko,dovolená,moøe,jadran,odkazy,portál,ubytování,spojení,adresáø,slovník,novinky"
lang="cs-CZ">
 <meta name="keywords"
content="èeška,republika,hrvatska,odmor,more,jadran,linkovi,portal,smještaj,veze,adresao,rijeènik,vijesti"
lang="hr-HR">
</head>

I'm test the function on my site index page.

Reproduce code:
---------------
Here is my code of testing:

$myArr = get_meta_tags("http://www.adriaportal.com/";);

print_r($myArr);


Expected result:
----------------
Expected is:

Array ( 
 [http-equiv][0]  => "Content-Language" content="cs",
 [http-equiv][1]  => "Content-Type" content="text/html;
charset=windows-1250",
 [description][0] => Promotion of tourism and introduction to the culture
of Czech and Croatian people.,
 [description][1] => Podpora rozvoje turizmu a vzájemné poznávání kultur
Chorvatù a Èechù.,
 [description][2] => Podrška razvoja turizma i uzajamnog upoznavanja
kultura Èeha i Hrvata., 
 [keywords][0]    =>
czech,republic,croatia,holiday,sea,adritic,links,portal,accomodation,connections,directory,dictionary,news,

 [keywords][1]    =>
èechy,èeská,republika,chorvatská,chorvatsko,dovolená,moøe,jadran,odkazy,portál,ubytování,spojení,adresáø,slovník,novinky,
 [keywords][2]    =>
èeška,republika,hrvatska,odmor,more,jadran,linkovi,portal,smještaj,veze,adresao,rijeènik,vijesti,

)

or better array structure with all attributes of adequate meta tag


Actual result:
--------------
And the result:

Array ( 
 [description] => Podrška razvoja turizma i uzajamnog upoznavanja kultura
Èeha i Hrvata. 
 [keywords] =>
èeška,republika,hrvatska,odmor,more,jadran,linkovi,portal,smještaj,veze,adresao,rijeènik,vijesti

)

I'm cannot see in result these tags:

<meta http-equiv="Content-Language" content="cs">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1250">

and i'm see only

the description and keywords meta tags, all the last rows in header, here
in croatian language (owerrides the before parsed rows?).

Is this a BUG or i'm make something false?

Thank's for your response ;o)

Djordje Zurovac

P.S. Sorry for my english (?), i'm can active only czech, croatian and
german languages. 


-- 
Edit bug report at http://bugs.php.net/?id=42793&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42793&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42793&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42793&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42793&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42793&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42793&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42793&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42793&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42793&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42793&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42793&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42793&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42793&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42793&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42793&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42793&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42793&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42793&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42793&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42793&r=mysqlcfg

Reply via email to