Lines Matching refs:stream_array
612 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd) in stream_array_to_fd_set() argument
618 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_to_fd_set()
622 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(stream_array), elem) { in stream_array_to_fd_set()
651 static int stream_array_from_fd_set(zval *stream_array, fd_set *fds) in stream_array_from_fd_set() argument
660 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_from_fd_set()
663 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_from_fd_set()
665 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_from_fd_set()
694 zval_ptr_dtor(stream_array); in stream_array_from_fd_set()
695 ZVAL_ARR(stream_array, ht); in stream_array_from_fd_set()
700 static int stream_array_emulate_read_fd_set(zval *stream_array) in stream_array_emulate_read_fd_set() argument
709 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_emulate_read_fd_set()
712 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_emulate_read_fd_set()
714 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_emulate_read_fd_set()
740 zval_ptr_dtor(stream_array); in stream_array_emulate_read_fd_set()
741 ZVAL_ARR(stream_array, ht); in stream_array_emulate_read_fd_set()