Skip to content

Commit 6d2cd7f

Browse files
committed
* fix PHP_FUNCTION(stream_select) for timeout == NULL case
1 parent ce75326 commit 6d2cd7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/streamsfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ PHP_FUNCTION(stream_select)
746746
ZEND_PARSE_PARAMETERS_END();
747747

748748
// Early async select path - avoid all fd_set processing
749-
if(ZEND_ASYNC_IS_ACTIVE && (sec > 0 || usec > 0)) {
749+
if(ZEND_ASYNC_IS_ACTIVE && (sec > 0 || usec > 0 || (secnull && usecnull))) {
750750
struct timeval tv_async, *tv_p_async = NULL;
751751
if (!secnull) {
752752
tv_async.tv_sec = sec;

0 commit comments

Comments
 (0)