Edit report at https://bugs.php.net/bug.php?id=999&edit=1
ID: 999 Comment by: adasdfdsd at ahoo dot com Reported by: ccjust at prentice dot uq dot edu dot au Summary: GET_META_TAGS returns an array which is not traversible by the EACH function Status: Closed Type: Bug Package: Misbehaving function Operating System: Win32 PHP Version: 3.0.5 Block user comment: N Private report: N New Comment: das Previous Comments: ------------------------------------------------------------------------ [1998-12-22 13:22:04] sas This is fixed in 3.0.6 ------------------------------------------------------------------------ [1998-12-21 00:26:20] ccjust at prentice dot uq dot edu dot au The returned array from a get_meta_tags call seems be doubled up. A count on the array is double the amount of metatags. I'm not too certain if it's a feature or a bug. The HTML File being parsed contains ----------------- <meta name="dc.title" content="The University of Queensland Home Page1"> <meta name="DC.date.issued" content="1998-12-15"> <meta name="DC.date.modified" content="1998-12-15"> <meta name="DC.type" content="document"> <meta name="DC.format" content="text/html"> <meta name="DC.identifier" content="http://www.uq.edu.au/"> <meta name="UQ.function" content=""> <meta name="UQ.recordtype" content="Home"> ----------------- The script processing the above file ----------------- $test = get_meta_tags($url); $num = Count($test); $i=0; echo "The Array contains $num Entries<BR><BR>"; ksort($test); while ($results = each($test)){ echo $i.":".$results["key"]." -- ".$results["value"]."<BR>"; $i++; } ------------------ The Resulting output ------------------ The Array contains 16 Entries 0:0 -- The University of Queensland Home Page1 1:1 -- 1998-12-15 2:2 -- 1998-12-15 3:3 -- document 4:4 -- text/html 5:5 -- http://www.uq.edu.au/ 6:6 -- 7:7 -- Home 8:dc_date_issued -- 1998-12-15 9:dc_date_modified -- 1998-12-15 10:dc_format -- text/html 11:dc_identifier -- http://www.uq.edu.au/ 12:dc_title -- The University of Queensland Home Page1 13:dc_type -- document 14:uq_function -- 15:uq_recordtype -- Home --------------------- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=999&edit=1