Lines Matching refs:current_zval
69 if (intern->u.file.current_zval) { in spl_filesystem_file_free_line()
70 zval_ptr_dtor(&intern->u.file.current_zval); in spl_filesystem_file_free_line()
71 intern->u.file.current_zval = NULL; in spl_filesystem_file_free_line()
2060 long line_add = (intern->u.file.current_line || intern->u.file.current_zval) ? 1 : 0; in spl_filesystem_file_read()
2173 if (intern->u.file.current_zval) { in spl_filesystem_file_read_csv()
2174 zval_ptr_dtor(&intern->u.file.current_zval); in spl_filesystem_file_read_csv()
2176 ALLOC_INIT_ZVAL(intern->u.file.current_zval); in spl_filesystem_file_read_csv()
2178 …>u.file.stream, delimiter, enclosure, escape, buf_len, buf, intern->u.file.current_zval TSRMLS_CC); in spl_filesystem_file_read_csv()
2184 ZVAL_ZVAL(return_value, intern->u.file.current_zval, 1, 0); in spl_filesystem_file_read_csv()
2209 if (intern->u.file.current_line || intern->u.file.current_zval) { in spl_filesystem_file_read_line_ex()
2217 MAKE_STD_ZVAL(intern->u.file.current_zval); in spl_filesystem_file_read_line_ex()
2218 ZVAL_ZVAL(intern->u.file.current_zval, retval, 1, 0); in spl_filesystem_file_read_line_ex()
2234 } else if (intern->u.file.current_zval) { in spl_filesystem_file_is_empty_line()
2235 switch(Z_TYPE_P(intern->u.file.current_zval)) { in spl_filesystem_file_is_empty_line()
2237 return Z_STRLEN_P(intern->u.file.current_zval) == 0; in spl_filesystem_file_is_empty_line()
2240 && zend_hash_num_elements(Z_ARRVAL_P(intern->u.file.current_zval)) == 1) { in spl_filesystem_file_is_empty_line()
2241 zval ** first = Z_ARRVAL_P(intern->u.file.current_zval)->pListHead->pData; in spl_filesystem_file_is_empty_line()
2245 return zend_hash_num_elements(Z_ARRVAL_P(intern->u.file.current_zval)) == 0; in spl_filesystem_file_is_empty_line()
2418 RETURN_BOOL(intern->u.file.current_line || intern->u.file.current_zval); in SPL_METHOD()
2450 if (!intern->u.file.current_line && !intern->u.file.current_zval) { in SPL_METHOD()
2453 …line && (!SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_READ_CSV) || !intern->u.file.current_zval)) { in SPL_METHOD()
2455 } else if (intern->u.file.current_zval) { in SPL_METHOD()
2456 RETURN_ZVAL(intern->u.file.current_zval, 1, 0); in SPL_METHOD()