Lines Matching refs:resource_to

754 	php_url *resource_from, *resource_to;  in phar_wrapper_rename()  local
780 …if ((resource_to = phar_parse_url(wrapper, url_to, "wb", options|PHP_STREAM_URL_STAT_QUIET)) == NU… in phar_wrapper_rename()
785 …if (SUCCESS != phar_get_archive(&pto, resource_to->host, strlen(resource_to->host), NULL, 0, &erro… in phar_wrapper_rename()
797 if (strcmp(resource_from->host, resource_to->host)) { in phar_wrapper_rename()
799 php_url_free(resource_to); in phar_wrapper_rename()
807 php_url_free(resource_to); in phar_wrapper_rename()
812 if (!resource_to->scheme || !resource_to->host || !resource_to->path) { in phar_wrapper_rename()
814 php_url_free(resource_to); in phar_wrapper_rename()
821 php_url_free(resource_to); in phar_wrapper_rename()
826 if (strcasecmp("phar", resource_to->scheme)) { in phar_wrapper_rename()
828 php_url_free(resource_to); in phar_wrapper_rename()
837 php_url_free(resource_to); in phar_wrapper_rename()
845 php_url_free(resource_to); in phar_wrapper_rename()
856 php_url_free(resource_to); in phar_wrapper_rename()
870 …entry = zend_hash_str_add_mem(&(phar->manifest), resource_to->path+1, strlen(resource_to->path)-1,… in phar_wrapper_rename()
872 entry->filename = estrdup(resource_to->path+1); in phar_wrapper_rename()
875 php_url_free(resource_to); in phar_wrapper_rename()
890 php_url_free(resource_to); in phar_wrapper_rename()
903 uint to_len = strlen(resource_to->path+1); in phar_wrapper_rename()
914 memcpy(ZSTR_VAL(new_str_key), resource_to->path + 1, to_len); in phar_wrapper_rename()
939 memcpy(ZSTR_VAL(new_str_key), resource_to->path + 1, to_len); in phar_wrapper_rename()
957 memcpy(ZSTR_VAL(new_str_key), resource_to->path + 1, to_len); in phar_wrapper_rename()
973 php_url_free(resource_to); in phar_wrapper_rename()
981 php_url_free(resource_to); in phar_wrapper_rename()