array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.stomp-connect-error.php', 1 => 'stomp_connect_error', 2 => 'Returns a string description of the last connect error', ), 'up' => array ( 0 => 'ref.stomp.php', 1 => 'Stomp Funktionen', ), 'prev' => array ( 0 => 'ref.stomp.php', 1 => 'Stomp Funktionen', ), 'next' => array ( 0 => 'function.stomp-version.php', 1 => 'stomp_version', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stomp/functions/stomp-connect-error.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stomp_connect_error

(PECL stomp >= 0.3.0)

stomp_connect_errorReturns a string description of the last connect error

Beschreibung

stomp_connect_error(): string

Returns a string description of the last connect error.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

A string that describes the error, or null if no error occurred.

Beispiele

Beispiel #1 stomp_connect_error() example

<?php
$link
= stomp_connect('http://localhost:61613');

if(!
$link) {
die(
'Connection failed: ' . stomp_connect_error());
}
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Connection failed: Invalid Broker URI scheme