Edit report at https://bugs.php.net/bug.php?id=64093&edit=1

 ID:                 64093
 Updated by:         cataphr...@php.net
 Reported by:        phaniapsr at gmail dot com
 Summary:            There is a functional difference for the function
                     http_build_query in both 5.2.
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            PHP options/info functions
 PHP Version:        5.3.21
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.




Previous Comments:
------------------------------------------------------------------------
[2013-01-29 08:20:57] phaniapsr at gmail dot com

Description:
------------
There is a functional difference for the function http_build_query in both 
5.2.8 
and 5.3.1

Test script:
---------------
$parameters = array(
                        'user_name' =>'phania...@gmail.com',
                        'pass_word' =>'r...@gmail.com'
                        );

$reqData = http_build_query($parameters);

The above code sample i have tested in PHP 5.3.1 and PHP 5.2.8.
I got different outputs in each version.

Expected result:
----------------
In PHP 5.3.1 i got:

user_name=phaniapsr%40gmail&pass_word=ravi%40gmail.com


In PHP 5.2.8 i got:

user_name=phaniapsr%40gmail&pass_word=ravi%40gmail.com

Actual result:
--------------
I am expecting both the versions should come with same outputs. In PHP 5.3.1 it 
converted & to & but in 5.2.8 & remain same.

In my view this change should not happen. I mean & should not be converted to 
&. It is creating problem in the CURL usage.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64093&edit=1

Reply via email to