Lines 1-5
Link Here
|
1 |
--- ./svn.c.orig 2009-08-21 08:38:26.000000000 -0400 |
1 |
--- svn.c.orig 2010-12-09 04:30:16.000000000 +0100 |
2 |
+++ ./svn.c 2009-08-21 08:38:33.000000000 -0400 |
2 |
+++ svn.c 2012-02-28 09:46:50.877059221 +0100 |
3 |
@@ -34,6 +34,7 @@ |
3 |
@@ -34,6 +34,7 @@ |
4 |
|
4 |
|
5 |
#include "apr_version.h" |
5 |
#include "apr_version.h" |
Lines 8-10
Link Here
|
8 |
#include "svn_sorts.h" |
8 |
#include "svn_sorts.h" |
9 |
#include "svn_config.h" |
9 |
#include "svn_config.h" |
10 |
#include "svn_auth.h" |
10 |
#include "svn_auth.h" |
|
|
11 |
@@ -43,6 +44,7 @@ |
12 |
#include "svn_utf.h" |
13 |
#include "svn_time.h" |
14 |
#include "svn_props.h" |
15 |
+#include "svn_version.h" |
16 |
|
17 |
ZEND_DECLARE_MODULE_GLOBALS(svn) |
18 |
|
19 |
@@ -96,7 +98,13 @@ |
20 |
static ZEND_RSRC_DTOR_FUNC(php_svn_repos_dtor) |
21 |
{ |
22 |
struct php_svn_repos *r = rsrc->ptr; |
23 |
- svn_pool_destroy(r->pool); |
24 |
+ /* |
25 |
+ * If root pool doesn't exist, then this resource's pool was already |
26 |
+ * destroyed |
27 |
+ */ |
28 |
+ if (SVN_G(pool)) { |
29 |
+ svn_pool_destroy(r->pool); |
30 |
+ } |
31 |
efree(r); |
32 |
} |
33 |
|
34 |
@@ -123,7 +131,7 @@ |
35 |
|
36 |
#define SVN_STATIC_ME(name) ZEND_FENTRY(name, ZEND_FN(svn_ ## name), NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) |
37 |
/** Fixme = this list needs padding out... */ |
38 |
-static function_entry svn_methods[] = { |
39 |
+static zend_function_entry svn_methods[] = { |
40 |
SVN_STATIC_ME(cat) |
41 |
SVN_STATIC_ME(checkout) |
42 |
SVN_STATIC_ME(log) |
43 |
@@ -134,7 +142,7 @@ |
44 |
|
45 |
|
46 |
/* {{{ svn_functions[] */ |
47 |
-function_entry svn_functions[] = { |
48 |
+zend_function_entry svn_functions[] = { |
49 |
PHP_FE(svn_checkout, NULL) |
50 |
PHP_FE(svn_cat, NULL) |
51 |
PHP_FE(svn_ls, NULL) |
52 |
@@ -270,7 +278,7 @@ |
53 |
|
54 |
smart_str_appendl(&s, "\n", 1); |
55 |
smart_str_0(&s); |
56 |
- php_error_docref(NULL TSRMLS_CC, E_WARNING, s.c); |
57 |
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", s.c); |
58 |
smart_str_free(&s); |
59 |
} |
60 |
|