[php-src] Issue #15307: http_build_query() Bug

From: Date: Fri, 09 Aug 2024 01:22:13 +0000
Subject: [php-src] Issue #15307: http_build_query() Bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247466@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15307 Author: haodiao ### Description The following code: ```php <?php $post = [ 'test1' => 'test1', 'timestamp' => time(), 'test2' => 'test2', 'times' => time(), ]; echo http_build_query($post); ``` Resulted in this output: ``` test1=test1×tamp=1723166295&test2=test2×=1723166295 ``` But I expected this output instead: ``` test1=test1&timestamp=1723166295&test2=test2&times=1723166295 ``` ### PHP Version PHP 8.3 ### Operating System _No response_

« previous php.bugs (#247466) next »