summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eecc044)
Change-Id: I28053418d107f4a101aa7d8a2203c6864acd311f
+/**
+ * @since 1.29
+ */
class HeaderCallback {
private static $headersSentException;
private static $messageSent = false;
class HeaderCallback {
private static $headersSentException;
private static $messageSent = false;
* Register a callback to be called when headers are sent. There can only
* be one of these handlers active, so all relevant actions have to be in
* here.
* Register a callback to be called when headers are sent. There can only
* be one of these handlers active, so all relevant actions have to be in
* here.
*/
public static function register() {
header_register_callback( [ __CLASS__, 'callback' ] );
*/
public static function register() {
header_register_callback( [ __CLASS__, 'callback' ] );
/**
* The callback, which is called by the transport
/**
* The callback, which is called by the transport
*/
public static function callback() {
// Prevent caching of responses with cookies (T127993)
*/
public static function callback() {
// Prevent caching of responses with cookies (T127993)
/**
* Log a warning message if headers have already been sent. This can be
* called before flushing the output.
/**
* Log a warning message if headers have already been sent. This can be
* called before flushing the output.
*/
public static function warnIfHeadersSent() {
if ( headers_sent() && !self::$messageSent ) {
*/
public static function warnIfHeadersSent() {
if ( headers_sent() && !self::$messageSent ) {