Lines Matching refs:file_name_len

212 			intern->file_name_len = spprintf(&intern->file_name, 0, "%s%c%s",  in spl_filesystem_object_get_file_name()
277 php_stat(intern->file_name, intern->file_name_len, FS_IS_DIR, &tmp TSRMLS_CC); in spl_filesystem_file_open()
288 if (!intern->file_name_len || !intern->u.file.stream) { in spl_filesystem_file_open()
290 …pl_ce_RuntimeException, 0 TSRMLS_CC, "Cannot open file '%s'", intern->file_name_len ? intern->file… in spl_filesystem_file_open()
301 if (intern->file_name_len > 1 && IS_SLASH_AT(intern->file_name, intern->file_name_len-1)) { in spl_filesystem_file_open()
302 intern->file_name_len--; in spl_filesystem_file_open()
307 intern->file_name = estrndup(intern->file_name, intern->file_name_len); in spl_filesystem_file_open()
352 intern->file_name_len = source->file_name_len; in spl_filesystem_object_clone()
353 intern->file_name = estrndup(source->file_name, intern->file_name_len); in spl_filesystem_object_clone()
395 intern->file_name_len = len; in spl_filesystem_info_set_filename()
397 while(IS_SLASH_AT(intern->file_name, intern->file_name_len-1) && intern->file_name_len > 1) { in spl_filesystem_info_set_filename()
398 intern->file_name[intern->file_name_len-1] = 0; in spl_filesystem_info_set_filename()
399 intern->file_name_len--; in spl_filesystem_info_set_filename()
497 ZVAL_STRINGL(arg1, source->file_name, source->file_name_len, 1); in spl_filesystem_object_create_type()
501 intern->file_name = estrndup(source->file_name, source->file_name_len); in spl_filesystem_object_create_type()
502 intern->file_name_len = source->file_name_len; in spl_filesystem_object_create_type()
520 ZVAL_STRINGL(arg1, source->file_name, source->file_name_len, 1); in spl_filesystem_object_create_type()
527 intern->file_name_len = source->file_name_len; in spl_filesystem_object_create_type()
572 *len = intern->file_name_len; in spl_filesystem_object_get_pathname()
577 *len = intern->file_name_len; in spl_filesystem_object_get_pathname()
618 if (path_len && path_len < intern->file_name_len) { in spl_filesystem_object_get_debug_info()
619 …gl_ex(&zrv, pnstr, pnlen+1, intern->file_name + path_len + 1, intern->file_name_len - (path_len + … in spl_filesystem_object_get_debug_info()
621 add_assoc_stringl_ex(&zrv, pnstr, pnlen+1, intern->file_name, intern->file_name_len, 1); in spl_filesystem_object_get_debug_info()
898 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD()
899 RETURN_STRINGL(intern->file_name + path_len + 1, intern->file_name_len - (path_len + 1), 1); in SPL_METHOD()
901 RETURN_STRINGL(intern->file_name, intern->file_name_len, 1); in SPL_METHOD()
936 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD()
938 flen = intern->file_name_len - (path_len + 1); in SPL_METHOD()
941 flen = intern->file_name_len; in SPL_METHOD()
1007 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD()
1009 flen = intern->file_name_len - (path_len + 1); in SPL_METHOD()
1012 flen = intern->file_name_len; in SPL_METHOD()
1074 RETURN_STRINGL(intern->file_name, intern->file_name_len, 1); in SPL_METHOD()
1091 RETURN_STRINGL(intern->file_name, intern->file_name_len, 1); in SPL_METHOD()
1161 php_stat(intern->file_name, intern->file_name_len, func_num, return_value TSRMLS_CC); \
1260 } else if (!IS_ABSOLUTE_PATH(intern->file_name, intern->file_name_len)) { in FileInfoFunction()
1501 php_stat(intern->file_name, intern->file_name_len, FS_IS_LINK, return_value TSRMLS_CC); in SPL_METHOD()
1506 php_stat(intern->file_name, intern->file_name_len, FS_IS_DIR, return_value TSRMLS_CC); in SPL_METHOD()
1527 RETURN_STRINGL(intern->file_name, intern->file_name_len, 1); in SPL_METHOD()
1532 ZVAL_STRINGL(zpath, intern->file_name, intern->file_name_len, 1); in SPL_METHOD()
1773 ZVAL_STRINGL(iterator->current, object->file_name, object->file_name_len, 1); in spl_filesystem_tree_it_current_data()
1799 *str_key_len = object->file_name_len + 1; in spl_filesystem_tree_it_current_key()
1800 *str_key = estrndup(object->file_name, object->file_name_len); in spl_filesystem_tree_it_current_key()
1898 ZVAL_STRINGL(retval_ptr, intern->file_name, intern->file_name_len, 1); in spl_filesystem_object_cast()
1902 ZVAL_STRINGL(writeobj, intern->file_name, intern->file_name_len, 1); in spl_filesystem_object_cast()
2300 &intern->file_name, &intern->file_name_len, in SPL_METHOD()
2362 intern->file_name_len = 12; in SPL_METHOD()
2364 …intern->file_name_len = slprintf(tmp_fname, sizeof(tmp_fname), "php://temp/maxmemory:%ld", max_mem… in SPL_METHOD()
2368 intern->file_name_len = 10; in SPL_METHOD()