Page MenuHomePhabricator

PHP Warning: header() expects parameter 3 to be long, string given in WebResponse.php on line 38
Closed, DeclinedPublicPRODUCTION ERROR

Description

PHP Warning: header() expects parameter 3 to be long, string given in /usr/local/apache/common-local/php-1.23wmf9/includes/WebResponse.php on line 38


Version: 1.23.0
Severity: minor

Details

Reference
bz59802

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:28 AM
bzimport set Reference to bz59802.
bzimport added a subscriber: Unknown Object (MLST).

I have found only 1 call to WebResponse::header with a potencial string as third parameter in core, that is in ApiMain line 386
$response->header( $headerStr, true, $e->getCode() );

$e is a expection, where getCode is documented with a return type of int, but
http://www.php.net/manual/en/exception.getcode.php says:
Returns the exception code as integer in Exception but possibly as other type in Exception descendants

A stack trace is needed to find out, if this is from api (and which exception type) or maybe a extension.

Krinkle subscribed.

Not seen for at least 30 days in WMF Logstash.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:12 PM