From 0338b289391c196de8a64e169cf3561d19118f05 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Tue, 22 Apr 2008 17:19:06 +0000 Subject: [PATCH] re-enable disabled cwd code --- ext/phar/phar_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 27b92a5968..eacf4e9c95 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -273,7 +273,7 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch PHAR_G(cwd) = NULL; PHAR_G(cwd_len) = 0; if (zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) { - if (0 && (cwd = strrchr(entry, '/'))) { + if ((cwd = strrchr(entry, '/'))) { if (entry == cwd) { /* root directory */ PHAR_G(cwd_len) = 0; -- 2.50.1