Index: svn.c
===================================================================
RCS file: /repository/pecl/svn/svn.c,v
retrieving revision 1.32
diff -u -r1.32 svn.c
--- svn.c	8 Jan 2008 03:41:55 -0000	1.32
+++ svn.c	13 Jan 2008 21:01:39 -0000
@@ -1821,21 +1821,16 @@
 	MAKE_STD_ZVAL(row);
 	array_init(row);
 
- 
 	add_assoc_long(row, "rev", (long) rev);
+	add_assoc_long(row, "line_no", line_no + 1);
+	add_assoc_string(row, "line", (char *) line, 1);
 
-	if (line_no) {
-		add_assoc_long(row, "line_no", line_no);
-	}
 	if (author) {
 		add_assoc_string(row, "author", (char *) author, 1);
 	}
 	if (date) {
 		add_assoc_string(row, "date", (char *) date, 1);
 	}
-	if (line) {
-		add_assoc_string(row, "line", (char *) line, 1);
-	}
 
 	add_next_index_zval(return_value, row); 
 	return SVN_NO_ERROR;
@@ -1849,7 +1844,9 @@
 	int repos_url_len;
 	int revision = -1;
 	svn_error_t *err;
-	svn_opt_revision_t 	start_revision = { 0 }, end_revision = { 0 };
+	svn_opt_revision_t start_revision = { 0 }, end_revision = { 0 }, peg_revision;
+	svn_diff_file_options_t diff_options;
+	svn_boolean_t ignore_mime_type = TRUE;
 	apr_pool_t *subpool;
 
 	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &repos_url, &repos_url_len, &revision) == FAILURE) {
@@ -1875,12 +1872,20 @@
 		end_revision.value.number = revision ;
 	}
  
+	peg_revision.kind = svn_opt_revision_unspecified;
+
+	diff_options.ignore_space = svn_diff_file_ignore_space_none;
+	diff_options.ignore_eol_style = FALSE;
+
 	array_init(return_value);
 
-	err = svn_client_blame(
+	err = svn_client_blame3(
 			repos_url,
+			&peg_revision,
 			&start_revision,
 			&end_revision,
+			&diff_options,
+			ignore_mime_type,
 			php_svn_blame_message_receiver,
 			(void *) return_value,
 			SVN_G(ctx),

