From:             phaniapsr at gmail dot com
Operating system: 
PHP version:      5.3.21
Package:          PHP options/info functions
Bug Type:         Bug
Bug description:There is a functional difference for the function 
http_build_query in both 5.2.

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' =>'[email protected]',
                        'pass_word' =>'[email protected]'
                        );

$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 bug report at https://bugs.php.net/bug.php?id=64093&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64093&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64093&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64093&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64093&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64093&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64093&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64093&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64093&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64093&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64093&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64093&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64093&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64093&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64093&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64093&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64093&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64093&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64093&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64093&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64093&r=mysqlcfg

Reply via email to