Skip to content

Commit 13c150e

Browse files
committed
poll: use value error for setting invalid backend
1 parent a018214 commit 13c150e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/standard/io_poll.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,7 @@ PHP_METHOD(Io_Poll_Context, __construct)
662662
intern->ctx = php_poll_create(backend_type, 0);
663663

664664
if (!intern->ctx) {
665-
php_io_poll_throw_failed_operation(php_io_poll_failed_context_init_class_entry,
666-
"Failed to create polling context", PHP_POLL_ERR_NOMEM);
665+
zend_argument_value_error(1, "must be available backend");
667666
RETURN_THROWS();
668667
}
669668

0 commit comments

Comments
 (0)