php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55310 http_build_url query join fails when arg_separator.output is not an html entity
Submitted: 2011-07-28 17:53 UTC Modified: 2011-07-28 18:12 UTC
From: jrbeaure at uvm dot edu Assigned:
Status: Closed Package: HTTP related
PHP Version: 5.3.6 OS: irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jrbeaure at uvm dot edu
New email:
PHP Version: OS:

 

 [2011-07-28 17:53 UTC] jrbeaure at uvm dot edu
Description:
------------
When using the flag HTTP_URL_JOIN_QUERY, the function http_build_url fails issuing a warning when there is more than one query argument to join and the php.ini directive arg_separator.output is not in the format of an html entity.

Test script:
---------------
<?php
ini_set('arg_separator.output','&');
$result = http_build_url(
    'http://example.com/?a=b',
    array('query' => 'c=d'),
    HTTP_URL_JOIN_QUERY
);
?>
Expected Result: http://example.com/?a=b&c=d
Actual Result: <?php echo $result; ?>


Expected result:
----------------
Expected Result: http://example.com/?a=b&c=d
Actual Result: http://example.com/?a=b&c=d

Actual result:
--------------
Expected Result: http://example.com/?a=b&c=d
Actual Result: http://example.com/?a=b

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-28 18:12 UTC] jrbeaure at uvm dot edu
-Status: Open +Status: Closed
 [2011-07-28 18:12 UTC] jrbeaure at uvm dot edu
Nevermind, it was unexpected behavior from a __set magic function.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 04:01:29 2025 UTC