Lines Matching refs:stream_array
607 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
613 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_to_fd_set()
617 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(stream_array), elem) { in stream_array_to_fd_set()
646 static int stream_array_from_fd_set(zval *stream_array, fd_set *fds) in stream_array_from_fd_set() argument
655 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_from_fd_set()
658 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_from_fd_set()
660 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_from_fd_set()
689 zval_ptr_dtor(stream_array); in stream_array_from_fd_set()
690 ZVAL_ARR(stream_array, ht); in stream_array_from_fd_set()
695 static int stream_array_emulate_read_fd_set(zval *stream_array) in stream_array_emulate_read_fd_set() argument
704 if (Z_TYPE_P(stream_array) != IS_ARRAY) { in stream_array_emulate_read_fd_set()
707 ht = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(stream_array))); in stream_array_emulate_read_fd_set()
709 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(stream_array), num_ind, key, elem) { in stream_array_emulate_read_fd_set()
735 zval_ptr_dtor(stream_array); in stream_array_emulate_read_fd_set()
736 ZVAL_ARR(stream_array, ht); in stream_array_emulate_read_fd_set()