logo       

Re: cvs: pear /Net_URL URL.php: msg#00663

php.cvs.pear

Subject: Re: cvs: pear /Net_URL URL.php

parse_str must have been fixed recently.

D:\src\>c:\php\php -v
4.2.1

D:\src\>c:\php\php -qa
Interactive mode enabled

<?
parse_str('wsdl',$foo);
print_r($foo);
Array
(
)
?>

My php seems to be different in this respect (4.2.3):

[richard@heyes-01 richard]$ php -qa
Interactive mode enabled
<?
parse_str('wsdl', $foo);
print_r($foo);
Array
(
[wsdl] => )


However, my patch does not go far enough in fixing this issue. The query string 'xxx&yyy=2&zzz' would fail, resulting in a query string in the request being 'yyy=2'.


Same again:

parse_str('xxx&yyy=2&zzz', $foo);
print_r($foo);
Array
(
[xxx] => [yyy] => 2
[zzz] => )

Where I do see a bug is if you use the url you supplied with
HTTP_Request
it will use Net_URL to generate a URL and add an = to the end of the
query string
making ...?wsdl= which causes the page to fail.




--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise