Re: cvs: pear /Net_URL URL.php

From: Date: Sun, 29 Sep 2002 23:47:55 +0000
Subject: Re: cvs: pear /Net_URL URL.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-6760@lists.php.net to get a copy of this message
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.


« previous php.pear.cvs (#6760) next »