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
Namespace
GuzzleHttpCode
public static function debugResource($value = null) {
if (\is_resource($value)) {
return $value;
}
if (\defined('STDOUT')) {
return \STDOUT;
}
return Psr7\Utils::tryFopen('php://output', 'w');
}