Edit report at https://bugs.php.net/bug.php?id=55310&edit=1

 ID:                 55310
 User updated by:    jrbeaure at uvm dot edu
 Reported by:        jrbeaure at uvm dot edu
 Summary:            http_build_url query join fails when
                     arg_separator.output is not an html entity
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            HTTP related
 Operating System:   irrelevant
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Nevermind, it was unexpected behavior from a __set magic function.


Previous Comments:
------------------------------------------------------------------------
[2011-07-28 17:53:22] 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


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55310&edit=1

Reply via email to