https://bugzilla.wikimedia.org/show_bug.cgi?id=55547

       Web browser: ---
            Bug ID: 55547
           Summary: tools: Disable the default no-op output buffer
           Product: Wikimedia Labs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

// 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).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to