Lines Matching refs:stream_array
627 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
633 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_to_fd_set()
637 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(stream_array), elem) { in stream_array_to_fd_set()
666 static int stream_array_from_fd_set(zval *stream_array, fd_set *fds) in stream_array_from_fd_set() argument
675 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_from_fd_set()
678 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_from_fd_set()
680 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_from_fd_set()
709 zval_ptr_dtor(stream_array); in stream_array_from_fd_set()
710 ZVAL_ARR(stream_array, ht); in stream_array_from_fd_set()
715 static int stream_array_emulate_read_fd_set(zval *stream_array) in stream_array_emulate_read_fd_set() argument
724 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_emulate_read_fd_set()
727 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_emulate_read_fd_set()
729 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_emulate_read_fd_set()
755 zval_ptr_dtor(stream_array); in stream_array_emulate_read_fd_set()
756 ZVAL_ARR(stream_array, ht); in stream_array_emulate_read_fd_set()