array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.stomp-connect-error.php', 1 => 'stomp_connect_error', ), 'up' => array ( 0 => 'ref.stomp.php', 1 => 'Stomp 関数', ), 'prev' => array ( 0 => 'ref.stomp.php', 1 => 'Stomp 関数', ), 'next' => array ( 0 => 'function.stomp-version.php', 1 => 'stomp_version', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stomp/functions/stomp-connect-error.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL stomp >= 0.3.0)
stomp_connect_error — Returns a string description of the last connect error
この関数にはパラメータはありません。
A string that describes the error, or null
if no error occurred.
例1 stomp_connect_error() example
<?php
$link = stomp_connect('http://localhost:61613');
if(!$link) {
die('Connection failed: ' . stomp_connect_error());
}
?>
上の例の出力は、 たとえば以下のようになります。
Connection failed: Invalid Broker URI scheme