Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

function Utils::debugResource

Returns a debug stream based on the provided variable.

Parameters

mixed $value Optional value:

Return value

resource

3 calls to Utils::debugResource()
CurlFactory::applyHandlerOptions in vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
debug_resource in vendor/guzzlehttp/guzzle/src/functions.php
Returns a debug stream based on the provided variable.
StreamHandler::add_debug in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

File

vendor/guzzlehttp/guzzle/src/Utils.php, line 65

Class

Utils

Namespace

GuzzleHttp

Code

public static function debugResource($value = null) {
    if (\is_resource($value)) {
        return $value;
    }
    if (\defined('STDOUT')) {
        return \STDOUT;
    }
    return Psr7\Utils::tryFopen('php://output', 'w');
}
RSS feed
Powered by Drupal