Lines Matching refs:resource_to
948 php_url *resource_from = NULL, *resource_to = NULL; in php_stream_ftp_rename() local
953 resource_to = php_url_parse(url_to); in php_stream_ftp_rename()
958 !resource_to || in php_stream_ftp_rename()
960 !resource_to->scheme || in php_stream_ftp_rename()
961 !zend_string_equals(resource_from->scheme, resource_to->scheme) || in php_stream_ftp_rename()
963 !resource_to->host || in php_stream_ftp_rename()
964 !zend_string_equals(resource_from->host, resource_to->host) || in php_stream_ftp_rename()
965 (resource_from->port != resource_to->port && in php_stream_ftp_rename()
966 resource_from->port * resource_to->port != 0 && in php_stream_ftp_rename()
967 resource_from->port + resource_to->port != 21) || in php_stream_ftp_rename()
969 !resource_to->path) { in php_stream_ftp_rename()
993 …php_stream_printf(stream, "RNTO %s\r\n", (resource_to->path != NULL ? ZSTR_VAL(resource_to->path) … in php_stream_ftp_rename()
1004 php_url_free(resource_to); in php_stream_ftp_rename()
1012 if (resource_to) { in php_stream_ftp_rename()
1013 php_url_free(resource_to); in php_stream_ftp_rename()