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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC