Page MenuHomePhabricator

PHP Warning: http_build_query() expects at most 3 parameters, 4 given in MultiHttpClient.php on line 182
Closed, ResolvedPublic

Description

PHP Warning: http_build_query() expects at most 3 parameters, 4 given in /usr/local/apache/common-local/php-1.23wmf10/includes/libs/MultiHttpClient.php on line 182


Version: unspecified
Severity: minor

Details

Reference
bz59880

Event Timeline

bzimport raised the priority of this task from to High.
bzimport set Reference to bz59880.
bzimport added a subscriber: Unknown Object (MLST).
Reedy created this task.Jan 9 2014, 8:11 PM
Reedy added a comment.Jan 9 2014, 8:20 PM

Quite a few of these spewing out

Reedy added a comment.Jan 9 2014, 8:23 PM

$query = http_build_query( $req['query'], '', '&', PHP_QUERY_RFC3986 );

function http_build_query (array $formdata, $numeric_prefix = null, $arg_separator = null, $enc_type = PHP_QUERY_RFC1738) {}

http://www.php.net/manual/en/function.http-build-query.php

PHP 5.4 - The enc_type parameter was added.

Reedy added a comment.Jan 9 2014, 8:24 PM

Caused by https://gerrit.wikimedia.org/r/#/c/101226/ as WMF doesn't use PHP 5.4 yet

Appears to have been fixed in gerrit 106624.

aaron added a comment.Jan 10 2014, 2:30 AM

(In reply to comment #4)

Appears to have been fixed in Gerrit change #106624.

Thanks, I thought I linked that in a comment here...