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()
1876 intern->u.file.current_line = ZSTR_EMPTY_ALLOC(); in spl_filesystem_file_read_ex()
1888 intern->u.file.current_line = zend_string_init(buf, line_len, /* persistent */ false); in spl_filesystem_file_read_ex()
1898 zend_long line_add = (intern->u.file.current_line) ? 1 : 0; in spl_filesystem_file_read()
1904 const char *current_line = ZSTR_VAL(intern->u.file.current_line); in is_line_empty() local
1905 size_t current_line_len = ZSTR_LEN(intern->u.file.current_line); in is_line_empty()
1910 (current_line_len == 1 && current_line[0] == '\n') in is_line_empty()
1911 || (current_line_len == 2 && current_line[0] == '\r' && current_line[1] == '\n') in is_line_empty()
1928 size_t buf_len = ZSTR_LEN(intern->u.file.current_line); in spl_filesystem_file_read_csv()
1929 char *buf = estrndup(ZSTR_VAL(intern->u.file.current_line), buf_len); in spl_filesystem_file_read_csv()
1977 if (intern->u.file.current_line || !Z_ISUNDEF(intern->u.file.current_zval)) { in spl_filesystem_file_read_line_ex()
1981 intern->u.file.current_line = zend_string_copy(Z_STR(retval)); in spl_filesystem_file_read_line_ex()
2145 RETURN_BOOL(intern->u.file.current_line || !Z_ISUNDEF(intern->u.file.current_zval)); in PHP_METHOD()
2167 RETURN_STR_COPY(intern->u.file.current_line); in PHP_METHOD()
2181 if (!intern->u.file.current_line && Z_ISUNDEF(intern->u.file.current_zval)) { in PHP_METHOD()
2184 …if (intern->u.file.current_line && (!SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_READ_CSV) || Z_IS… in PHP_METHOD()
2185 RETURN_STR_COPY(intern->u.file.current_line); in PHP_METHOD()
2594 …int result = php_sscanf_internal(ZSTR_VAL(intern->u.file.current_line), ZSTR_VAL(format_str), (int… in PHP_METHOD()
2735 if (!intern->u.file.current_line) { in PHP_METHOD()
2743 RETURN_STR_COPY(intern->u.file.current_line); in PHP_METHOD()