PHP - Manual: gupnp_service_action_return_error
2024-12-22
(PECL gupnp >= 0.1.0)
gupnp_service_action_return_error — Return error code
$action
, int $error_code
[, string $error_description
] ) : boolReturn error code.
action
A service action identifier.
error_code
The error code. Signal can be one of the following values or user defined:
GUPNP_CONTROL_ERROR_INVALID_ACTION
GUPNP_CONTROL_ERROR_INVALID_ARGS
GUPNP_CONTROL_ERROR_OUT_OF_SYNC
GUPNP_CONTROL_ERROR_ACTION_FAILED
error_description
The error description.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
官方地址:https://www.php.net/manual/en/function.gupnp-service-action-return-error.php