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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 19:01:24 2019 UTC