Lines Matching refs:resource_from
947 php_url *resource_from = NULL, *resource_to = NULL; in php_stream_ftp_rename() local
951 resource_from = php_url_parse(url_from); in php_stream_ftp_rename()
956 if (!resource_from || in php_stream_ftp_rename()
958 !resource_from->scheme || in php_stream_ftp_rename()
960 !zend_string_equals(resource_from->scheme, resource_to->scheme) || in php_stream_ftp_rename()
961 !resource_from->host || in php_stream_ftp_rename()
963 !zend_string_equals(resource_from->host, resource_to->host) || in php_stream_ftp_rename()
964 (resource_from->port != resource_to->port && in php_stream_ftp_rename()
965 resource_from->port * resource_to->port != 0 && in php_stream_ftp_rename()
966 resource_from->port + resource_to->port != 21) || in php_stream_ftp_rename()
967 !resource_from->path || in php_stream_ftp_rename()
975 php_error_docref(NULL, E_WARNING, "Unable to connect to %s", ZSTR_VAL(resource_from->host)); in php_stream_ftp_rename()
981 php_stream_printf(stream, "RNFR %s\r\n", ZSTR_VAL(resource_from->path)); in php_stream_ftp_rename()
1002 php_url_free(resource_from); in php_stream_ftp_rename()
1008 if (resource_from) { in php_stream_ftp_rename()
1009 php_url_free(resource_from); in php_stream_ftp_rename()