Last modified: 2013-10-21 07:13:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57547, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55547 - tools: Disable the default no-op output buffer
tools: Disable the default no-op output buffer
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-10 04:42 UTC by Krinkle
Modified: 2013-10-21 07:13 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2013-10-10 04:42:39 UTC
// http://php.net/ob_get_level
> ob_get_level()
int(1)

http://php.net/ob_get_status
> ob_get_status()
array(5) {
  ["level"]=>
  int(1)
  ["type"]=>
  int(1)
  ["status"]=>
  int(0)
  ["name"]=>
  string(22) "default output handler"
  ["del"]=>
  bool(true)
}

According to phpinfo(), zlib.output_compression = Off and output_handler = ''. That's good. But output_buffering = 4096 (silly PHP does this by default, it has an output buffer that you can't enable but doesn't do anything either).

When using MediaWiki (or any other PHP app that tries to do the same) to send pages gzipped, it gives up because there is an ob level already, and of a type (internal php) that it claims it can't remove.

I ran into the same issue on my localhost, solved by setting:

 output_buffering = Off

in php.ini

Please do the same on tools.wmflabs.org so that we can actually send out gzipped responses (especially important for tools that get called from popular gadgets with cross-domain JSON-P requests).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links