ID: 49023 Updated by: il...@php.net Reported By: thedazedsmart1 at yahoo dot ca -Status: Open +Status: Bogus Bug Type: URL related Operating System: Unbuntu PHP Version: 5.2.10 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Pass the value as a string or as a float. The truncation is actually done by PHP, during array creation, not by the http_build_query() function. Previous Comments: ------------------------------------------------------------------------ [2009-07-22 22:21:10] thedazedsmart1 at yahoo dot ca Description: ------------ http_build_query doesn't handle 64-bit integers even on 64-bit systems, truncates to 12 digits only. Reproduce code: --------------- --- >From manual page: function.http-build-query --- $args = array("test" => 100000012859481); $output = http_build_query($args); var_dump($output); Expected result: ---------------- string(17) "test=100000012859481" Actual result: -------------- string(17) "test=100000012859" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49023&edit=1