PHP 8.5.0 Beta 3 available for testing

stomp_connect_error

(PECL stomp >= 0.3.0)

stomp_connect_error โ€” Returns a string description of the last connect error

่ชฌๆ˜Ž

stomp_connect_error(): string

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

๏ผ‹add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top