Lines Matching refs:stream_array
624 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
630 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_to_fd_set()
634 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(stream_array), elem) { in stream_array_to_fd_set()
663 static int stream_array_from_fd_set(zval *stream_array, fd_set *fds) in stream_array_from_fd_set() argument
672 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_from_fd_set()
675 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_from_fd_set()
677 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_from_fd_set()
706 zval_ptr_dtor(stream_array); in stream_array_from_fd_set()
707 ZVAL_ARR(stream_array, ht); in stream_array_from_fd_set()
712 static int stream_array_emulate_read_fd_set(zval *stream_array) in stream_array_emulate_read_fd_set() argument
721 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_emulate_read_fd_set()
724 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_emulate_read_fd_set()
726 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_emulate_read_fd_set()
752 zval_ptr_dtor(stream_array); in stream_array_emulate_read_fd_set()
753 ZVAL_ARR(stream_array, ht); in stream_array_emulate_read_fd_set()