Bug #999: GET_META_TAGS returns an array which is not traversible by the EACH function

From: Date: Mon, 21 Dec 1998 05:26:21 +0000
Subject: Bug #999: GET_META_TAGS returns an array which is not traversible by the EACH function
Groups: php.dev 
Request: Send a blank email to php-dev+get-2948@lists.php.net to get a copy of this message
From: ccjust@prentice.uq.edu.au Operating system: Win32 PHP version: 3.0.5 PHP Bug Type: Misbehaving function Bug description: GET_META_TAGS returns an array which is not traversible by the EACH function 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); ksort($test); while ($results = each($test)){ echo $results["key"]." -- ".$results["value"]."<BR>"; } ------------------ The Resulting output ------------------ 0 -- The University of Queensland Home Page1 1 -- 1998-12-15 2 -- 1998-12-15 3 -- document 4 -- text/html 5 -- http://www.uq.edu.au/ 6 -- 7 -- Home dc_date_issued -- 1998-12-15 dc_date_modified -- 1998-12-15 dc_format -- text/html dc_identifier -- http://www.uq.edu.au/ dc_title -- The University of Queensland Home Page1 dc_type -- document uq_function -- uq_recordtype -- Home --------------------- -- 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 (#2948) next »