Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0a3b5c0

Browse files
committed
poll: remove select backend constants and fix backend name test
1 parent 07a1a46 commit 0a3b5c0

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

‎ext/standard/stream_poll.stub.php‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@
6363
* @cvalue PHP_POLL_BACKEND_EVENTPORT
6464
*/
6565
const STREAM_POLL_BACKEND_EVENTPORT = UNKNOWN;
66-
/**
67-
* @var int
68-
* @cvalue PHP_POLL_BACKEND_SELECT
69-
*/
70-
const STREAM_POLL_BACKEND_SELECT = UNKNOWN;
7166
/**
7267
* @var int
7368
* @cvalue PHP_POLL_BACKEND_IOCP

‎ext/standard/tests/streams/stream_poll_backend_name_basic.phpt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Stream polling - backend name
44
<?php
55
require_once __DIR__ . '/stream_poll.inc';
66
// select is always available
7-
$poll_ctx = stream_poll_create(STREAM_POLL_BACKEND_SELECT);
7+
$poll_ctx = stream_poll_create(STREAM_POLL_BACKEND_POLL);
88
var_dump(stream_poll_backend_name($poll_ctx));
99
// test with string
10-
$poll_ctx = stream_poll_create('select');
10+
$poll_ctx = stream_poll_create('poll');
1111
var_dump(stream_poll_backend_name($poll_ctx));
1212

1313
?>
1414
--EXPECT--
15-
string(6) "select"
16-
string(6) "select"
15+
string(4) "poll"
16+
string(4) "poll"

‎main/php_poll.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ typedef enum {
3535
PHP_POLL_BACKEND_EPOLL,
3636
PHP_POLL_BACKEND_KQUEUE,
3737
PHP_POLL_BACKEND_EVENTPORT,
38-
PHP_POLL_BACKEND_SELECT,
3938
PHP_POLL_BACKEND_IOCP
4039
} php_poll_backend_type;
4140

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /