From 4cbf9d0dc9ee4f431d9d084b3efa358e5ea9a98d Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 20 Dec 2020 09:39:04 +0000 Subject: [PATCH] fixed svn_ls --- codepot/pecl-svn/svn.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/codepot/pecl-svn/svn.c b/codepot/pecl-svn/svn.c index a64b68c5..5d29032c 100755 --- a/codepot/pecl-svn/svn.c +++ b/codepot/pecl-svn/svn.c @@ -1110,9 +1110,17 @@ PHP_FUNCTION(svn_ls) #if defined(PHP_MAJOR_VERSION) && (PHP_MAJOR_VERSION >= 7) zval actual_row; #endif + const void* key; + void* val; - svn_utf_cstring_to_utf8 (&utf8_entryname, apr_hash_this_key(hi), subpool); - dirent = apr_hash_this_val(hi); + apr_hash_this(hi, &key, NULL, &val); + err = svn_utf_cstring_to_utf8 (&utf8_entryname, key, subpool); + if (err) { + php_svn_handle_error(err TSRMLS_CC); + RETVAL_FALSE; + goto cleanup; + } + dirent = val; /* svn_time_to_human_cstring gives us something *way* too long to use for this, so we have to roll our own. We include