Lines Matching refs:resource_from
948 php_url *resource_from = NULL, *resource_to = NULL; in php_stream_ftp_rename() local
952 resource_from = php_url_parse(url_from); in php_stream_ftp_rename()
957 if (!resource_from || in php_stream_ftp_rename()
959 !resource_from->scheme || in php_stream_ftp_rename()
961 !zend_string_equals(resource_from->scheme, resource_to->scheme) || in php_stream_ftp_rename()
962 !resource_from->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()
968 !resource_from->path || in php_stream_ftp_rename()
976 php_error_docref(NULL, E_WARNING, "Unable to connect to %s", ZSTR_VAL(resource_from->host)); in php_stream_ftp_rename()
982 …php_stream_printf(stream, "RNFR %s\r\n", (resource_from->path != NULL ? ZSTR_VAL(resource_from->pa… in php_stream_ftp_rename()
1003 php_url_free(resource_from); in php_stream_ftp_rename()
1009 if (resource_from) { in php_stream_ftp_rename()
1010 php_url_free(resource_from); in php_stream_ftp_rename()