From 046f8dba552ffc7111836b2bc28330ea65c02792 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 30 Aug 2008 23:50:31 +0000 Subject: [PATCH] sync with pecl/phar, missed one line change --- ext/phar/dirstream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/dirstream.c b/ext/phar/dirstream.c index 8270cba80fb..2e1754d6c8d 100644 --- a/ext/phar/dirstream.c +++ b/ext/phar/dirstream.c @@ -647,8 +647,8 @@ int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_ if (!entry->is_deleted && key_len > path_len && - memcmp(key, resource->path+1, path_len) == 0 && - IS_SLASH(key[path_len])) { + memcmp(str_key, resource->path+1, path_len) == 0 && + IS_SLASH(str_key[path_len])) { php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: Directory not empty"); if (entry->is_temp_dir) { efree(entry->filename);