Requests_Transport_fsockopen::connect_error_handler

Advertisement

Summery Summery

Error handler for stream_socket_client()

Syntax Syntax

Requests_Transport_fsockopen::connect_error_handler( int $errno, string $errstr )

Parameters Parameters

$errno

(int) (Required) Error number (e.g. E_WARNING)

$errstr

(string) (Required) Error message

Source Source

File: wp-includes/Requests/Transport/fsockopen.php

	public function connect_error_handler($errno, $errstr) {
		// Double-check we can handle it
		if (($errno & E_WARNING) === 0 && ($errno & E_NOTICE) === 0) {
			// Return false to indicate the default error handler should engage
			return false;
		}

		$this->connect_error .= $errstr . "\n";
		return true;
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.