Skip to content

Commit 1babc8a

Browse files
committed
poll: remove select backend constants and fix backend name test
1 parent 63a3af4 commit 1babc8a

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)