|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47754 array URL returning no parameter separater
Submitted: 2009-03-23 14:30 UTC Modified: 2009-03-24 17:48 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: itawadh at live dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 5.2.9 OS: Linux
Private report: No CVE-ID: None
 [2009-03-23 14:30 UTC] itawadh at live dot com

We enter a url in xml_parser functions to read and convert xml to php. Everything seems to be working fine.

But, the Array output contains some urls as values (with url_parameters) like http : // abc dot com / 123?ty=243&tt=564 ... etc.

Problem is that, when parsing it, we are getting url as string without the & for parameters (so, the above sample is now http : // abc dot com / 123?ty=243tt=564)<- note here, an & is missing among the 243 and tt.

Please see to it and lemme update on this bug.

Reproduce code:
(here $xmldata is the xml generated with url :

	$parser = xml_parser_create ('ISO-8859-1');
	xml_parser_set_option ($parser, XML_OPTION_SKIP_WHITE, 1);
	xml_parser_set_option ($parser, XML_OPTION_CASE_FOLDING, 0);
	if (!xml_parse_into_struct ($parser, $xmldata, $vals, $index)) {
		$xmlreaderror = true;
		echo "error";
	xml_parser_free ($parser);

now if I print the $vals, it has some urls in it that have problems.

Expected result:
I need the & to appear as parameter separator in URLs returned as array.

Actual result:
   [11] => Array
            [tag] => sourceURL
            [type] => complete
            [level] => 3
            [value] =>

this [value] us not containing any & in url


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-24 17:48 UTC] itawadh at live dot com
no one answered
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 02:01:35 2024 UTC