Lines Matching refs:source

354 	spl_filesystem_object *source;  in spl_filesystem_object_clone()  local
358 source = spl_filesystem_from_obj(old_object); in spl_filesystem_object_clone()
362 intern->flags = source->flags; in spl_filesystem_object_clone()
364 switch (source->type) { in spl_filesystem_object_clone()
366 intern->_path_len = source->_path_len; in spl_filesystem_object_clone()
367 intern->_path = estrndup(source->_path, source->_path_len); in spl_filesystem_object_clone()
368 intern->file_name_len = source->file_name_len; in spl_filesystem_object_clone()
369 intern->file_name = estrndup(source->file_name, intern->file_name_len); in spl_filesystem_object_clone()
372 spl_filesystem_dir_open(intern, source->_path); in spl_filesystem_object_clone()
374 skip_dots = SPL_HAS_FLAG(source->flags, SPL_FILE_DIR_SKIPDOTS); in spl_filesystem_object_clone()
375 for(index = 0; index < source->u.dir.index; ++index) { in spl_filesystem_object_clone()
386 intern->file_class = source->file_class; in spl_filesystem_object_clone()
387 intern->info_class = source->info_class; in spl_filesystem_object_clone()
388 intern->oth = source->oth; in spl_filesystem_object_clone()
389 intern->oth_handler = source->oth_handler; in spl_filesystem_object_clone()
394 intern->oth_handler->clone(source, intern); in spl_filesystem_object_clone()
435 static spl_filesystem_object *spl_filesystem_object_create_info(spl_filesystem_object *source, char… in spl_filesystem_object_create_info() argument
459 ce = ce ? ce : source->info_class; in spl_filesystem_object_create_info()
478 …object *spl_filesystem_object_create_type(int ht, spl_filesystem_object *source, int type, zend_cl… in spl_filesystem_object_create_type() argument
487 switch (source->type) { in spl_filesystem_object_create_type()
492 if (!source->u.dir.entry.d_name[0]) { in spl_filesystem_object_create_type()
501 ce = ce ? ce : source->info_class; in spl_filesystem_object_create_type()
510 spl_filesystem_object_get_file_name(source); in spl_filesystem_object_create_type()
512 ZVAL_STRINGL(&arg1, source->file_name, source->file_name_len); in spl_filesystem_object_create_type()
516 intern->file_name = estrndup(source->file_name, source->file_name_len); in spl_filesystem_object_create_type()
517 intern->file_name_len = source->file_name_len; in spl_filesystem_object_create_type()
518 intern->_path = spl_filesystem_object_get_path(source, &intern->_path_len); in spl_filesystem_object_create_type()
523 ce = ce ? ce : source->file_class; in spl_filesystem_object_create_type()
533 spl_filesystem_object_get_file_name(source); in spl_filesystem_object_create_type()
536 ZVAL_STRINGL(&arg1, source->file_name, source->file_name_len); in spl_filesystem_object_create_type()
542 intern->file_name = source->file_name; in spl_filesystem_object_create_type()
543 intern->file_name_len = source->file_name_len; in spl_filesystem_object_create_type()
544 intern->_path = spl_filesystem_object_get_path(source, &intern->_path_len); in spl_filesystem_object_create_type()