From 06f3ca4e812376083d1754cee629b66210523231 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 20 Dec 2020 09:47:50 +0000 Subject: [PATCH] fixed a bug in svn.c --- codepot/pecl-svn/svn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codepot/pecl-svn/svn.c b/codepot/pecl-svn/svn.c index 5d29032c..f0485e75 100755 --- a/codepot/pecl-svn/svn.c +++ b/codepot/pecl-svn/svn.c @@ -1096,6 +1096,7 @@ PHP_FUNCTION(svn_ls) #if defined(APR_MAJOR_VERSION) && ((APR_MAJOR_VERSION >= 2) || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 5)) array_init(return_value); + for (hi = apr_hash_first(subpool, dirents); hi; hi = apr_hash_next(hi)) { const char *utf8_entryname; svn_dirent_t *dirent; @@ -1105,7 +1106,6 @@ PHP_FUNCTION(svn_ls) apr_size_t size; char timestr[20]; const char *utf8_timestr; - apr_hash_index_t *hi; zval *row; #if defined(PHP_MAJOR_VERSION) && (PHP_MAJOR_VERSION >= 7) zval actual_row;