Lines Matching refs:current_line
95 if (intern->u.file.current_line) { in spl_filesystem_file_free_line()
96 zend_string_release_ex(intern->u.file.current_line, /* persistent */ false); in spl_filesystem_file_free_line()
97 intern->u.file.current_line = NULL; in spl_filesystem_file_free_line()
1870 intern->u.file.current_line = ZSTR_EMPTY_ALLOC(); in spl_filesystem_file_read_ex()
1882 intern->u.file.current_line = zend_string_init(buf, line_len, /* persistent */ false); in spl_filesystem_file_read_ex()
1892 zend_long line_add = (intern->u.file.current_line) ? 1 : 0; in spl_filesystem_file_read()
1898 const char *current_line = ZSTR_VAL(intern->u.file.current_line); in is_line_empty() local
1899 size_t current_line_len = ZSTR_LEN(intern->u.file.current_line); in is_line_empty()
1904 (current_line_len == 1 && current_line[0] == '\n') in is_line_empty()
1905 || (current_line_len == 2 && current_line[0] == '\r' && current_line[1] == '\n') in is_line_empty()
1922 size_t buf_len = ZSTR_LEN(intern->u.file.current_line); in spl_filesystem_file_read_csv()
1923 char *buf = estrndup(ZSTR_VAL(intern->u.file.current_line), buf_len); in spl_filesystem_file_read_csv()
1971 if (intern->u.file.current_line || !Z_ISUNDEF(intern->u.file.current_zval)) { in spl_filesystem_file_read_line_ex()
1975 intern->u.file.current_line = zend_string_copy(Z_STR(retval)); in spl_filesystem_file_read_line_ex()
2139 RETURN_BOOL(intern->u.file.current_line || !Z_ISUNDEF(intern->u.file.current_zval)); in PHP_METHOD()
2161 RETURN_STR_COPY(intern->u.file.current_line); in PHP_METHOD()
2175 if (!intern->u.file.current_line && Z_ISUNDEF(intern->u.file.current_zval)) { in PHP_METHOD()
2178 …if (intern->u.file.current_line && (!SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_READ_CSV) || Z_IS… in PHP_METHOD()
2179 RETURN_STR_COPY(intern->u.file.current_line); in PHP_METHOD()
2588 …int result = php_sscanf_internal(ZSTR_VAL(intern->u.file.current_line), ZSTR_VAL(format_str), (int… in PHP_METHOD()
2729 if (!intern->u.file.current_line) { in PHP_METHOD()
2737 RETURN_STR_COPY(intern->u.file.current_line); in PHP_METHOD()